Agan agan sekalian, berikut step by step melakukan penambahan disk kedalam ZFS pool.
Perbedaan ZFS & Tradisional File Systems
root@topaz # devfsadm -c disk (reconfigure new attached devices)
root@topaz #
root@topaz #
root@topaz # cfgadm -al (melihat semua disk didalam server)
May 10 15:24:33 topaz Corrupt label; wrong magic number
May 10 15:24:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000238 (ssd18):
May 10 15:24:34 topaz Corrupt label; wrong magic number
May 10 15:24:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000237 (ssd19):
May 10 15:24:34 topaz Corrupt label; wrong magic number
May 10 15:24:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000236 (ssd20):
May 10 15:24:34 topaz Corrupt label; wrong magic number
May 10 15:24:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000235 (ssd21):
May 10 15:24:34 topaz Corrupt label; wrong magic number
Ap_Id Type Receptacle Occupant Condition
SB0 System_Brd connected configured ok
SB0::cpu1 cpu connected configured ok
SB0::memory memory connected configured ok
SB0::pci2 io connected configured ok
SB0::pci3 io connected configured ok
SB0::pci8 io connected configured ok
SB1 disconnected unconfigured unknown
SB2 disconnected unconfigured unknown
SB3 disconnected unconfigured unknown
SB4 disconnected unconfigured unknown
SB5 disconnected unconfigured unknown
SB6 disconnected unconfigured unknown
SB7 disconnected unconfigured unknown
SB8 disconnected unconfigured unknown
SB9 disconnected unconfigured unknown
SB10 disconnected unconfigured unknown
SB11 disconnected unconfigured unknown
SB12 disconnected unconfigured unknown
SB13 disconnected unconfigured unknown
SB14 disconnected unconfigured unknown
SB15 disconnected unconfigured unknown
c0 fc-fabric connected configured unknown
c0::50060e8005c0c030 disk connected configured unknown
c1 fc-fabric connected configured unknown
c1::50060e8005c0c020 disk connected configured unknown
cfgadm: Configuration administration not supported: Error: hotplug service is probably not running, please use 'svcadm enable hotplug' to enable the service. See cfgadm_shp(1M) for more details.
root@topaz #
root@topaz # format
Searching for disks...May 10 15:24:52 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000241 (ssd9):
May 10 15:24:52 topaz Corrupt label; wrong magic number
May 10 15:24:52 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000236 (ssd20):
May 10 15:24:52 topaz Corrupt label; wrong magic number
May 10 15:24:52 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000236 (ssd20):
May 10 15:24:52 topaz Corrupt label; wrong magic number
May 10 15:24:52 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000235 (ssd21):
May 10 15:24:52 topaz Corrupt label; wrong magic number
May 10 15:24:52 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000235 (ssd21):
May 10 15:24:52 topaz Corrupt label; wrong magic number
done
c2t60060E8005C0C0000000C0C00000023Ad0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C00000023Bd0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C00000023Cd0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C00000023Dd0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C00000023Ed0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C00000023Fd0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000235d0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000236d0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000237d0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000238d0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000239d0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000240d0: configured with capacity of 49.99GB
c2t60060E8005C0C0000000C0C000000241d0: configured with capacity of 49.99GB
AVAILABLE DISK SELECTIONS:
0. c2t60060E8005C0C0000000C0C00000023Ad0 <HITACHI-OPEN-V-SUN-6007 cyl 13651 alt 2 hd 15 sec 512>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023a
1. c2t60060E8005C0C0000000C0C00000023Bd0 <HITACHI-OPEN-V-SUN-6007 cyl 13651 alt 2 hd 15 sec 512>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023b
2. c2t60060E8005C0C0000000C0C00000023Cd0 <HITACHI-OPEN-V-SUN-6007 cyl 13651 alt 2 hd 15 sec 512>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023c
3. c2t60060E8005C0C0000000C0C00000023Dd0 <HITACHI-OPEN-V-SUN-6007 cyl 13651 alt 2 hd 15 sec 512>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023d
root@topaz #
root@topaz # zpool create -m none gfx1-pool c2t60060E8005C0C0000000C0C00000023A
d0 c2t60060E8005C0C0000000C0C00000023Bd0 c2t60060E8005C0C0000000C0C00000023Cd0 ( Disk yang akan masuk ke dalam zpool )
May 10 15:29:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023a (ssd16):
May 10 15:29:34 topaz Corrupt label; wrong magic number
May 10 15:29:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023b (ssd15):
May 10 15:29:34 topaz Corrupt label; wrong magic number
May 10 15:29:34 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023c (ssd14):
May 10 15:29:34 topaz Corrupt label; wrong magic number
root@topaz # zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
gfx1-pool 149G 125K 149G 0% ONLINE -
root@topaz # zpool status
pool: gfx1-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx1-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ad0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Bd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Cd0 ONLINE 0 0 0
root@topaz # zpool add -f gfx1-pool c2t60060E8005C0C0000000C0C00000023Ed0 ( Menambahkan Disk)
May 10 15:30:51 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023e (ssd12):
May 10 15:30:51 topaz Corrupt label; wrong magic number
errors: No known data errors
root@topaz # zpool create -m none gfx2-pool c2t60060E8005C0C0000000C0C00000023F
d0 c2t60060E8005C0C0000000C0C000000235d0 ( Membuat pool baru )
May 10 15:33:13 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023f (ssd11):
May 10 15:33:13 topaz Corrupt label; wrong magic number
May 10 15:33:13 topaz scsi: WARNING: /scsi_vhci/ssd@g60060e8005c0c0000000c0c000000235 (ssd21):
May 10 15:33:13 topaz Corrupt label; wrong magic number
root@topaz #
root@topaz #
root@topaz #
root@topaz #
root@topaz # zpool list (menampilkan semua zpool)
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
gfx1-pool 249G 110K 249G 0% ONLINE -
gfx2-pool 99.5G 124K 99.5G 0% ONLINE -
root@topaz #
root@topaz #
root@topaz #
root@topaz # zpool status
pool: gfx1-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx1-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ad0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Bd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Cd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Dd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ed0 ONLINE 0 0 0
errors: No known data errors
pool: gfx2-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx2-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Fd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000235d0 ONLINE 0 0 0
errors: No known data errors
root@topaz # zpool status | grep gfx2=pool
root@topaz # zpool status | grep gfx2-pool
pool: gfx2-pool
gfx2-pool ONLINE 0 0 0
root@topaz # zpool status gfx2-pool
pool: gfx2-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx2-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Fd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000235d0 ONLINE 0 0 0
errors: No known data errors
root@topaz # zpool status
pool: gfx1-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx1-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ad0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Bd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Cd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Dd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ed0 ONLINE 0 0 0
errors: No known data errors
pool: gfx2-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx2-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Fd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000235d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000236d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000237d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000238d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000239d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000240d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000241d0 ONLINE 0 0 0
errors: No known data errors
root@topaz #
root@topaz #
root@topaz #
root@topaz # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c2t60060E8005C0C0000000C0C00000023Ad0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023a
1. c2t60060E8005C0C0000000C0C00000023Bd0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023b
2. c2t60060E8005C0C0000000C0C00000023Cd0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023c
3. c2t60060E8005C0C0000000C0C00000023Dd0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023d
root@topaz # format
format> disk
AVAILABLE DISK SELECTIONS:
0. c2t60060E8005C0C0000000C0C00000023Ad0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023a
Specify disk (enter its number)[0]: 0
selecting c2t60060E8005C0C0000000C0C00000023Ad0
[disk formatted]
format> volname
Enter 8-character volume name (remember quotes)[""]:^C
format>
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
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
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk sectors available: 104842462 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm 256 49.99GB 104842462
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 104842463 8.00MB 104858846
root@topaz #
root@topaz # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c2t60060E8005C0C0000000C0C00000023Ad0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023a
1. c2t60060E8005C0C0000000C0C00000023Bd0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023b
2. c2t60060E8005C0C0000000C0C00000023Cd0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023c
3. c2t60060E8005C0C0000000C0C00000023Dd0 <HITACHI-OPEN-V -SUN-6007-50.00GB>
/scsi_vhci/ssd@g60060e8005c0c0000000c0c00000023d
- hit space for more or s to select -
root@topaz #
root@topaz # svcadm enable hotplug
root@topaz #
root@topaz #
root@topaz #
root@topaz # cfgadm -al
Ap_Id Type Receptacle Occupant Condition
SB0 System_Brd connected configured ok
SB0::cpu1 cpu connected configured ok
SB0::memory memory connected configured ok
SB0::pci2 io connected configured ok
SB0::pci3 io connected configured ok
SB0::pci8 io connected configured ok
SB1 disconnected unconfigured unknown
SB2 disconnected unconfigured unknown
SB3 disconnected unconfigured unknown
SB4 disconnected unconfigured unknown
SB5 disconnected unconfigured unknown
SB6 disconnected unconfigured unknown
SB7 disconnected unconfigured unknown
SB8 disconnected unconfigured unknown
SB9 disconnected unconfigured unknown
SB10 disconnected unconfigured unknown
SB11 disconnected unconfigured unknown
SB12 disconnected unconfigured unknown
SB13 disconnected unconfigured unknown
SB14 disconnected unconfigured unknown
SB15 disconnected unconfigured unknown
c0 fc-fabric connected configured unknown
c0::50060e8005c0c030 disk connected configured unknown
c1 fc-fabric connected configured unknown
c1::50060e8005c0c020 disk connected configured unknown
iou#0-pci#3 fibre/hp connected configured ok
iou#0-pci#4 etherne/hp connected configured ok
root@topaz #
root@topaz #
root@topaz # zfs list
NAME USED AVAIL REFER MOUNTPOINT
gfx1-pool 110K 245G 31K none
gfx2-pool 110K 392G 31K none
root@topaz # zfs create -o mountpoint=/gfx/data gfx1-pool/data ( Create Mountpoint )
root@topaz # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 20G 11G 8.7G 56% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 45G 1.7M 45G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d30 16G 1.1G 14G 8% /var
swap 45G 32K 45G 1% /tmp
swap 45G 88K 45G 1% /var/run
/dev/md/dsk/d501 482M 1.0M 433M 1% /globaldevices
/dev/md/dsk/d40 20G 55M 19G 1% /opt
gfx1-pool/data 245G 31K 245G 1% /gfx/data
root@topaz #
root@topaz #
root@topaz # zfs list
NAME USED AVAIL REFER MOUNTPOINT
gfx1-pool 158K 245G 31K none
gfx1-pool/data 31K 245G 31K /gfx/data
gfx2-pool 110K 392G 31K none
root@topaz # zfs create -o mountpoint=/gfx/backup gfx2-pool/backup
root@topaz # zfs list
NAME USED AVAIL REFER MOUNTPOINT
gfx1-pool 158K 245G 31K none
gfx1-pool/data 31K 245G 31K /gfx/data
gfx2-pool 158K 392G 31K none
gfx2-pool/backup 31K 392G 31K /gfx/backup
root@topaz # mkfile 1m test (membuat file 1 Megabyte)
root@topaz # ls -al
total 6
drwxr-xr-x 2 root root 3 May 10 15:43 .
drwxr-xr-x 4 root root 512 May 10 15:42 ..
-rw------T 1 root root 1048576 May 10 15:43 test
root@topaz # zpool status
pool: gfx1-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx1-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ad0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Bd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Cd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Dd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Ed0 ONLINE 0 0 0
errors: No known data errors
pool: gfx2-pool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
gfx2-pool ONLINE 0 0 0
c2t60060E8005C0C0000000C0C00000023Fd0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000235d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000236d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000237d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000238d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000239d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000240d0 ONLINE 0 0 0
c2t60060E8005C0C0000000C0C000000241d0 ONLINE 0 0 0
errors: No known data errors