U
U
Unicom2011-11-07 15:28:32
ZFS
Unicom, 2011-11-07 15:28:32

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

4 answer(s)
B
bbk, 2012-09-28
@bbk

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

M
Maxim Avanov, 2011-11-07
@Ghostwriter

With a pool without redundancy, it will no longer work.

T
TaN, 2011-11-07
@TaN

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

T
TaN, 2011-11-07
@TaN

I can't offer any more advice, unfortunately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question