Jacob Ritorto
2008-Sep-09 18:51 UTC
[zfs-discuss] mv iSCSI store to another zpool w/o losing original target name
Hi, I made a zvol and set it up as a target like this: root at Allika~[84]11:19#zfs create -V20g Allika/joberg root at Allika~[85]11:19#zfs set shareiscsi=on Allika/joberg root at Allika~[86]11:19#iscsitadm list target Target: Allika/joberg iSCSI Name: iqn.1986-03.com.sun:02:085ec10a-16f7-e09d-968a-fc9101751a08 Connections: 0 I then told my initiator(s) its name and connected successfully, copied some stuff in. All was well. But now I wish to consolidate pools on the iSCSI target host and need to move the joberg zvol to the new pool. I tried to send|receive it over, but the properties apparently didn''t come along. Undaunted, I set the shareiscsi property again, same way as before, but of course got a different target name. The I couldn''t find a way to change it back. I needed to have the same target name to avoid having to chase down and rework the settings on other box(en), bounce iscsi stacks, remount volumes, reboot, reinstall, etc etc etc. (yes I''m being dramatic here, but they are crabby, mean old Novell boxes that are less angry the less they''re touched :) . Is there a way to accomplish this with a zfs command (keep old target name after moving zvol)? I RTFMed but didn''t see any mention of a way to do this. thx jake