ZFS メモ(その1)
ディスクの追加
> zpool add mypool mirror c3t0d0p0 c3t0d1p0
前回の部分から
の続き
format -e コマンドで
4. c3t0d0
/pci@0,0/pci1028,225@2,1/storage@4/disk@0,0
5. c3t0d1
/pci@0,0/pci1028,225@2,1/storage@4/disk@0,1
確認
パーティションを作成
# fdisk -B /dev/rdsk/c3t0d0p0
# fdisk -B /dev/rdsk/c3t0d1p0
今回はディスク全部なので。。。
format -e コマンドで label# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci10de,5d@e/pci1028,1f0e@0/sd@0,0
1. c1t1d0
/pci@0,0/pci10de,5d@e/pci1028,1f0e@0/sd@1,0
2. c2t0d0
/pci@0,0/pci1028,225@2,1/storage@7/disk@0,0
3. c2t0d1
/pci@0,0/pci1028,225@2,1/storage@7/disk@0,1
4. c3t0d0
/pci@0,0/pci1028,225@2,1/storage@4/disk@0,0
5. c3t0d1
/pci@0,0/pci1028,225@2,1/storage@4/disk@0,1
Specify disk (enter its number): 4
selecting c3t0d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!
quit
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
9 - change `9' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!
quit
partition> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]: root
Enter partition permission flags[wm]:
Enter new starting cyl[1]:
Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 60797c
partition> p
Current partition table (unnamed):
Total disk cylinders available: 60798 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 60797 465.73GB (60797/0/0) 976703805
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 60797 465.74GB (60798/0/0) 976719870
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
partition> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]:
Ready to label disk, continue? y
partition> q
FORMAT MENU:
....................................................
!
quit
format> q
#
# # zpool iostat -v
capacity operations bandwidth
pool used avail read write read write
------------ ----- ----- ----- ----- ----- -----
mypool 444G 484G 1 1 136K 3.06K
mirror 444G 19.7G 1 1 136K 3.04K
c2t0d0 - - 0 0 73.9K 3.17K
c2t0d1 - - 0 0 69.9K 3.17K
mirror 63K 464G 0 0 0 705
c3t0d0p0 - - 0 0 759 16.3K
c3t0d1p0 - - 0 0 759 16.3K
------------ ----- ----- ----- ----- ----- -----