- I dischi nel pool sono identificati by-path
- Un disco si è danneggiato, ed è stato sostituito fisicamente nella stessa posizione:
# zpool status
pool: BACKUP
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 1 days 21:06:18 with 0 errors on Mon Jan 11 21:30:26 2021
config:
NAME STATE READ WRITE CKSUM
BACKUP DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
7022246872819137128 UNAVAIL 0 0 0 was /dev/disk/by-path/pci-0000:00:1f.2-ata-4-part1
pci-0000:00:1f.2-ata-3 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
pci-0000:00:1f.2-ata-5 ONLINE 0 0 0
pci-0000:00:1f.2-ata-6 ONLINE 0 0 0
errors: No known data errors
- Sostituire l'UUID con il disco nuovo:
zpool replace BACKUP 7022246872819137128 /dev/disk/by-path/pci-0000\:00\:1f.2-ata-4
- Durante la sostituzione si vedrà:
pool: BACKUP
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Wed Jan 20 10:42:10 2021
57.7G scanned at 19.2M/s, 16.4G issued at 5.47M/s, 5.27T total
20.4G resilvered, 0.30% done, no estimated completion time
config:
NAME STATE READ WRITE CKSUM
BACKUP DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
replacing-0 DEGRADED 0 0 0
7022246872819137128 UNAVAIL 0 0 0 was /dev/disk/by-path/pci-0000:00:1f.2-ata-4-part1/old
pci-0000:00:1f.2-ata-4 ONLINE 0 0 0 (resilvering)
pci-0000:00:1f.2-ata-3 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
pci-0000:00:1f.2-ata-5 ONLINE 0 0 0
pci-0000:00:1f.2-ata-6 ONLINE 0 0 0
errors: No known data errors
- Alla fine tutto ritorna alla normalità.