Can not replace a disk because it says it's part of the pool #16267
Replies: 2 comments
-
zfs_data_4: |
Beta Was this translation helpful? Give feedback.
-
I ended up taking the drive out of the system putting it in a different system and running zpool labelclear -f on it. Then putting it back in and the replace has started: `
errors: No known data errors |
Beta Was this translation helpful? Give feedback.
-
I had a power outage last night and my main pool on a server is now listed as degraded.
pool: zfs_data_4
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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
scan: scrub repaired 0B in 06:13:35 with 0 errors on Sun May 26 06:40:36 2024
config:
I believe I have figured out that the missing disk is /dev/sdd1
[root@fs2 by-serial]# blkid /dev/sdd1 /dev/sdd1: LABEL="zfs_data_4" UUID="16457623129041658883" UUID_SUB="13174824313391367059" TYPE="zfs_member" PARTLABEL="zfs-5673b36e2be4d4da" PARTUUID="83e73662-d104-ad43-9c7d-b1c0b2a02bb2"
However every attempt to add this disk back says its in the active pool.
`
[root@fs2 by-serial]# zpool replace -f zfs_data_4 13174824313391367059 sdd1
invalid vdev specification
the following errors must be manually repaired:
/dev/sdd1 is part of active pool 'zfs_data_4'
[root@fs2 by-serial]# zpool attach zfs_data_4 13174824313391367059 sdd
invalid vdev specification
use '-f' to override the following errors:
/dev/sdd1 is part of active pool 'zfs_data_4'
[root@fs2 by-serial]# zpool attach -f zfs_data_4 13174824313391367059 sdd
invalid vdev specification
the following errors must be manually repaired:
/dev/sdd1 is part of active pool 'zfs_data_4'
[root@fs2 by-serial]# ls -al /dev/disk/by-id | grep ata-HGST_HUH | grep -v part | cat -n
1 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SHXP00Z -> ../../sdh
2 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ329AZ -> ../../sdm
3 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ34TNZ -> ../../sdi
4 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ386AZ -> ../../sdg
5 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ3UUYZ -> ../../sdt
6 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ47B3Z -> ../../sde
7 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ4BD2Z -> ../../sdk
8 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ4NDVZ -> ../../sds
9 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ4RYLZ -> ../../sdj
10 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ5079Z -> ../../sdn
11 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_1SJ7T9BZ -> ../../sdl
12 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_7JH0VTBG -> ../../sdf
13 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_7JH3UJ3C -> ../../sdd
14 lrwxrwxrwx. 1 root root 9 Jun 14 07:38 ata-HGST_HUH721010ALE600_7JH4MZ3C -> ../../sdc
`
Beta Was this translation helpful? Give feedback.
All reactions