zfs raidz1 with encrypted dataset, two power-loss HDDs - data rescue possible ? #16013
Unanswered
Battlecake91
asked this question in
Q&A
Replies: 1 comment
-
After a full scrub I still can't mount my dataset.
Is there any way to mount it even with the data errors or at least try to save some data? How can I prove that important data to mount is corrupted like headers or something? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
first my setup: AMD Ryzen 5 5600G, AsRock B450m, 32Gig Corsair non-ECC, 5xWD120EFBX
The 5 WD120EFBX runs in the raidz1 mode, I created it a year ago with
zpool create storage raidz1 -m /mypool /dev/by-id /dev/by-id ...
Then I created a encrypted dataset on this pool with:
zfs create -o encryption=aes-256-gcm -o keyformat=raw -o keylocation=xxx storage/mypool
Yesterday I heard some noises from one HDD, it restarted randomly - I checked the zpool status and every hdd was online and not degraded. So I checked it and heard that one HDD has a not that good power connector. But one other HDD on this power rail restarted too, sometimes. But as I said, nothing degraded. It started everytime after that again.
I held the power connector to stop it from restarting and shutted xubuntu down. After that I checked the cables, replaced it, started the NAS and waited before I boot if the HDD is restarting again. After some cable-testing, I thought everything is fine and restarted the NAS.
Now the zpool status tells me that there are not repairable data and I cannot decrypt my dataset.
I started a scrub and waited.
At the moment I'm at 27%, this is the output from zpool status:
If I try to mount the dataset - this happens:
(It's german and says Input/Output error)
My big problem is, I have a Backup, but it is a few month old and at least I want to try to safe as many as possible and if it is just the directory structue to see what stuff is new, what is still in my backup.
Is there any way to get the dataset mounted again? Even with corrupted data?
I'm confused because before the shutdown, zpool status didn't show me any corrupted data or failed drives, the drive was online/running at the moment I shutdown.
Or is it because of the encryption? Some decryption necessary data corrupted. Would something change after the scrub or is it just time consuming and showing me that I lost this war?
I found some similar topics, one with a workaround where somebody tried to do a snapshot and recovers it or something...
It was this topic: #13709 , the last comment was the workaround but I don't really understand what to do.
Beta Was this translation helpful? Give feedback.
All reactions