Perbedaan ZFS & Tradisional File Systems
Rescan new devices
root@topaz # devfsadm -c disk (reconfigure new attached devices)
root@topaz #
Menampilkan semua disk didalam server
root@topaz # cfgadm -al
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.
Membuat zpool
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
Check zpool
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
Menambahkan disk kedalam zpool
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
Membuat Mountpoint ZFS path
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
0 Comments