Marius van Vuuren
2009-Jun-08 11:50 UTC
[zfs-discuss] Data corrupted after machines were shut down.
A description of the problem - Description The j4200 and the x4150 connected to it were powered off and then moved to another building with the utmost care. When powered on again ''zpool status'' revealed " corrupted data" on 3 of the disks. Outputs: zpool status pool: pool2 state: FAULTED status: One or more devices could not be used because 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 pool2 FAULTED 0 0 0 corrupted data raidz1 UNAVAIL 0 0 0 insufficient replicas c1t33d0 ONLINE 0 0 0 c1t34d0 FAULTED 0 0 0 corrupted data c1t35d0 ONLINE 0 0 0 c1t36d0 FAULTED 0 0 0 corrupted data c1t37d0 FAULTED 0 0 0 corrupted data raidz1 ONLINE 0 0 0 c1t26d0 ONLINE 0 0 0 c1t27d0 ONLINE 0 0 0 c1t28d0 ONLINE 0 0 0 c1t29d0 ONLINE 0 0 0 c1t30d0 ONLINE 0 0 0 root at x4150:~# zpool status pool: pool2 state: FAULTED status: One or more devices could not be used because 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 pool2 FAULTED 0 0 0 corrupted data raidz1 UNAVAIL 0 0 0 insufficient replicas c1t33d0 ONLINE 0 0 0 c1t34d0 FAULTED 0 0 0 corrupted data c1t35d0 ONLINE 0 0 0 c1t36d0 FAULTED 0 0 0 corrupted data c1t37d0 FAULTED 0 0 0 corrupted data raidz1 ONLINE 0 0 0 c1t26d0 ONLINE 0 0 0 c1t27d0 ONLINE 0 0 0 c1t28d0 ONLINE 0 0 0 c1t29d0 ONLINE 0 0 0 c1t30d0 ONLINE 0 0 0 zfs root at x4150:~# zpool scrub pool2 cannot scrub ''pool2'': pool is currently unavailable All I want to know is if there is ANYTHING I can do to recover the data in this pool? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090608/9b6e314c/attachment.html>
Victor Latushkin
2009-Jun-08 18:40 UTC
[zfs-discuss] Data corrupted after machines were shut down.
On 08.06.09 15:50, Marius van Vuuren wrote:> A description of the problem > > - Description > > The j4200 and the x4150 connected to it were powered off > and then moved to another building with the utmost care. When powered on > again ''zpool status'' revealed " corrupted data" on 3 of the disks. > > Outputs: > > zpool status > pool: pool2 > state: FAULTED > status: One or more devices could not be used because 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 > pool2 FAULTED 0 0 0 corrupted data > raidz1 UNAVAIL 0 0 0 insufficient replicas > c1t33d0 ONLINE 0 0 0 > c1t34d0 FAULTED 0 0 0 corrupted data > c1t35d0 ONLINE 0 0 0 > c1t36d0 FAULTED 0 0 0 corrupted data > c1t37d0 FAULTED 0 0 0 corrupted data > raidz1 ONLINE 0 0 0 > c1t26d0 ONLINE 0 0 0 > c1t27d0 ONLINE 0 0 0 > c1t28d0 ONLINE 0 0 0 > c1t29d0 ONLINE 0 0 0 > c1t30d0 ONLINE 0 0 0 > > root at x4150:~# zpool status > pool: pool2 > state: FAULTED > status: One or more devices could not be used because 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 > pool2 FAULTED 0 0 0 corrupted data > raidz1 UNAVAIL 0 0 0 insufficient replicas > c1t33d0 ONLINE 0 0 0 > c1t34d0 FAULTED 0 0 0 corrupted data > c1t35d0 ONLINE 0 0 0 > c1t36d0 FAULTED 0 0 0 corrupted data > c1t37d0 FAULTED 0 0 0 corrupted data > raidz1 ONLINE 0 0 0 > c1t26d0 ONLINE 0 0 0 > c1t27d0 ONLINE 0 0 0 > c1t28d0 ONLINE 0 0 0 > c1t29d0 ONLINE 0 0 0 > c1t30d0 ONLINE 0 0 0 > zfs > root at x4150:~# zpool scrub pool2 > cannot scrub ''pool2'': pool is currently unavailable > > All I want to know is if there is ANYTHING I can do to recover the data > in this pool?start with running zdb -u pool2 zdb -bcsv pool2 it is a good idea to redirect output (along with stderr) of the second command to some file. It can take a while to run, but upon completion we''ll have better idea what blocks are corrupted and what can be done. regards, victor
Bob Friesenhahn
2009-Jun-08 20:39 UTC
[zfs-discuss] Data corrupted after machines were shut down.
On Mon, 8 Jun 2009, Marius van Vuuren wrote:> > The j4200 and the x4150 connected to it were powered off > and then moved to another building with the utmost care. When powered on > again ''zpool status'' revealed " corrupted data" on 3 of the disks.This could be as simple an issue as SAS cables connected to different ports or arrays. Double-check the cables. Perhaps a zfs export and import might help. Bob -- Bob Friesenhahn bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/