[[ZFS HDD交換]] CONTENTS #contents ---- Lastmodified &lastmod; ---- *ZFS HDD交換2 [#k58531d1] HPのG7は、ファイルシステム総てをZFSにした場合、再起動しない事があるので、/usr/homeだけをZFS化している。 ada1 ada2 ada3 で構成しているraidz1-0。で、ある日、ada1 が故障し、再起動すると・・・ NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 15956906539897666190 UNAVAIL 0 0 0 was /dev/ada1 ada1 ONLINE 0 0 0 block size: 512B configured, 4096B native ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native errors: No known data errors という風にada2 が ada1 へ。同様にada3がada2へ変化。 ここで、シャットダウンして、飛んだada1を交換し、起動。 NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 15956906539897666190 UNAVAIL 0 0 0 was /dev/ada1 ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native ada3 ONLINE 0 0 0 block size: 512B configured, 4096B native と、ada1が所定の?位置へ。 # zpool online tank ada1 warning: device 'ada1' onlined, but remains in faulted state use 'zpool replace' to replace devices that are no longer present # zpool replace tank ada1 # zpool status 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 Nov 23 06:04:40 2015 182M scanned out of 132G at 20.2M/s, 1h51m to go 59.5M resilvered, 0.13% done config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 replacing-0 UNAVAIL 0 0 0 15956906539897666190 UNAVAIL 0 0 0 was /dev/ada1/old ada1 ONLINE 0 0 0 block size: 512B configured, 4096B native (resilvering) ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native ada3 ONLINE 0 0 0 block size: 512B configured, 4096B native errors: No known data errors pool: zfspool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM zfspool ONLINE 0 0 0 ada0p3 ONLINE 0 0 0 errors: No known data errors block size: 512B configured, 4096B native については後日。(^^ゞ ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);