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
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.