ZFS - Directory Contents vanished
Posted: 19 Jul 2013 13:29
Hey guys,
so I recently discovered that the contents of one of my ZFS RaidZ1 directory are empty now.
Since there were quite some important data in it, I was wondering how I can restore the contents?
Some Facts:
Here is what I did:
Yours Tschuki
so I recently discovered that the contents of one of my ZFS RaidZ1 directory are empty now.
Since there were quite some important data in it, I was wondering how I can restore the contents?
Some Facts:
- RAIDZ1 ZFS array with 6x2TB SAMSUNG HD204UI
Code: Select all
pool: RAIDZ1
state: ONLINE
scan: resilvered 300K in 0h0m with 0 errors on Fri Jul 19 13:04:06 2013
config:
NAME STATE READ WRITE CKSUM
RAIDZ1 ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada4 ONLINE 0 0 0
ada5 ONLINE 0 0 0
errors: No known data errors- Since I use the SAMSUNG HD204UI 2TB disks - I did a firmware upgrade to enable a safe S.M.A.R.T. Monitoring
- I did on all of them
Code: Select all
smartctl -t short /dev/adaX - So my dev/ada1 got his
Code: Select all
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 1 - I googled a bit and found out, I shoud run a LONG selftest, which will provide me the faulty sector, which I will rewrite and the problem should be fixed
- Here are the results of the tests:
Code: Select all
SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 15813 - # 2 Short offline Completed without error 00% 15813 - # 3 Extended offline Completed without error 00% 15807 - # 4 Short offline Completed without error 00% 15790 - - So the long selftest doesn't show anything abnormal, but the error is still there.
- As you can see, I tried to offline and online the disk but there is a small amount of resilvering done and everything is normal again
I'd like to reformat the disk and integrate it back into the array. How can I do this?
I get the feeling, that the contents are forever lost
and the faulty sector is somehow responsible, since I can see the empty directory and my AFP has already made a new ".AppleDouble" directory in it.
Do you have any ideas to help me?
Yours Tschuki