Thanks for you suggestion Vered, but it is not working.
I copied all files except for 4be3f6ac-7946-4e7b-9ca2-11731c8ba236/
dom_
md/
metadataI even did a sha256sum on some of the files to verify:
62941ad5c53cb95ef211fbc11919872bae9b2c49f1fa37223162380b13b73a74 /
mnt/backup-
vm/0b7e96ae-f5e9-4fea-8cf6-33d39ef90162/images/1217e5a7-2cae-4662-a865-047acf2c831a/f84bfd41-622c-4078-a858-fd53a0d4e5ce
62941ad5c53cb95ef211fbc11919872bae9b2c49f1fa37223162380b13b73a74 /
mnt/export_
ovirt/images/4be3f6ac-7946-4e7b-9ca2-11731c8ba236/images/1217e5a7-2cae-4662-a865-047acf2c831a/f84bfd41-622c-4078-a858-fd53a0d4e5ce
When I tried to import a
VM or template the error was:
2016-03-31 12:18:45,090 ERROR [org.
ovirt.engine.core.
dal.
dbbroker.
auditloghandling.
AuditLogDirector] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message:
VDSM command failed: Image is not a legal chain: (u'1217e5a7-2cae-4662-a865-047acf2c831a',)
2016-03-31 12:18:45,090 ERROR [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
CopyImageVDSCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command 'CopyImageVDSCommand(
CopyImageVDSCommandParameters:{
runAsync='true',
storagePoolId='00000001-0001-0001-0001-000000000341',
ignoreFailoverLimit='false',
storageDomainId='0b7e96ae-f5e9-4fea-8cf6-33d39ef90162',
imageGroupId='1217e5a7-2cae-4662-a865-047acf2c831a',
imageId='f84bfd41-622c-4078-a858-fd53a0d4e5ce',
dstImageGroupId='1217e5a7-2cae-4662-a865-047acf2c831a',
vmId='4873de49-9090-40b1-a21d-665633109aa2',
dstImageId='f84bfd41-622c-4078-a858-fd53a0d4e5ce',
imageDescription='',
dstStorageDomainId='e5597ac8-91db-4b9e-b9d3-26dd4cfdd07e',
copyVolumeType='SharedVol',
volumeFormat='RAW', preallocate='Sparse',
postZero='false', force='false'})' execution failed:
IRSGenericException:
IRSErrorException: Image is not a legal chain: (u'1217e5a7-2cae-4662-a865-047acf2c831a',)
2016-03-31 12:18:45,091 INFO [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
CopyImageVDSCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] FINISH,
CopyImageVDSCommand, return: 00000000-0000-0000-0000-000000000000, log id: 250060f7
2016-03-31 12:18:45,091 ERROR [org.
ovirt.engine.core.
bll.
CopyImageGroupCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command 'org.
ovirt.engine.core.
bll.CopyImageGroupCommand' failed:
EngineException: org.
ovirt.engine.core.
vdsbroker.
irsbroker.
IrsOperationFailedNoFailoverException:
IRSGenericException:
IRSErrorException: Image is not a legal chain: (u'1217e5a7-2cae-4662-a865-047acf2c831a',) (Failed with error
ImageIsNotLegalChain and code 262)
2016-03-31 12:18:45,098 INFO [org.
ovirt.engine.core.
bll.tasks.
AsyncTaskManager] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Removed task 'ca149917-82dc-44a4-ae4c-fdeb6600ef05' from
DataBase2016-03-31 12:18:45,100 ERROR [org.
ovirt.engine.core.
bll.
CopyImageGroupCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Transaction rolled-back for command 'org.
ovirt.engine.core.
bll.CopyImageGroupCommand'.
2016-03-31 12:18:45,100 INFO [org.
ovirt.engine.core.
utils.transaction.
TransactionSupport] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] transaction rolled back
2016-03-31 12:18:45,100 ERROR [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command 'org.
ovirt.engine.core.
bll.ImportVmTemplateCommand' failed:
EngineException:
ImageIsNotLegalChain (Failed with error
ImageIsNotLegalChain and code 262)
2016-03-31 12:18:45,101 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.network.
VmNetworkStatistics; snapshot: 4c699f71-7244-48dc-a57f-e76d48be4686.
2016-03-31 12:18:45,101 INFO [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
GetVmsInfoVDSCommand] (default task-13) [] FINISH,
GetVmsInfoVDSCommand, log id: ddb9374
2016-03-31 12:18:45,101 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.network.
VmNic; snapshot: 4c699f71-7244-48dc-a57f-e76d48be4686.
2016-03-31 12:18:45,102 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.storage.
DiskImageDynamic; snapshot: f84bfd41-622c-4078-a858-fd53a0d4e5ce.
2016-03-31 12:18:45,102 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.storage.
DiskImage; snapshot: 1217e5a7-2cae-4662-a865-047acf2c831a.
2016-03-31 12:18:45,103 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.storage.
ImageStorageDomainMap; snapshot: org.
ovirt.engine.core.common.
businessentities.storage.
ImageStorageDomainMapId@4c35da92.
2016-03-31 12:18:45,103 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.storage.Image; snapshot: f84bfd41-622c-4078-a858-fd53a0d4e5ce.
2016-03-31 12:18:45,104 INFO [org.
ovirt.engine.core.
bll.
ImportVmTemplateCommand] (org.
ovirt.thread.pool-8-thread-1) [52c3dca3] Command [id=532f69a8-7eaa-4eda-8fe4-a2597c78fc8e]: Compensating NEW_ENTITY_ID of org.
ovirt.engine.core.common.
businessentities.
VmTemplate; snapshot: 4873de49-9090-40b1-a21d-665633109aa2.
2016-03-31 12:18:45,112 ERROR [org.
ovirt.engine.core.
dal.
dbbroker.
auditloghandling.
AuditLogDirector] (org.
ovirt.thread.pool-8-thread-1)
[52c3dca3] Correlation ID: 74349717, Job ID:
7e496163-5409-42db-aa03-65b48d285473, Call Stack: null, Custom Event ID:
-1, Message: Failed to import Template centos7_template to Data Center
Default, Cluster Default
2016-03-31 12:18:45,117 INFO [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
GetVmsInfoVDSCommand] (default task-5) [] FINISH,
GetVmsInfoVDSCommand, log id: 36de4407
2016-03-31 12:18:45,504 INFO [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
GetVmsInfoVDSCommand] (default task-31) [] START,
GetVmsInfoVDSCommand(
GetVmsInfoVDSCommandParameters:{
runAsync='true',
storagePoolId='00000001-0001-0001-0001-000000000341',
ignoreFailoverLimit='false',
storageDomainId='0b7e96ae-f5e9-4fea-8cf6-33d39ef90162',
vmIdList='null'}), log id: 1847cbc5
2016-03-31 12:18:45,515 INFO [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
GetVmsInfoVDSCommand] (default task-31) [] FINISH,
GetVmsInfoVDSCommand, log id: 1847cbc5
2016-03-31 12:18:45,993 INFO [org.
ovirt.engine.core.
vdsbroker.
irsbroker.
GetVmsInfoVDSCommand] (default task-14) [] START,
GetVmsInfoVDSCommand(
GetVmsInfoVDSCommandParameters:{
runAsync='true',
storagePoolId='00000001-0001-0001-0001-000000000341',
ignoreFailoverLimit='false',
storageDomainId='0b7e96ae-f5e9-4fea-8cf6-33d39ef90162',
vmIdList='null'}), log id: 5bcb
I then put the new export storage in maintenance and detached it. Now when I try to reattach I get:
2016-03-31
13:41:41,109 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] START,
AttachStorageDomainVDSCommand(
AttachStorageDomainVDSCommandParameters:{runAsync='true',
storagePoolId='00000001-0001-0001-0001-000000000341',
ignoreFailoverLimit='false',
storageDomainId='0b7e96ae-f5e9-4fea-8cf6-33d39ef90162'}), log id:
1f72065
2016-03-31 13:41:42,375 ERROR
[org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Failed in
'AttachStorageDomainVDS' method
2016-03-31 13:41:42,396 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Correlation ID: null, Call
Stack: null, Custom Event ID: -1, Message: VDSM command failed: Cannot
obtain lock: u"id=0b7e96ae-f5e9-4fea-8cf6-33d39ef90162, rc=1,
out=['error - lease file does not exist or is not writeable', 'usage:
/usr/libexec/vdsm/spmprotect.sh COMMAND PARAMETERS', 'Commands:', '
start { sdUUID hostId renewal_interval_sec lease_path[:offset]
lease_time_ms io_op_timeout_ms fail_retries vdsm_pid [debug] }',
'Parameters:', ' sdUUID - domain uuid', ' hostId
- host id in pool', ' renewal_interval_sec - intervals
for lease renewals attempts', ' lease_path - path to lease
file/volume', ' offset - offset of lease within file',
' lease_time_ms - time limit within which lease must be renewed
(at least 2*renewal_interval_sec)', ' io_op_timeout_ms - I/O
operation timeout', ' fail_retries - Maximal number of
attempts to retry to renew the lease before fencing (<=
lease_time_ms/renewal_interval_sec)', ' vdsm_pid - Vdsm
process ID', ' debug - enable debug mode (optional)'],
err=[]"
2016-03-31 13:41:42,396 ERROR
[org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Command
'AttachStorageDomainVDSCommand(
AttachStorageDomainVDSCommandParameters:{runAsync='true',
storagePoolId='00000001-0001-0001-0001-000000000341',
ignoreFailoverLimit='false',
storageDomainId='0b7e96ae-f5e9-4fea-8cf6-33d39ef90162'})' execution
failed: IRSGenericException: IRSErrorException: Failed to
AttachStorageDomainVDS, error = Cannot obtain lock:
u"id=0b7e96ae-f5e9-4fea-8cf6-33d39ef90162, rc=1, out=['error - lease
file does not exist or is not writeable', 'usage:
/usr/libexec/vdsm/spmprotect.sh COMMAND PARAMETERS', 'Commands:', '
start { sdUUID hostId renewal_interval_sec lease_path[:offset]
lease_time_ms io_op_timeout_ms fail_retries vdsm_pid [debug] }',
'Parameters:', ' sdUUID - domain uuid', ' hostId
- host id in pool', ' renewal_interval_sec - intervals
for lease renewals attempts', ' lease_path - path to lease
file/volume', ' offset - offset of lease within file',
' lease_time_ms - time limit within which lease must be renewed
(at least 2*renewal_interval_sec)', ' io_op_timeout_ms - I/O
operation timeout', ' fail_retries - Maximal number of
attempts to retry to renew the lease before fencing (<=
lease_time_ms/renewal_interval_sec)', ' vdsm_pid - Vdsm
process ID', ' debug - enable debug mode (optional)'],
err=[]", code = 651
2016-03-31 13:41:42,396 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] FINISH,
AttachStorageDomainVDSCommand, log id: 1f72065
2016-03-31
13:41:42,396 ERROR
[org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Command
'org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand'
failed: EngineException:
org.ovirt.engine.core.vdsbroker.irsbroker.IrsOperationFailedNoFailoverException:
IRSGenericException: IRSErrorException: Failed to
AttachStorageDomainVDS, error = Cannot obtain lock:
u"id=0b7e96ae-f5e9-4fea-8cf6-33d39ef90162, rc=1, out=['error - lease
file does not exist or is not writeable', 'usage:
/usr/libexec/vdsm/spmprotect.sh COMMAND PARAMETERS', 'Commands:', '
start { sdUUID hostId renewal_interval_sec lease_path[:offset]
lease_time_ms io_op_timeout_ms fail_retries vdsm_pid [debug] }',
'Parameters:', ' sdUUID - domain uuid', ' hostId
- host id in pool', ' renewal_interval_sec - intervals
for lease renewals attempts', ' lease_path - path to lease
file/volume', ' offset - offset of lease within file',
' lease_time_ms - time limit within which lease must be renewed
(at least 2*renewal_interval_sec)', ' io_op_timeout_ms - I/O
operation timeout', ' fail_retries - Maximal number of
attempts to retry to renew the lease before fencing (<=
lease_time_ms/renewal_interval_sec)', ' vdsm_pid - Vdsm
process ID', ' debug - enable debug mode (optional)'],
err=[]", code = 651 (Failed with error AcquireLockFailure and code 651)
2016-03-31
13:41:42,397 INFO
[org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Command
[id=db45bff3-4e8c-4935-ae33-70c61ff01b32]: Compensating NEW_ENTITY_ID of
org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap;
snapshot:
StoragePoolIsoMapId:{storagePoolId='00000001-0001-0001-0001-000000000341',
storageId='0b7e96ae-f5e9-4fea-8cf6-33d39ef90162'}.
2016-03-31
13:41:42,403 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Correlation ID: 79a8c0bd,
Job ID: 93a8a703-b3a6-4061-9192-bd09840b4c39, Call Stack: null, Custom
Event ID: -1, Message: Failed to attach Storage Domain vm-backups to
Data Center Default. (User: admin@internal)
2016-03-31 13:41:42,406
INFO
[org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand]
(org.ovirt.thread.pool-8-thread-2) [79a8c0bd] Lock freed to object
'EngineLock:{exclusiveLocks='[0b7e96ae-f5e9-4fea-8cf6-33d39ef90162=<STORAGE,
ACTION_TYPE_FAILED_OBJECT_LOCKED>]', sharedLocks='null'}'