Senin, 09 Januari 2017

Cara Mengenali Disk LUN baru di Solaris



Saya ada kebutuhan untuk mengenali disk baru yang baru saja di assign dari server storage ke server solaris 10 saya, begitu saya ketik perintah format, pertama kali tidak langsung muncul disk nya.

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0  solaris
          /pci@400/pci@0/pci@8/scsi@0/sd@0,0
       1. c1t1d0  solaris
          /pci@400/pci@0/pci@8/scsi@0/sd@1,0

Jadi kita harus melakukan scanning dulu terhadap DISK LUN yang baru nya, berikut caranya :

1. Jalankan perintah cfgadm -al untuk mengecek dan melakukan scan terhadap semua disk yang ada :

# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c1                             scsi-sas     connected    configured   unknown
c1::dsk/c1t0d0                 disk         connected    configured   unknown
c1::dsk/c1t1d0                 disk         connected    configured   unknown
c1::es/ses0                    ESI          connected    configured   unknown
c1::smp/expd0                  smp          connected    configured   unknown
usb0/1                         unknown      empty        unconfigured ok
usb0/2                         unknown      empty        unconfigured ok
usb0/3                         unknown      empty        unconfigured ok
usb1/1                         unknown      empty        unconfigured ok
usb1/2                         unknown      empty        unconfigured ok
usb2/1                         unknown      empty        unconfigured ok
usb2/2                         unknown      empty        unconfigured ok
usb2/3                         unknown      empty        unconfigured ok
usb2/4                         usb-hub      connected    configured   ok
usb2/4.1                       unknown      empty        unconfigured ok
usb2/4.2                       unknown      empty        unconfigured ok
usb2/4.3                       unknown      empty        unconfigured ok
usb2/4.4                       usb-device   connected    configured   ok
usb2/5                         unknown      empty        unconfigured ok

2. Jalan perintah ini untuk mengecekan alamat WWN dari server solaris :

# fcinfo hba-port
HBA Port WWN: 2100001b329456cd
        OS Device Name: /devices/pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0:fc
        Manufacturer: QLogic Corp.
        Model: 375-3355-02
        Firmware Version: 05.04.03
        FCode/BIOS Version:  BIOS: 2.02; fcode: 2.01; EFI: 2.00;
        Serial Number: 0402L00-0951784628
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 2000001b329456cd

3. Scan disk lun lawan nya yang dari storage melalui alamat WWN tadi :

# fcinfo remote-port -ls -p 2100001b329456cd
Remote Port WWN: 500a0983890ac04c
        Active FC4 Types: SCSI
        SCSI Target: yes
        Node WWN: 500a0980890ac04c
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
        LUN: 225
          Vendor: NETAPP
          Product: LUN          
          OS Device Name: Unknown
        LUN: 226
          Vendor: NETAPP
          Product: LUN          
          OS Device Name: Unknown
        LUN: 227
          Vendor: NETAPP
          Product: LUN          
          OS Device Name: Unknown
        LUN: 228
          Vendor: NETAPP
          Product: LUN          
          OS Device Name: Unknown
Remote Port WWN: 2100001b32947bcd
        Active FC4 Types: SCSI,IP
        SCSI Target: no
        Node WWN: 2000001b32947bcd
        Link Error Statistics:
                Link Failure Count: 1
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0


4. Nah sekarang jalankan perintah format, dan disk baru akan muncul, dan siap di format sesuai keinginan :

# format
Searching for disks...done

c2t500A0983890AC04Cd225: configured with capacity of 149.95GB
c2t500A0983890AC04Cd226: configured with capacity of 549.85GB
c2t500A0983890AC04Cd227: configured with capacity of 14.99GB
c2t500A0983890AC04Cd228: configured with capacity of 19.99GB


AVAILABLE DISK SELECTIONS:
       0. c1t0d0  solaris
          /pci@400/pci@0/pci@8/scsi@0/sd@0,0
       1. c1t1d0  solaris
          /pci@400/pci@0/pci@8/scsi@0/sd@1,0
       2. c2t500A0983890AC04Cd225
          /pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0/ssd@w500a0983890ac04c,e1
       3. c2t500A0983890AC04Cd226
          /pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0/ssd@w500a0983890ac04c,e2
       4. c2t500A0983890AC04Cd227
          /pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0/ssd@w500a0983890ac04c,e3
       5. c2t500A0983890AC04Cd228
          /pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0/ssd@w500a0983890ac04c,e4


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

1 komentar:

Shalini mengatakan...

It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command .

digital marketing company in india