FreeBSD で AFT 使用時のメモ

RAID カードを 3ware 9650SE-8LP から LSI 9260CV-8i に変更するために既存データのバックアップに
ST3000DM001 を使用したときのメモです。

gpart create -s GPT ad8
gpart add -t freebsd-ufs -a 504 -b 504 ad8
newfs -S 4096 -f 4096 -O 2 -U /dev/ad8p1

newfs のときに間違えて「/dev/ad8p1」ではなく「ad8」などディスク自体を指定した場合は

kernel: GEOM: ad10: the secondary GPT table is corrupt or invalid.
kernel: GEOM: ad10: using the primary only -- recovery suggested.
kernel: GEOM: ufsid/4f001c755f780c2f: the secondary GPT table is corrupt or invalid.
kernel: GEOM: ufsid/4f001c755f780c2f: using the primary only -- recovery suggested.

と GPT パーティション情報が破壊されます。

参考元

http://wwws.nagano.ac.jp/circle/tanaka/2010/06/2tbafthddfreebsd.html

http://blog.still-laughin.com/archives/2011/04/3wd20ears.html

http://uyota.asablo.jp/blog/2009/03/09/4162452

diskinfo の結果

# diskinfo -v /dev/ad8
/dev/ad8
        512             # sectorsize
        3000592982016   # mediasize in bytes (2.7T)
        5860533168      # mediasize in sectors
        0               # stripesize
        0               # stripeoffset
        5814021         # Cylinders according to firmware.
        16              # Heads according to firmware.
        63              # Sectors according to firmware.

2011-01-04 追加
「-S」オプションはなるべく使用しないほうがいいかも知れません。
newfs のマニュアルには

これらの値をデフォルトの値から変更すると、標準のスーパブ
     ロックが壊れたときに、 fsck(8) が代替のスーパブロックを見つけることができ
     なくなるので注意してください。

とあります。

This entry was posted in FreeBSD. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>