This is the 2nd attempt, so my apologies, if this mail got to you already... Folkses, I''m in an absolute state of panic because I lost about 160GB of data which were on an external USB disk. Here is what happened: 1. I added a 500GB USB disk to my Ultra25/Solaris 10 2. I created a zpool and a zfs for the whole disk 3. I copied lots of data on to the disk 4. I ''zfs umount''ed the disk, unplugged the USB cable 5. I attached the disk to a PC/Solaris 10 and tried to get the data 6. but I couldn''t find it (didn''t know about ''zfs import'' then) 7. re-attached the disk to the Ultra25/Solaris 10 and now ''zpool status'' tells me that the pool is FAULTED and the data is corrupted. SUN support tells me that I have lost all data. They also suggested to try this disk on a Nevada system which I did. There the zpool showed up correctly but the zfs file system didn''t. If I do a hex dump of the physical device I can see all the data but I can''t get to it... aaarrrggghhh Has anybody successfully patched/tweaked/whatever a zpool or zfs to recover from this? I would be most and for ever greatful I somebody could give me a hint. Thanx, Thomas Following is the ''zpool status'': zpool status -xv pool: usbDisk state: FAULTED status: One or more devices could not be used because the the label is missing or invalid. There are insufficient replicas for the pool to continue functioning. action: Destroy and re-create the pool from a backup source. see: http://www.sun.com/msg/ZFS-8000-5E scrub: none requested config: NAME STATE READ WRITE CKSUM usbDisk FAULTED 0 0 0 corrupted data c5t0d0s0 FAULTED 0 0 0 corrupted data and the output of zdb: disk1 version=4 name=''disk1'' state=0 txg=4 pool_guid=10847216141970570446 vdev_tree type=''root'' id=0 guid=10847216141970570446 children[0] type=''disk'' id=0 guid=5919680419735522389 path=''/dev/dsk/c1t1d0s1'' devid=''id1,sd at n5000cca210d5d772/b'' whole_disk=0 metaslab_array=14 metaslab_shift=30 ashift=9 asize=141729202176 usbDisk version=4 name=''usbDisk'' state=0 txg=4 pool_guid=18060149023938226877 vdev_tree type=''root'' id=0 guid=18060149023938226877 children[0] type=''disk'' id=0 guid=4959744788625823079 path=''/dev/dsk/c5t0d0s0'' devid=''id1,sd at TWD______5000AAV_External/a'' whole_disk=0 metaslab_array=14 metaslab_shift=32 ashift=9 asize=500100497408 obelix2:/# zdb -l /dev/dsk/c5t0d0s0 -------------------------------------------- LABEL 0 -------------------------------------------- version=4 name=''WD'' state=0 txg=36 pool_guid=7944655440509665617 hostname=''opensolaris'' top_guid=13767930161106254968 guid=13767930161106254968 vdev_tree type=''disk'' id=0 guid=13767930161106254968 path=''/dev/dsk/c8t0d0p0'' devid=''id1,sd at TWD______5000AAV_External/q'' phys_path=''/pci at 0,0/pci1028,1ed at b,1/storage at 8/disk at 0,0:q'' whole_disk=0 metaslab_array=14 metaslab_shift=32 ashift=9 asize=500103118848 is_log=0 DTL=18 -------------------------------------------- LABEL 1 -------------------------------------------- version=4 name=''WD'' state=0 txg=36 pool_guid=7944655440509665617 hostname=''opensolaris'' top_guid=13767930161106254968 guid=13767930161106254968 vdev_tree type=''disk'' id=0 guid=13767930161106254968 path=''/dev/dsk/c8t0d0p0'' devid=''id1,sd at TWD______5000AAV_External/q'' phys_path=''/pci at 0,0/pci1028,1ed at b,1/storage at 8/disk at 0,0:q'' whole_disk=0 metaslab_array=14 metaslab_shift=32 ashift=9 asize=500103118848 is_log=0 DTL=18 -------------------------------------------- LABEL 2 -------------------------------------------- version=4 name=''usbDisk'' state=0 txg=4 pool_guid=18060149023938226877 top_guid=4959744788625823079 guid=4959744788625823079 vdev_tree type=''disk'' id=0 guid=4959744788625823079 path=''/dev/dsk/c5t0d0s0'' devid=''id1,sd at TWD______5000AAV_External/a'' whole_disk=0 metaslab_array=14 metaslab_shift=32 ashift=9 asize=500100497408 -------------------------------------------- LABEL 3 -------------------------------------------- version=4 name=''usbDisk'' state=0 txg=4 pool_guid=18060149023938226877 top_guid=4959744788625823079 guid=4959744788625823079 vdev_tree type=''disk'' id=0 guid=4959744788625823079 path=''/dev/dsk/c5t0d0s0'' devid=''id1,sd at TWD______5000AAV_External/a'' whole_disk=0 metaslab_array=14 metaslab_shift=32 ashift=9 asize=500100497408 -- Intelligent Communication Software Vertriebs GmbH Firmensitz: Kistlerhof Str. 111, 81379 M?nchen Registergericht: Amtsgericht M?nchen, HRB 88283 Gesch?ftsf?hrer: Albert Fuss -------------- next part -------------- A non-text attachment was scrubbed... Name: kloeber.vcf Type: text/x-vcard Size: 348 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20081107/23bceba9/attachment.vcf>
Thomas Kloeber wrote:> This is the 2nd attempt, so my apologies, if this mail got to you > already... > > Folkses, > > I''m in an absolute state of panic because I lost about 160GB of data > which were on an external USB disk. > Here is what happened: > 1. I added a 500GB USB disk to my Ultra25/Solaris 10 > 2. I created a zpool and a zfs for the whole disk > 3. I copied lots of data on to the disk > 4. I ''zfs umount''ed the disk, unplugged the USB cable > 5. I attached the disk to a PC/Solaris 10 and tried to get the data > 6. but I couldn''t find it (didn''t know about ''zfs import'' then) > 7. re-attached the disk to the Ultra25/Solaris 10 > and now ''zpool status'' tells me that the pool is FAULTED and the data is > corrupted. SUN support tells me that I have lost all data. They also > suggested to try this disk on a Nevada system which I did. There the > zpool showed up correctly but the zfs file system didn''t.Can you explain this? If the zpool import succeeded, then what does "zfs list" show? -- richard> > If I do a hex dump of the physical device I can see all the data but I > can''t get to it... aaarrrggghhh > > Has anybody successfully patched/tweaked/whatever a zpool or zfs to > recover from this? > > I would be most and for ever greatful I somebody could give me a hint. > > Thanx, > > Thomas > > Following is the ''zpool status'': > zpool status -xv > pool: usbDisk > state: FAULTED > status: One or more devices could not be used because the the label is > missing > or invalid. There are insufficient replicas for the pool to continue > functioning. > action: Destroy and re-create the pool from a backup source. > see: http://www.sun.com/msg/ZFS-8000-5E > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > usbDisk FAULTED 0 0 0 corrupted data > c5t0d0s0 FAULTED 0 0 0 corrupted data > > and the output of zdb: > disk1 > version=4 > name=''disk1'' > state=0 > txg=4 > pool_guid=10847216141970570446 > vdev_tree > type=''root'' > id=0 > guid=10847216141970570446 > children[0] > type=''disk'' > id=0 > guid=5919680419735522389 > path=''/dev/dsk/c1t1d0s1'' > devid=''id1,sd at n5000cca210d5d772/b'' > whole_disk=0 > metaslab_array=14 > metaslab_shift=30 > ashift=9 > asize=141729202176 > usbDisk > version=4 > name=''usbDisk'' > state=0 > txg=4 > pool_guid=18060149023938226877 > vdev_tree > type=''root'' > id=0 > guid=18060149023938226877 > children[0] > type=''disk'' > id=0 > guid=4959744788625823079 > path=''/dev/dsk/c5t0d0s0'' > devid=''id1,sd at TWD______5000AAV_External/a'' > whole_disk=0 > metaslab_array=14 > metaslab_shift=32 > ashift=9 > asize=500100497408 > obelix2:/# zdb -l /dev/dsk/c5t0d0s0 > -------------------------------------------- > LABEL 0 > -------------------------------------------- > version=4 > name=''WD'' > state=0 > txg=36 > pool_guid=7944655440509665617 > hostname=''opensolaris'' > top_guid=13767930161106254968 > guid=13767930161106254968 > vdev_tree > type=''disk'' > id=0 > guid=13767930161106254968 > path=''/dev/dsk/c8t0d0p0'' > devid=''id1,sd at TWD______5000AAV_External/q'' > phys_path=''/pci at 0,0/pci1028,1ed at b,1/storage at 8/disk at 0,0:q'' > whole_disk=0 > metaslab_array=14 > metaslab_shift=32 > ashift=9 > asize=500103118848 > is_log=0 > DTL=18 > -------------------------------------------- > LABEL 1 > -------------------------------------------- > version=4 > name=''WD'' > state=0 > txg=36 > pool_guid=7944655440509665617 > hostname=''opensolaris'' > top_guid=13767930161106254968 > guid=13767930161106254968 > vdev_tree > type=''disk'' > id=0 > guid=13767930161106254968 > path=''/dev/dsk/c8t0d0p0'' > devid=''id1,sd at TWD______5000AAV_External/q'' > phys_path=''/pci at 0,0/pci1028,1ed at b,1/storage at 8/disk at 0,0:q'' > whole_disk=0 > metaslab_array=14 > metaslab_shift=32 > ashift=9 > asize=500103118848 > is_log=0 > DTL=18 > -------------------------------------------- > LABEL 2 > -------------------------------------------- > version=4 > name=''usbDisk'' > state=0 > txg=4 > pool_guid=18060149023938226877 > top_guid=4959744788625823079 > guid=4959744788625823079 > vdev_tree > type=''disk'' > id=0 > guid=4959744788625823079 > path=''/dev/dsk/c5t0d0s0'' > devid=''id1,sd at TWD______5000AAV_External/a'' > whole_disk=0 > metaslab_array=14 > metaslab_shift=32 > ashift=9 > asize=500100497408 > -------------------------------------------- > LABEL 3 > -------------------------------------------- > version=4 > name=''usbDisk'' > state=0 > txg=4 > pool_guid=18060149023938226877 > top_guid=4959744788625823079 > guid=4959744788625823079 > vdev_tree > type=''disk'' > id=0 > guid=4959744788625823079 > path=''/dev/dsk/c5t0d0s0'' > devid=''id1,sd at TWD______5000AAV_External/a'' > whole_disk=0 > metaslab_array=14 > metaslab_shift=32 > ashift=9 > asize=500100497408 > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >