Hi Kelsey,
I haven't had to do this myself so someone who has done this
before might have a better suggestion.
I wonder if you need to make links from the original device
name to the new device names.
You can see from the zdb -l output below that the device path
is pointing to the original device names (really long device
names).
Thanks,
Cindy
On 08/24/11 12:11, Kelsey Damas wrote:
I am in a rather unique situation. I've inherited a zpool composed of
two vdevs. One vdev was roughly 9TB on one RAID 5 array, and the
other vdev is roughly 2TB on a different RAID 5 array. The 9TB
array crashed and was sent to a data recovery firm, and they've given
me a dd image. I've also taken a dd image of the other side.
-rw-r--r-- 1 root wheel 9.2T Aug 18 07:53 deep_Lun0.dd
-rw-r--r-- 1 root wheel 2.1T Aug 23 15:55 deep_san01_lun.dd
zpool import identifies that both files are members of the pool, but
there are 'insufficient replicas' and it can not import.
zpool import -d . -F
pool: deep
id: 8026270260630449340
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: http://www.sun.com/msg/ZFS-8000-EY
config:
deep UNAVAIL
insufficient replicas
/jbod1-diskbackup/restore/deep_san01_lun.dd UNAVAIL cannot open
/jbod1-diskbackup/restore/deep_Lun0.dd UNAVAIL cannot open
Using zdb, I can see both images have 4 labels. What are my options
in terms of attempting a recovery? I had hoped that ZFS could import
the pool even if the vdevs are now files instead of devices, but
unfortunately it was not so easy.
zdb -l deep_Lun0.dd
--------------------------------------------
LABEL 0
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 7224951874042153155
guid: 7224951874042153155
vdev_tree:
type: 'disk'
id: 1
guid: 7224951874042153155
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303330383933323030303130363120d0s0'
devid: 'id1,[email protected]_____003089320001061_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303330383933323030303130363120:a'
whole_disk: 0
metaslab_array: 148
metaslab_shift: 36
ashift: 9
asize: 10076008480768
is_log: 0
DTL: 213
--------------------------------------------
LABEL 1
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 7224951874042153155
guid: 7224951874042153155
vdev_tree:
type: 'disk'
id: 1
guid: 7224951874042153155
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303330383933323030303130363120d0s0'
devid: 'id1,[email protected]_____003089320001061_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303330383933323030303130363120:a'
whole_disk: 0
metaslab_array: 148
metaslab_shift: 36
ashift: 9
asize: 10076008480768
is_log: 0
DTL: 213
--------------------------------------------
LABEL 2
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 7224951874042153155
guid: 7224951874042153155
vdev_tree:
type: 'disk'
id: 1
guid: 7224951874042153155
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303330383933323030303130363120d0s0'
devid: 'id1,[email protected]_____003089320001061_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303330383933323030303130363120:a'
whole_disk: 0
metaslab_array: 148
metaslab_shift: 36
ashift: 9
asize: 10076008480768
is_log: 0
DTL: 213
--------------------------------------------
LABEL 3
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 7224951874042153155
guid: 7224951874042153155
vdev_tree:
type: 'disk'
id: 1
guid: 7224951874042153155
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303330383933323030303130363120d0s0'
devid: 'id1,[email protected]_____003089320001061_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303330383933323030303130363120:a'
whole_disk: 0
metaslab_array: 148
metaslab_shift: 36
ashift: 9
asize: 10076008480768
is_log: 0
DTL: 213
zdb -l deep_san01_lun.dd
--------------------------------------------
LABEL 0
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 6101030958963841536
guid: 6101030958963841536
vdev_tree:
type: 'disk'
id: 0
guid: 6101030958963841536
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303131383933323030303130354220d0s0'
devid: 'id1,[email protected]_____00118932000105B_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303131383933323030303130354220:a'
whole_disk: 0
metaslab_array: 13
metaslab_shift: 34
ashift: 9
asize: 2329718554624
is_log: 0
DTL: 214
--------------------------------------------
LABEL 1
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 6101030958963841536
guid: 6101030958963841536
vdev_tree:
type: 'disk'
id: 0
guid: 6101030958963841536
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303131383933323030303130354220d0s0'
devid: 'id1,[email protected]_____00118932000105B_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303131383933323030303130354220:a'
whole_disk: 0
metaslab_array: 13
metaslab_shift: 34
ashift: 9
asize: 2329718554624
is_log: 0
DTL: 214
--------------------------------------------
LABEL 2
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 6101030958963841536
guid: 6101030958963841536
vdev_tree:
type: 'disk'
id: 0
guid: 6101030958963841536
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303131383933323030303130354220d0s0'
devid: 'id1,[email protected]_____00118932000105B_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303131383933323030303130354220:a'
whole_disk: 0
metaslab_array: 13
metaslab_shift: 34
ashift: 9
asize: 2329718554624
is_log: 0
DTL: 214
--------------------------------------------
LABEL 3
--------------------------------------------
version: 15
name: 'deep'
state: 0
txg: 322458504
pool_guid: 8026270260630449340
hostid: 713828554
hostname: 'vali.REDACTED
top_guid: 6101030958963841536
guid: 6101030958963841536
vdev_tree:
type: 'disk'
id: 0
guid: 6101030958963841536
path:
'/dev/dsk/c4t526169645765622E436F6D202020202030303131383933323030303130354220d0s0'
devid: 'id1,[email protected]_____00118932000105B_/a'
phys_path:
'/scsi_vhci/disk@g526169645765622e436f6d202020202030303131383933323030303130354220:a'
whole_disk: 0
metaslab_array: 13
metaslab_shift: 34
ashift: 9
asize: 2329718554624
is_log: 0
DTL: 214
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss