Recovering zfs pool

622 Views Asked by At

I have a zfs pool setup on my ubuntu 20.04 system. I had 4 drives and decided to replace 1 of them for a larger one. I tried to offline the drive, then powered off, replaced with new drive, powered on and now my pool is unavailable and the drive ID '/dev/sdd' is marked faulted. I cannot import the pool as it says no pools found. lsblk shows all the drives, the 3 original with the new one and the new one is labeled as '/dev/sdd'. They system still displays my pool name but says one or more devices is currently unavailable.

How can i remove the '/dev/sdd' from the pool so it will show the pool is available?

Any ideas? Please and thank you!

zpool import -a among other variations

1

There are 1 best solutions below

1
inosak On

You can replace with:

zpool replace pool_name /dev/sdd /dev/newdisk

What was the configuration of the pool? If RAID0 you will not recover anything. You should connect old drive, replace it with command above and wait until it finish. Only then you can remove it.

Please post:

zpool status -v

zpool import