おのたく日記 YouTubeも始めました→
2021-01-11(Mon) [ZFS] HDD換装 4TB->8TB [長年日記]
■ 10月21日の日記以来、だましだまし使ってきたSeagate Desktop HDD ST-4000DM000だけど、ついに
This message was generated by the smartd daemon running on:
host name: on-o.com
DNS domain: on-o.com
The following warning/error was logged by the smartd daemon:
Device: /dev/sdc [SAT], 16 Offline uncorrectable sectors
Device info:
ST4000DM000-1F2168, S/N:Z3123535Z, WWN:5-000c50-026c09fdb, FW:CC54, 4.00 TB
For details see host's SYSLOG.
You can also use the smartctl utility for further investigation.
The original message about this issue was sent at Sat Jan 9 19:44:02 2021 JS
Another message will be sent in 24 hours if the problem persists.
なんてメールが来るようになって、ZFS scrubでも
ZFS has finished a scrub:
eid: 33
class: scrub_finish
host: on-o.com
time: 2021-01-11 12:44:03+0900
pool: tank
state: DEGRADED
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
scan: scrub repaired 248K in 08:16:54 with 0 errors on Mon Jan 11 12:44:03 2021
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
sdc1 DEGRADED 7 0 14 too many errors
sdb1 ONLINE 0 0 0
cache
sda3 ONLINE 0 0 0
errors: No known data errors
となっていて復旧不可能。HDD自体は生きているけど、不良セクターが多すぎているらしい。もう、三年半以上使っているので寿命かな。
そこで、今回こわれたHDDを入れた20017年5月31日の日記や、今回生きている、2018年11月の日記、さらにそれの前の2013年12月28日の日記でもやっている定例業務だから、手慣れたもので、HDDを新しいSeagate Barracuda ST8000DM004に換装して
# zpool replace -o ashift=12 tank 9428551599581464311 /dev/sdc1
# zpool status -v
pool: tank
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 Mon Jan 11 17:24:14 2021
197G scanned at 2.95G/s, 392K issued at 5.85K/s, 2.42T total
0B resilvered, 0.00% done, no estimated completion time
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
replacing-0 DEGRADED 0 0 0
9428551599581464311 UNAVAIL 0 0 0 was /dev/sdc1/old
sdc1 ONLINE 0 0 0
sdb1 ONLINE 0 0 0
cache
sda3 ONLINE 0 0 0
errors: No known data errors
という感じでreplace中。
ashift=12 で4KBを明示したのは雰囲気
# zdb|grep ashift
ashift: 12
そもそも、tankは4KBセクターだった。
|