My server was rebooted and one of the ZFS pools did not import automatically. I did so manually, and was greeted with this status:
I tracked down the faulted drive to be /dev/disk/by-id/ata-WL4000GSA6472E_WOL240296381. After the reboot, the label "/dev/sdl" has been assigned to a different drive in the same pool. This is why I did not try any zpool commands using "sdl" or "sdl1".
I visited http://zfsonlinux.org/msg/ZFS-8000-4J, but the recommendations did not work. Here is everything I have tried:
I have a spare drive arriving by mail on Monday, but if possible, I'd like to get drive WOL240296381 removed, reinserted into the vdev, and rebuilding before Monday. Any ideas?
Code:
root@proxmox04:~# zpool status
pool: BackupPool
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub repaired 0B in 0 days 06:33:45 with 0 errors on Sun Oct 13 06:57:46 2019
config:
NAME STATE READ WRITE CKSUM
BackupPool DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
3565325763100664358 FAULTED 0 0 0 was /dev/sdl1
ata-WL4000GSA6472E_WOL240296472 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296433 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296453 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296550 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296551 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296528 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296529 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296552 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296452 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240296450 ONLINE 0 0 0
ata-WL4000GSA6472E_WOL240304897 ONLINE 0 0 0
I tracked down the faulted drive to be /dev/disk/by-id/ata-WL4000GSA6472E_WOL240296381. After the reboot, the label "/dev/sdl" has been assigned to a different drive in the same pool. This is why I did not try any zpool commands using "sdl" or "sdl1".
I visited http://zfsonlinux.org/msg/ZFS-8000-4J, but the recommendations did not work. Here is everything I have tried:
Code:
>zpool remove BackupPool ata-WL4000GSA6472E_WOL240296381
cannot remove ata-WL4000GSA6472E_WOL240296381: no such device in pool
>zpool add BackupPool spare ata-WL4000GSA6472E_WOL240296381
invalid vdev specification
use '-f' to override the following errors:
/dev/disk/by-id/ata-WL4000GSA6472E_WOL240296381-part1 is part of active pool 'BackupPool'
>zpool add BackupPool spare ata-WL4000GSA6472E_WOL240296381 -f
invalid vdev specification
the following errors must be manually repaired:
/dev/disk/by-id/ata-WL4000GSA6472E_WOL240296381-part1 is part of active pool 'BackupPool'
>zpool remove BackupPool ata-WL4000GSA6472E_WOL240296381-part1
cannot remove ata-WL4000GSA6472E_WOL240296381-part1: no such device in pool
>zpool replace BackupPool ata-WL4000GSA6472E_WOL240296381
invalid vdev specification
use '-f' to override the following errors:
/dev/disk/by-id/ata-WL4000GSA6472E_WOL240296381-part1 is part of active pool 'BackupPool'
>zpool replace BackupPool ata-WL4000GSA6472E_WOL240296381 -f
invalid vdev specification
the following errors must be manually repaired:
/dev/disk/by-id/ata-WL4000GSA6472E_WOL240296381-part1 is part of active pool 'BackupPool'
I have a spare drive arriving by mail on Monday, but if possible, I'd like to get drive WOL240296381 removed, reinserted into the vdev, and rebuilding before Monday. Any ideas?