Hi Guy’s, berikut step by step melakukan penambahan disk kedalam ZFS pool.
Perbedaan ZFS & Tradisional File Systems
Re scan new devices
[email protected] # devfsadm -c disk (reconfigure new attached devices)
Menampilkan semua disk didalam server
[email protected] # cfgadm -al

May 10 15:24:33 pegasus   Corrupt label; wrong magic number
May 10 15:24:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd18):
May 10 15:24:34 pegasus   Corrupt label; wrong magic number
May 10 15:24:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd19):
May 10 15:24:34 pegasus   Corrupt label; wrong magic number
May 10 15:24:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd20):
May 10 15:24:34 pegasus   Corrupt label; wrong magic number
May 10 15:24:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd21):
May 10 15:24:34 pegasus   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
[email protected] # zpool create -m none zfs-pool c2t60060E8005C0C0000000C0C00000023Ad0 c2t60060E8005C0C0000000C0C00000023Bd0 c2t60060E8005C0C0000000C0C00000023Cd0 ( Disk yang akan masuk ke dalam zpool )
May 10 15:29:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd16):
May 10 15:29:34 pegasus   Corrupt label; wrong magic number
May 10 15:29:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd15):
May 10 15:29:34 pegasus   Corrupt label; wrong magic number
May 10 15:29:34 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd14):
May 10 15:29:34 pegasus   Corrupt label; wrong magic number
Check zpool
[email protected] # zpool list
NAME        SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
zfs-pool   149G   125K   149G     0%  ONLINE  -
[email protected] # zpool status
pool: zfs-pool
state: ONLINE
scan: none requested
config:

        NAME                                     STATE     READ WRITE CKSUM
        zfs-pool                                 ONLINE       0     0     0
          c2t60060E8005C0C0000000C0C00000023Ad0  ONLINE       0     0     0
          c2t60060E8005C0C0000000C0C00000023Bd0  ONLINE       0     0     0
          c2t60060E8005C0C0000000C0C00000023Cd0  ONLINE       0     0     0
Menambahkan disk kedalam zpool
[email protected] # zpool add -f zfs-pool-2 c2t60060E8005C0C0000000C0C00000023Ed0 ( Menambahkan Disk)
May 10 15:30:51 pegasus scsi: WARNING: /scsi_vhci/[email protected] (ssd12):
May 10 15:30:51 pegasus   Corrupt label; wrong magic number
errors: No known data errors
Membuat Mountpoint ZFS path
[email protected] # zfs create -o mountpoint=/backup zfs-pool-2/backup

[email protected] # zfs list
NAME               USED  AVAIL  REFER  MOUNTPOINT
zfs-pool          158K   245G    31K   none
zfs-pool/data      31K   245G    31K   /data
zfs-pool-2        158K   392G    31K   none
zfs-pool-2/backup  31K   392G    31K   /backup



[email protected] # mkfile 1m test (membuat file 1 Megabyte)
[email protected] # 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

 

[email protected] # zpool status
pool: zfs-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: zfs-pool-2
state: ONLINE
scan: none requested
config:


        NAME                                     STATE     READ WRITE CKSUM
        zfs-pool-2                               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

Leave a Reply

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

2 × two =

Related Posts

Solaris

How to Find and Remove Old or Inactive Files

How to Find and Remove Old or Inactive Files Become an administrator. Find files that have not been accessed for a specified number of days and list them in a file. # find directory -type Read more…

Oracle

How to Collect a Snapshot on SPARC M series servers Mx000 and M10-x systems

Running snapshot The syntax varies slightly from the Mx000 to the M10-x .The M10 requires a “-a” option to collect logs from all chassis. The two most common usages are described below. The first example Read more…

Oracle

Verifying HBA card connectivity in Solaris

1. Use the “luxadm -e port” command to verify HBA has established communication with a node. # luxadm -e port /devices/[email protected]/[email protected]/[email protected]/[email protected]/SUNW,[email protected]/[email protected],0:devctl CONNECTED /devices/[email protected]/[email protected]/[email protected]/[email protected]/SUNW,[email protected],1/[email protected],0:devctl CONNECTED CONNECTED : HBA has established connection with either target or initiator. Read more…