target iqn.storage1.lan:storage1 {
auth-group no-authentication
portal-group pg0
lun 0 {
path /dev/zvol/iscsi/vm-101-disk-0
}
}
iqn.storage2.lan:storage2 { ### <<<--- Note missing "Target" at the beginning even thou it was correct before
lun 0 {
path /dev/zvol/disk_d/vm-101-disk-0
}
}
Some observations:
For some reason the storage1 target configuration is being copied to the storage2 ctl.conf
The word "Target is missing"
The storage2 configuration has copied the target configuration from storage1 having the word "target" but then it's own config misses the "target" word
The storage1 don't delete the LUN section after migration
All target configurations have the LUN inside everywhere
ZFS volumes, LUN mappings in the runtime config are being correctly handled. However one ctld restart with this messed up configs may cause a disaster.
Haven't tested how all good runtime LUN mappings and zvols after migration but messed up ctl.conf files will affect attempt for second migration e.g. what data will be taken from configs and what from LUN mappings and what will it result in
Deleting VM with it's disks will fail after a migration happened probably due to messed up ctl.conf files
Setup
Storage1:
Storage2:
After moving the storage I somehow expected:
Storage1:
Storage2:
What I actually got was:
Storage1:
Storage2:
Some observations: