Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to re-create or clone an existing iSCSI target not backed by a ZFS volume? I ask because upon rebooting a X4500 Thumper, I was affected by this bug: The same bug is also here,, but I am suddenly unauthorized to view that page.

Consequently, the LUN parameters for one our iSCSI targets, displayed when executing 'iscsitadm list target -v', are now all unknown. The iSCSI target can be connected to from its Windows Server 2008 initiator, but no disk is ever mounted. The actual data exists in the backing store directory (/export/pool1/iscsi/iqn.1900.fakeiqn/lun.0).

For some additional information, this iSCSI target was created in the following manner:

1) zfs create pool1/iscsi

2) iscsitadm modify admin --base-directory /export/pool1/iscsi

3) iscsitadm create target --size 1T

4) The base directory is laid out as follows (ls -al /export/pool1/iscsi):

drwxr-xr-x 2 root sys 3 Jan 30 10:10

lrwxrwxrwx 1 root sys 87 Nov 4 2010 -> /export/pool1/iscsi/

If it is not possible to re-create or clone this existing iSCSI target, can the LUN data be retrieved any other way?

Thank you for your help.

share|improve this question
up vote 0 down vote accepted

I seemed to have answered my own question.

I was able to recover the data by dd'ing the data from the failed iSCSI target to a new iSCSI target backed by a ZFS volume. These are the steps I performed:

1) zfs create -V 1T pool1/new_target

2) zfs shareiscsi=on pool1/new_target

3) iscsitadm list target -v pool1/new_target | grep 'Backing store'

4) Take note of pool1/new_target's Backing store path (/dev/zvol/rdsk/pool1/new_target in this case)

5) Because the failed iSCSI target is not backed by a ZFS volume Step 4 will not work to find the Backing store for the failed iSCSI target. The data for the failed iSCSI target is located in the Base Directory found using iscsitadm show admin. cd to that directory and follow the path until you find the lun.# file. (/export/pool1/iscsi/

6) dd if=/export/pool1/iscsi/ of=/dev/zvol/rdsk/pool1/new_target bs=8k (The block size of the new ZFS volume is 8k)

This took about 2 days to dd the data, but it was successful and I was able to mount the new iSCSI target from the Windows initiator and see all of the data.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.