I have an ssd drive with failed controller and which was a part of a mirrored zfs vdev. Now it boots into initramfs and says that it can't import pool "rpool". when i issue
it says that there's no such pool or dataset. However, in "zpool import" can see that rpool has status UNAVAIL because of insufficient replicas. i would like to replace the dead drive with a new one. I have tried:
and everytime i get that there's no such pool or dataset. The only way i got it working was by importing as read only by using:
screenshot of zpool import: https://prnt.sc/91X8xc3vG1SA
screenshot of zpool status after mounting as read-only: https://prnt.sc/vKzNL0nUFALc
Mounting as read-only boots into the OS. However since it's mounted as readonly i can't actually make any changes to the pool like replacing the damaged drive. Any suggestions?
zpool import -f rpool
it says that there's no such pool or dataset. However, in "zpool import" can see that rpool has status UNAVAIL because of insufficient replicas. i would like to replace the dead drive with a new one. I have tried:
1) zpool replace
2) zpool offline
3) zpool detach
and everytime i get that there's no such pool or dataset. The only way i got it working was by importing as read only by using:
echo "1" | sudo tee /sys/module/zfs/parameters/zfs_max_missing_tvds
zpool import -o readonly=on rpool
screenshot of zpool import: https://prnt.sc/91X8xc3vG1SA
screenshot of zpool status after mounting as read-only: https://prnt.sc/vKzNL0nUFALc
Mounting as read-only boots into the OS. However since it's mounted as readonly i can't actually make any changes to the pool like replacing the damaged drive. Any suggestions?
Last edited: