opensolarisのsambaサーバー構築、その4.0
四台構成のRAIDZのうち、一台のHDDが不調なようなので交換準備。
え〜、通常ならsolaris11expressなんかなんでしょうけど
メンドイので、まだopensolaris2009.06*1が現役で稼働しています>A<
と、組んでから2年程度経っているので、そろそろ交代時期なのですが。
本棚からZFS 仮想化されたファイルシステムの徹底活用を引っ張り出して、状態確認のデータチェックコマンド走らせてみました。
って、こうゆう所がzfs,zpool便利ですね^^
$ pfexec su
# zpool scrub myraidz
# zpool status myraidz pool: myraidz 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. scrub: none requested config: NAME STATE READ WRITE CKSUM myraidz DEGRADED 0 0 0 raidz1 DEGRADED 0 0 0 c5d0 ONLINE 0 0 0 c5d1 FAULTED 0 0 0 too many errors c6d0 ONLINE 0 0 0 c6d1 ONLINE 0 0 0 errors: No known data errors
あぱぱぱぱぱ、エラーがwww<
仕方ないので、現状のRAIDZでの500GBx4のエラーが出てるHDDを
手持ちの1TBと交換するとします。
# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c4d0 <DEFAULT cyl 9962 alt 2 hd 255 sec 63> /pci@0,0/pci-ide@14,1/ide@0/cmdk@0,0 1. c5d0 <Hitachi- GEA550RF170NX-0001-465.76GB> /pci@0,0/pci-ide@12/ide@0/cmdk@0,0 2. c5d1 <Hitachi- GEA534RF15VL3-0001-465.76GB> /pci@0,0/pci-ide@12/ide@0/cmdk@1,0 3. c6d0 <Hitachi- GEA510RF1VBNB-0001-465.76GB> /pci@0,0/pci-ide@12/ide@1/cmdk@0,0 4. c6d1 <Hitachi- VFK401R4DBUB1-0001-465.76GB> /pci@0,0/pci-ide@12/ide@1/cmdk@1,0 5. c8d0 <WDC WD10- WD-WCAV5129639-0001-931.51GB> /pci@0,0/pci1002,4384@14,4/pci-ide@5/ide@0/cmdk@0,0 6. c8d1 <WDC WD10- WD-WCAU4203083-0001-931.51GB> /pci@0,0/pci1002,4384@14,4/pci-ide@5/ide@0/cmdk@1,0 7. c9d0 <WDC WD10- WD-WCAU4231056-0001-931.51GB> /pci@0,0/pci1002,4384@14,4/pci-ide@5/ide@1/cmdk@0,0 8. c9d1 <WDC WD10- WD-WCAU4230567-0001-931.51GB> /pci@0,0/pci1002,4384@14,4/pci-ide@5/ide@1/cmdk@1,0 Specify disk (enter its number): ^C
上記の構成から、HDDを交換します。
ついでに1TBx1でなく、1TBx4のHDDを新たに接続。
なぜかってゆうと500GBx4のHDDもそろそろ寿命でしょうから
1TBx4*2に全交換予定です。
# zpool replace myraidz c5d1 c8d1 # zpool status myraidz pool: myraidz 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. scrub: resilver in progress for 0h13m, 4.11% done, 5h4m to go config: NAME STATE READ WRITE CKSUM myraidz DEGRADED 0 0 0 raidz1 DEGRADED 0 0 0 c5d0 ONLINE 0 0 0 replacing DEGRADED 0 0 372K c5d1 FAULTED 0 0 0 too many errors c8d1 ONLINE 0 0 0 15.4G resilvered c6d0 ONLINE 0 0 0 c6d1 ONLINE 0 0 0 errors: No known data errors
ほい、5時間かかるそうです。
# zpool status myraidz pool: myraidz state: ONLINE status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using 'zpool upgrade'. Once this is done, the pool will no longer be accessible on older software versions. scrub: resilver completed after 5h13m with 0 errors on Mon Jan 8 10:55:04 2007 config: NAME STATE READ WRITE CKSUM myraidz ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c5d0 ONLINE 0 0 0 c8d1 ONLINE 0 0 0 374G resilvered c6d0 ONLINE 0 0 0 c6d1 ONLINE 0 0 0 errors: No known data errors
で、5時間経ちまして完了したようです><
しかし5時間って。
ん〜、セキュリティにも問題ありますしsolaris11かkfreebsdに移項しなくちゃですねw;
ZFS 仮想化されたファイルシステムの徹底活用posted with amazlet at 11.03.20