oi151でDISKの認識までは終わったので引き続きRAIDZのボリュームを作成する。
Diskの確認$ sudo format
Password:
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <ATA-WDCWD1600AAJS-6-3E03 cyl 19454 alt 2 hd 255 sec 63>
/pci@0,0/pci103c,304a@1f,2/disk@0,0
1. c4t513d0 <ATA-TOSHIBA DT01ACA2-ABB0-1.82TB>
/pci@0,0/pci8086,3b4a@1c,4/pci1b21,1060@0/disk@201,0
2. c4t545d0 <ATA-TOSHIBA DT01ACA2-ABB0-1.82TB>
/pci@0,0/pci8086,3b4a@1c,4/pci1b21,1060@0/disk@221,0
3. c4t577d0 <ATA-TOSHIBA DT01ACA2-ABB0-1.82TB>
/pci@0,0/pci8086,3b4a@1c,4/pci1b21,1060@0/disk@241,0
Specify disk (enter its number): q
`q' is not an integer.
Specify disk (enter its number): ^C
poolの作成
$ sudo zpool create -f datapool raidz1 c4t513d0 c4t545d0 c4t577d0ちょー寡黙。UNIX的か。
$ sudo zpool list状態確認
NAME SIZE ALLOC FREE EXPANDSZ CAP DEDUP HEALTH ALTROOT
datapool 5.44T 1.12M 5.44T - 0% 1.00x ONLINE -
rpool 149G 4.03G 145G - 2% 1.00x ONLINE -
$ sudo zpool statusマウントポイント確認
Password:
pool: datapool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
datapool ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
c4t513d0 ONLINE 0 0 0
c4t545d0 ONLINE 0 0 0
c4t577d0 ONLINE 0 0 0
errors: No known data errors
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c3t0d0s0 ONLINE 0 0 0
errors: No known data errors
$ sudo zfs listファイルシステムをつくる
NAME USED AVAIL REFER MOUNTPOINT
datapool 703K 3.56T 192K /datapool
rpool 4.89G 142G 45K /rpool
rpool/ROOT 2.96G 142G 31K legacy
rpool/ROOT/openindiana 2.96G 142G 2.91G /
rpool/dump 955M 142G 955M -
rpool/export 960K 142G 32K /export
rpool/export/home 928K 142G 32K /export/home
rpool/export/home/xxxx 896K 142G 896K /export/home/xxxx
rpool/swap 1015M 143G 135M -
$ sudo zfs create datapool/documentsマウントポイントを設定
$ sudo zfs create datapool/pictures
$ sudo zfs set mountpoint=/export_documents datapool/documents実験的にdedupを有効にして利用してみる。
$ sudo zfs set mountpoint=/export_pictures datapool/pictures
$ sudo zfs set dedup=on datapool重たかったらメモリかってこよっと。