Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 14665  / 2 Years ago, wed, november 9, 2022, 4:48:15

Have been running a test instance of a NAS using a ZFS as mentioned in Restoring an Ubuntu Server using ZFS RAIDZ for data.



This week one of my disks died. Shouldn't be a problem, should it (the benefits of RAID being resilience as well as performance)?



Except that my ZFS pool got corrupted, as in:



andy@ubuntu:~$ sudo zpool status -v
pool: tank
state: UNAVAIL
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
scan: none requested
config:

NAME STATE READ WRITE CKSUM
tank UNAVAIL 0 0 0 insufficient replicas
raidz1-0 UNAVAIL 0 0 0 insufficient replicas
sdb FAULTED 0 0 0 corrupted data
sdc FAULTED 0 0 0 corrupted data
sdd UNAVAIL 0 0 0


Fortunately this is a test instance and so I can easily start again. But what if this pool contained important data? What would the right next step(s) be to recover the data and restore my NAS to working order? Or does ZFS automatically try all possible restoration approaches, such that the data is now toast?


More From » raid

 Answers
1

It looks like your pool may not actually be corrupted. Though from the output it seems like multiple devices may be in trouble. I am guessing multiple disks may be in questionable state, hence the faulted state on sdb and sdc. Figure out what might be wrong with them and your pool may prove you wrong. This does not look like a fatal state of pool.


[#40703] Thursday, November 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tiowift

Total Points: 119
Total Questions: 113
Total Answers: 110

Location: South Sudan
Member since Sun, Jul 11, 2021
3 Years ago
;