opensolarisのsambaサーバー構築、その4.1

四台構成のRAIDZのHDDを全交換準備。

 前回一台のHDDを交換したので予定通り全部交換していく。
って単純に、'zpool replace'コマンドで順番に交換していくだけの簡単なお仕事w*

# zpool replace myraidz c5d0 c8d0

 'zpool status'コマンドで終了を確認*1してから、次交換><

# zpool replace myraidz c6d0 c9d0

 'zpool status'コマンドで終了を確認してから、次交換><

# zpool replace myraidz c6d1 c9d1

 で、RAIDZの全HDDの交換完了です。

# 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 4h57m with 0 errors on Mon Jan  1 13:48:23 2007
config:

        NAME        STATE     READ WRITE CKSUM
        myraidz     ONLINE       0     0     0
          raidz1    ONLINE       0     0     0
            c8d0    ONLINE       0     0     0
            c8d1    ONLINE       0     0     0
            c9d0    ONLINE       0     0     0
            c9d1    ONLINE       0     0     0  374G resilvered

errors: No known data errors

 で、raidzが500GBx4から1TBx4に交換されたから
容量が1.5TBから3TBに増えているのを期待しますが、
残念ながら増えません^^;

 まあ詳しくは上記ページを参考にしてくれれば良いですが
zpool容量増やす操作を行った後は、容量を減らせない*2ので
デフォルト無効で、明示的に指定してもらうようにしたんでしょうか。


 まあそれはさておき更新です^^

# zpool online -e myraidz c8d0
invalid option 'e'
usage:
        online <pool> <device> ...

 あれw

# zpool set autoexpand=on myraidz
cannot set property for 'myraidz': invalid property 'autoexpand'

 あれ、あれw
どうして?
とググってみると、こんなのが。

 build117でzpool version 15からとの事。
で、うちの環境を調べてみると

# uname -a
SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris
# zfs upgrade
This system is currently running ZFS filesystem version 3.

All filesystems are formatted with the current version.
# zpool upgrade
This system is currently running ZFS pool version 14.

All pools are formatted using this version.

ん、どうしよ*3w;

ZFS 仮想化されたファイルシステムの徹底活用
長原 宏治 佐藤 通敏 今井 悟志 加藤 久慶
アスキー・メディアワークス
売り上げランキング: 149212

*1:する必要があるのかどうか不明ですが、安全のために。それにIOがボトルネックになってるでしょうからね

*2:普通は減らす人なんて居ないと思いますが、一時的に交換するのはあり得えますから

*3:kfreebsd6.0がzfs version 4, zpool version 14だったと思うのでdebian/kfreebsdへの移行計画が白紙にw;