ドライブがraidz3で失敗しました(pci-0000:03:00.0-scsi-0:0:10:0
)、そして私はそれを利用可能なスペア(wwn-0x5000c500858252ef)と交換しました:
pool: darkpool
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: resilvered 3.16T in 137h44m with 0 errors on Mon Sep 23 16:07:06 2019
config:
NAME STATE READ WRITE CKSUM
darkpool DEGRADED 0 0 0
raidz3-0 DEGRADED 0 0 0
wwn-0x5000c5008581aafb ONLINE 0 0 0
wwn-0x5000c5008581b61b ONLINE 0 0 0
sdm ONLINE 0 0 0
sdj ONLINE 0 0 0
wwn-0x5000c5008581b953 ONLINE 0 0 0
wwn-0x5000c5008581bdf7 ONLINE 0 0 0
wwn-0x5000c50085825ec7 ONLINE 0 0 0
sdg ONLINE 0 0 0
wwn-0x5000c5008581e423 ONLINE 0 0 0
wwn-0x5000c5008581fd3f ONLINE 0 0 0
wwn-0x5000c50085820b93 ONLINE 0 0 0
wwn-0x5000c500858211b3 ONLINE 0 0 0
wwn-0x5000cca267ab0de4 ONLINE 0 0 0
spare-13 DEGRADED 0 0 0
pci-0000:03:00.0-scsi-0:0:10:0 FAULTED 0 69 0 too many errors
wwn-0x5000c500858252ef ONLINE 0 0 0
spares
wwn-0x5000c500858252ef INUSE currently in use
予備は再銀化すると消えて、プールのメンバーになると思いました。しかし、DEGRADED
状態は持続し、スペアはまだINUSE
不良ドライブを埋めていました。
推奨はreplace the faulted device, or use use 'zpool clear' to mark the device as repaired.
clear
の意味を完全に誤解しました。それは私の間違いです。事態を悪化させただけだと思います。
pool: darkpool
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 in progress since Mon Sep 23 17:12:17 2019
6.18T scanned out of 46.4T at 162M/s, 72h16m to go
0B repaired, 13.31% done
config:
NAME STATE READ WRITE CKSUM
darkpool DEGRADED 0 0 0
raidz3-0 DEGRADED 0 0 0
wwn-0x5000c5008581aafb ONLINE 0 0 0
wwn-0x5000c5008581b61b ONLINE 0 0 0
sdm ONLINE 0 0 0
sdj ONLINE 0 0 0
wwn-0x5000c5008581b953 ONLINE 0 0 0
wwn-0x5000c5008581bdf7 ONLINE 0 0 0
wwn-0x5000c50085825ec7 ONLINE 0 0 0
sdg ONLINE 0 0 0
wwn-0x5000c5008581e423 ONLINE 0 0 0
wwn-0x5000c5008581fd3f ONLINE 0 0 0
wwn-0x5000c50085820b93 ONLINE 0 0 0
wwn-0x5000c500858211b3 ONLINE 0 0 0
wwn-0x5000cca267ab0de4 ONLINE 0 0 0
spare-13 DEGRADED 0 0 0
pci-0000:03:00.0-scsi-0:0:10:0 FAULTED 0 0 0 corrupted data
wwn-0x5000c500858252ef ONLINE 0 0 0
spares
wwn-0x5000c500858252ef INUSE currently in use
errors: No known data errors
最後の空きスロットに別のドライブを追加しました、wnn-0x5000cca26788a8f8
しかし、ここで何を置き換える必要がありますか?
lsscsi
の出力:
[0:0:2:0] disk SEAGATE ST8000NM0075 PS24 0x5000c500858211b3 /dev/sda
[0:0:3:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581b953 /dev/sdb
[0:0:4:0] disk SEAGATE ST8000NM0075 PS24 0x5000c50085825ec7 /dev/sdc
[0:0:5:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581e423 /dev/sdd
[0:0:6:0] disk HGST HUH721008AL5205 D384 0x5000cca26788a8f8 /dev/sdq
[0:0:7:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581b61b /dev/sde
[0:0:8:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581aafb /dev/sdf
[0:0:9:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581cc03 /dev/sdg
[0:0:10:0] disk HGST HUH721008AL5205 D384 0x5000cca267ab0de4 /dev/sdh
[0:0:11:0] disk SEAGATE ST8000NM0075 PS24 0x5000c50085823d2b /dev/sdi
[0:0:12:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581b933 /dev/sdj
[0:0:13:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581bdf7 /dev/sdk
[0:0:14:0] disk SEAGATE ST8000NM0075 PS24 0x5000c50085820b93 /dev/sdl
[0:0:15:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581b79f /dev/sdm
[0:0:16:0] disk SEAGATE ST8000NM0075 PS24 0x5000c500858252ef /dev/sdn
[0:0:17:0] disk SEAGATE ST8000NM0075 PS24 0x5000c5008581fd3f /dev/sdo
[0:2:0:0] disk Dell PERC H330 Adp 4.27 0x61866da05f3bc2001f1c1a0d117e72cf /dev/sdp
[10:0:0:0] cd/dvd HL-DT-ST DVD+-RW GHB0N A1C0 0x5001480000000000 /dev/sr0
Sudo zfs get version darkpool
NAME PROPERTY VALUE SOURCE
darkpool version 5 -
プールはUbuntu14.04で作成されたと思います
History for 'darkpool':
2016-07-15.10:38:13 [txg:5] create pool version 5000; software version 5000/5; uts hippocampus 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64
いいえ、誰がこれらの名前を設定したのかわかりません。Ubuntu18では問題にならないようですが、by-idを好みます。
Zpoolエラーのクリアが早すぎた可能性があります(resilverが進行中でした)。ただし、プールの状態に害を及ぼすべきではありませんでした。
プールを再シルバー化してから、zpool clear darkpool
を発行し、最後にzpool scrub darkpool
を実行します。これは、きれいなプールを持つのに十分なはずです。