Answer the question
In order to leave comments, you need to log in
ZFS: How to restore a zpool if one of the devices in it is unavailable?
Situation: there is a zpool (without redundancy) of 2 or 3 physical disks. At some point in time, one of the disks fails completely. As a result, the zpool is not in the system. How can I recover either this zpool (minus the information lost on the dead disk), or save data from other disks from this pool?
Answer the question
In order to leave comments, you need to log in
And there one disk just died or is it not clear?
If it is not clear, try to restore. I can't read the comments above, but it helped me. But recovery can take a very long time, for example two days.
It may seem that nothing is happening and the system is hanging, but it helped me
zpool export tank
set zfs:zfs_recover=1
zdb -e -bcsvL tank
zpool export tank -f
First of all, make a backup, then execute the
# zpool clear %pool_name% command,
which removes the error flag from the pool and allows it to be initialized.
Copy everything you can
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question