- 新しく買ってきた真っ新なHDDをミラーリングプールに追加
# gmirror status
Name Status Components
mirror/8tbhdd0p1 COMPLETE
ad8p1 (ACTIVE)
ad11p1 (ACTIVE)# gpart create -s GPT ad12
ad12 created
# gpart add -t freebsd-ufs ad12
ad12p1 added
# gmirror insert 8tbhdd0p1 ad12p1
# gmirror statusName Status Components
mirror/8tbhdd0p1 DEGRADED ad8p1 (ACTIVE)
ad11p1 (ACTIVE)
ad12p1 (SYNCHRONIZING, 0%)
- 今までのミラーリングプールから1台離脱
# gmirror remove 8tbhdd0p1 ad8p1
# gmirror status
Name Status Components
mirror/8tbhdd0p1 DEGRADED ad11p1 (ACTIVE)
ad12p1 (SYNCHRONIZING, 0%)
- 離脱させたHDDで別のミラーリングプールを作成
# gmirror label -v -b round-robin 8tbhdd1p1 ad8p1
Metadata value stored on ad8p1.
Done.
# gmirror status
Name Status Components
mirror/8tbhdd0p1 DEGRADED ad11p1 (ACTIVE)
ad12p1 (SYNCHRONIZING, 0%)
mirror/8tbhdd1p1 COMPLETE ad8p1 (ACTIVE)