何か決めなきゃ駄目ですか。



俺が決めたら、貴方はどうするんだい。

スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

PageTop

FreeBSD7.2 + ZFSのHDD抜き差し

FreeBSD7.2 + ZFS + WD製HDD*5で運用中のraidzの、HDDを入れ替える作業。

・最初から最後まで電源は付いたまま。

以下sshログを垂れ流す。

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2009.11.28 18:20:58 =~=~=~=~=~=~=~=~=~=~=~=

$ su -

Password:
#

# zpool status

pool: lib_01
state: ONLINE
scrub: scrub completed with 0 errors on Sat Nov 28 00:03:02 2009
config:

NAME STATE READ WRITE CKSUM
lib_01 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data errors
#

# atacontrol list

ATA channel 0:
Master: ad0<IC25N040ATMR04-0/MO2OAD4A>ATA/ATAPI revision 6
Slave: no device present
ATA channel 2:
Master: ad4<WDC WD10EACS-22D6B0/01.01A01>SATA revision 2.x
Slave: no device present
ATA channel 3:
Master: ad6<WDC WD10EADS-00M2B0/01.00A01>SATA revision 2.x
Slave: no device present
ATA channel 4:
Master: ad8<WDC WD10EADS-00M2B0/01.00A01>SATA revision 2.x
Slave: no device present
ATA channel 5:
Master: ad10<WDC WD10EADS-00L5B1/01.01A01>SATA revision 2.x
Slave: no device present
ATA channel 6:
Master: ad12<WDC WD10EADS-00M2B0/01.00A01>SATA revision 2.x
Slave: no device present
ATA channel 7:
Master: no device present
Slave: no device present

# atacontrol detach ata2

# atacontrol lists

ATA channel 0:
Master: ad0<IC25N040ATMR04-0/MO2OAD4A>ATA/ATAPI revision 6
Slave: no device present
ATA channel 2:
Master: no device present
Slave: no device present
ATA channel 3:
Master: ad6<WDC WD10EADS-00M2B0/01.00A01>SATA revision 2.x
Slave: no device present
ATA channel 4:
Master: ad8<WDC WD10EADS-00M2B0/01.00A01>SATA revision 2.x
Slave: no device present
ATA channel 5:
Master: ad10<WDC WD10EADS-00L5B1/01.01A01>SATA revision 2.x
Slave: no device present
ATA channel 6:
Master: ad12<WDC WD10EADS-00M2B0/01.00A01>SATA revision 2.x
Slave: no device present
ATA channel 7:
Master: no device present
Slave: no device present
#

# zpool status

pool: lib_01
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://www.sun.com/msg/ZFS-8000-D3
scrub: scrub completed with 0 errors on Sat Nov 28 00:03:02 2009
config:

NAME STATE READ WRITE CKSUM
lib_01 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
ad4 UNAVAIL 0 0 0 cannot open
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data error

#



ここで物理的にHDDを引っこ抜いて、入れ替える作業。


# atacontrol attach ata2

Master: ad4<WDC WD10EADS-00L5B1/01.01A01>SATA revision 2.x
Slave: no device present
#

# zpool status

pool: lib_01
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://www.sun.com/msg/ZFS-8000-D3
scrub: scrub completed with 0 errors on Sat Nov 28 00:03:02 2009
config:

NAME STATE READ WRITE CKSUM
lib_01 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
ad4 UNAVAIL 0 0 0 cannot open
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data errors
#

# zpool replace lib_01 ad4

# zpool status

pool: lib_01
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, 0.64% done, 6h38m to go
config:

NAME STATE READ WRITE CKSUM
lib_01 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
replacing DEGRADED 0 0 0
ad4/old UNAVAIL 0 0 0 cannot open
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data errors
#

# zpool status

pool: lib_01
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, 28.02% done, 2h22m to go
config:

NAME STATE READ WRITE CKSUM
lib_01 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
replacing DEGRADED 0 0 0
ad4/old UNAVAIL 0 0 0 cannot open
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data errors
#

# zpool status

pool: lib_01
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, 99.12% done, 0h1m to go
config:

NAME STATE READ WRITE CKSUM
lib_01 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
replacing DEGRADED 0 0 0
ad4/old UNAVAIL 0 0 0 cannot open
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data errors
# zpool status

pool: lib_01
state: ONLINE
scrub: resilver completed with 0 errors on Sat Nov 28 22:07:19 2009
config:

NAME STATE READ WRITE CKSUM
lib_01 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0

errors: No known data errors
# date

Sat Nov 28 22:10:57 JST 2009

# exit

logout
$ exit

logout

PageTop

コメント


管理者にだけ表示を許可する
 

上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。