최근 포토로그


[HP-UX] HW 미러링을 확인하고 해당 DISK 구성 정보를 확인하는 방법 ▶ Linux & Unix & Windows


아래 방법은 LVM 묶여있는 경우 소용이 없으며, HW 미러링이 걸려있을 경우 확인할 수 있는 방법을 보여줌

osbackup:/# lvlnboot -v 
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/disk/disk1_p2 -- Boot Disk ( 해당 부분이 LINE 수가 1개 or 2개 여부로 HW 미러링인지 여부를 확인할 수 있으며, 1개일 경우 HW 미러링으로 보면 됨)
Boot: lvol1     on:     /dev/disk/disk1_p2
Root: lvol3     on:     /dev/disk/disk1_p2
Swap: lvol2     on:     /dev/disk/disk1_p2
Dump: lvol2     on:     /dev/disk/disk1_p2, 0

1. HP-UX 11.31에서 외부 장치 확인을 하기 위해서는 아래와 같은 명령어를 수행하여, 외부 장치를 검색한다.

backsvr:/]ioscan -fnk | grep -i ext_bus
ext_bus     0  0/0/3/0.0      side           CLAIMED     INTERFACE    IDE Primary Channel  (내장형 disk를 표현한 것)
ext_bus     1  0/0/3/0.1      side           CLAIMED     INTERFACE    IDE Secondary Channel

ext_bus     2  0/1/1/0        mpt            CLAIMED     INTERFACE    SCSI Ultra320 A6961-60011
ext_bus     3  0/1/1/1        mpt            CLAIMED     INTERFACE    SCSI Ultra320 A6961-60011 (TAPE 장치를 의히함)

ext_bus     5  0/2/1/0.1.3.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface (HBA 카드와 연결되어 있는 PATH를 의미)
ext_bus    15  0/2/1/0.1.4.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    16  0/2/1/0.1.43.255.0      fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus     9  0/5/1/0.1.5.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    10  0/5/1/0.1.6.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    21  0/5/1/0.1.47.255.0      fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    14  0/5/1/1.1.0.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    12  0/5/1/1.1.1.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    13  0/5/1/1.1.2.255.0       fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus    17  0/5/1/1.1.42.255.0      fcd_vbus       CLAIMED     INTERFACE    FCP Device Interface
ext_bus     4  255/1/0        usb_ms_scsi    CLAIMED     INTERFACE    USB Mass Storage SCSI

2. SAS 컨트롤러에서 RAID 구성 정보등 DISK 구성정보를 확인할때 사용하는 명령어.

newbackup:/# sasmgr get_info -D /dev/sasd1 -q raid

Tue Jan 26 09:31:18 2016

---------- LOGICAL DRIVE 7 ----------

Raid Level                                         : RAID 1              (RAID 구성정보를 확인할 수 있도록 해주는 영역)
Volume sas address                                 : 0x2bed387d25e6cdf  
Device Special File                                : /dev/rdsk/c0t0d0   
Raid State                                         : OPTIMAL            
Raid Status Flag                                   : ENABLED            
Raid Size                                          : 285948             
Rebuild Rate                                       : 0.00 %             
Rebuild Progress                                   : 100.00 %           

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State          

0x5000c500320612c9   1     7    286102        SECONDARY       ONLINE     (HW path가 어떻게 설정되어 있는지를 보여주는 영역 , 현 DISK 2개를 하나로 사용 할 수 있도록 raid 구성한 것을 표현함)   
0x5000c5003207f7f1   1     8    286102        PRIMARY         ONLINE
   


3. SCASI 컨트롤러의 DISK 정보 구성 확인하는 방법 (명령어를 통한)

osbackup:/# sautil /dev/ciss0

******************************************************************************
****                                                                      ****
****             S A U T I L   S u p p o r t   U t i l i t y              ****
****                                                                      ****
****             for the HP SmartArray RAID Controller Family             ****
****                                                                      ****
****                           version A.02.22                            ****
****                                                                      ****
****  (C) Copyright 2003-2010 Hewlett-Packard Development Company, L.P.   ****
******************************************************************************



---- DRIVER INFORMATION ------------------------------------------------------

  Driver State........................ READY

---- CONTROLLER INFORMATION --------------------------------------------------

  Controller Product Number........... P400 ( 컨트롤러 정보)
  Controller Product Name............. HP PCIe SmartArray P400
  Hardware Path....................... 0/3/0/0/0/0
  Serial Number....................... PAFGK0T9SY00WO
  Device File......................... /dev/ciss0
  Hardware Revision................... 'E'
  Boot Block Revision................. 0.04
  Firmware Revision (running)......... 7.22
  Firmware Revision (in ROM).......... 7.22
  Firmware Revision (inactive)........ 7.18
  # of Logical Drives................. 2
  # of Physical Disks Configured...... 8
  # of Physical Disks Detected........ 8
  Logical Drive Rebuild Priority...... 0   (low)
  Array Capacity Expansion Priority... 0   (low)
  Auto-Fail Missing Disks at Boot..... disabled
  SCSI Transfer Detection Mode........ Auto Detect
  Controller Path Selection Method.... default
  Max # of Logical Drives............. 32
  Last firmware lockup................ 0


---- ARRAY ACCELERATOR (CACHE) INFORMATION -----------------------------------

  Array Accelerator Board Present?.... yes
  Cache Configuration Status.......... cache enabled
  Cache Ratio......................... 25% Read / 75% Write
  Total Cache Size (MB)............... 208
    Read Cache........................ 052
    Write Cache....................... 156
    Transfer Buffer................... 000
  Battery Pack Count.................. 1  ( DISK 케쉬 베터리가 존재하지 않을 경우 0으로 표기됨)
  Battery Status (pack #1)............ ok


---- LOGICAL DRIVE SUMMARY ---------------------------------------------------

       #   RAID      Size        Status  

       0   1+0      286070 MB    OK       
       1   ADG     1144281 MB    OK       

(DISK의 TOTAL 정보를 보여주는 부분)
---- SAS/SATA DEVICE SUMMARY -------------------------------------------------

  Location  Ct Enc Bay       WWID           Type        Capacity Status

  internal  1I   1   8  0x500000e11250b082  DISK       300.0 GB  OK       
  internal  1I   1   7  0x50000393d849af16  DISK       300.0 GB  OK       
  internal  1I   1   6  0x50000393881bd5c6  DISK       300.0 GB  OK       
  internal  1I   1   5  0x500000e1124bd872  DISK       300.0 GB  OK       
  internal  2I   1   4  0x500000e110934132  DISK       300.0 GB  OK       
  internal  2I   1   3  0x500000e1124eb9c2  DISK       300.0 GB  OK       
  internal  2I   1   2  0x5000cca0128ffc41  DISK       300.0 GB  OK       
  internal  2I   1   1  0x500000e1124bd622  DISK       300.0 GB  OK
       


---- SAS/SATA ENCLOSURE SUMMARY ----------------------------------------------

  Location  Ct   Enc  Expander_count    Bay_count     SEP_count    

  internal  1I   1    0                 4             1             
  internal  2I   1    0                 4             1             


---- LOGICAL DRIVE 0 ---------------------------------------------------------

  Logical Drive Device File........... /dev/dsk/c0t0d0
  Fault Tolerance Mode................ RAID 1+0 (Disk Mirroring)
  Logical Drive Size.................. 286070 MB   
  Logical Drive Status................ OK       
  # of Participating Physical Disks... 2
(물리적으로 DISK 2개가 raid 10으로 묶인것을 보여주는 영역)
  Participating Physical Disk(s)...... Ct:Enc:Bay:WWID
                                       1I:1:8:0x500000e11250b082
                                       1I:1:7:0x50000393d849af16

  Participating Spare Disk(s)......... Ct:Enc:Bay:WWID
                                       none

  Stripe Size......................... 128 KB
  Logical Drive Cache Status.......... cache enabled
  Configuration Signature............. 0xA013DC34
  Media Exchange Detected?............ no


---- LOGICAL DRIVE 1 ---------------------------------------------------------

  Logical Drive Device File........... /dev/dsk/c0t0d1
  Fault Tolerance Mode................ RAID ADG (Advanced Data Guarding)
  Logical Drive Size.................. 1144281 MB   
  Logical Drive Status................ OK       
  # of Participating Physical Disks... 6

(나머지 DISK 6개가 DATA 영역으로 묶인 것을 확인)
  Participating Physical Disk(s)...... Ct:Enc:Bay:WWID
                                       1I:1:6:0x50000393881bd5c6
                                       1I:1:5:0x500000e1124bd872
                                       2I:1:4:0x500000e110934132
                                       2I:1:3:0x500000e1124eb9c2
                                       2I:1:2:0x5000cca0128ffc41
                                       2I:1:1:0x500000e1124bd622

  Participating Spare Disk(s)......... Ct:Enc:Bay:WWID
                                       none

  Stripe Size......................... 16 KB
  Logical Drive Cache Status.......... cache enabled
  Configuration Signature............. 0xA013CF0C
  Media Exchange Detected?............ no
 

---- SAS/SATA DEVICE 1I:1:8:0x500000e11250b082 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 1I
  Enclosure........................................ 1
  Bay.............................................. 8
  WWID............................................. 0x500000e11250b082 
  Disk WWID........................................ 0x500000e11250b080
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FARTT    
  Device Serial Number............................. D001P9A03CYU0941
  Device Firmware Version.......................... HPD5
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. none
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 1I:1:7:0x50000393d849af16 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 1I
  Enclosure........................................ 1
  Bay.............................................. 7
  WWID............................................. 0x50000393d849af16 
  Disk WWID........................................ 0x50000393d849af14
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FBDSP    
  Device Serial Number............................. EB01PC210WND1208
  Device Firmware Version.......................... HPD4
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. REMOVED IN HOT PLUG
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 1I:1:6:0x50000393881bd5c6 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 1I
  Enclosure........................................ 1
  Bay.............................................. 6
  WWID............................................. 0x50000393881bd5c6 
  Disk WWID........................................ 0x50000393881bd5c4
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FBDSP    
  Device Serial Number............................. ECA1PB909T2U1138
  Device Firmware Version.......................... HPD4
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. REMOVED IN HOT PLUG
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 1I:1:5:0x500000e1124bd872 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 1I
  Enclosure........................................ 1
  Bay.............................................. 5
  WWID............................................. 0x500000e1124bd872 
  Disk WWID........................................ 0x500000e1124bd870
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FARTT    
  Device Serial Number............................. D001P9A03ALV0941
  Device Firmware Version.......................... HPD5
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. none
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 2I:1:4:0x500000e110934132 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 2I
  Enclosure........................................ 1
  Bay.............................................. 4
  WWID............................................. 0x500000e110934132 
  Disk WWID........................................ 0x500000e110934130
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ DG0300BARTQ    
  Device Serial Number............................. D002P96051GD0923
  Device Firmware Version.......................... HPD0
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. none
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 2I:1:3:0x500000e1124eb9c2 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 2I
  Enclosure........................................ 1
  Bay.............................................. 3
  WWID............................................. 0x500000e1124eb9c2 
  Disk WWID........................................ 0x500000e1124eb9c0
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FARTT    
  Device Serial Number............................. D001P9A03C4V0941
  Device Firmware Version.......................... HPD5
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. none
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 2I:1:2:0x5000cca0128ffc41 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 2I
  Enclosure........................................ 1
  Bay.............................................. 2
  WWID............................................. 0x5000cca0128ffc41 
  Disk WWID........................................ 0x5000cca0128ffc40
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FBDBR    
  Device Serial Number............................. PMJK5TLB
  Device Firmware Version.......................... HPD6
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. MARK BAD FAILED
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes


 

---- SAS/SATA DEVICE 2I:1:1:0x500000e1124bd622 [DISK] ------------------------

  Connector Location............................... internal 
  Connector........................................ 2I
  Enclosure........................................ 1
  Bay.............................................. 1
  WWID............................................. 0x500000e1124bd622 
  Disk WWID........................................ 0x500000e1124bd620
  Device Type...................................... DISK      
  Disk Capacity.................................... 300.0 GB 
  Device Status.................................... OK       
  Device Vendor ID................................. HP     
  Device Product ID................................ EG0300FARTT    
  Device Serial Number............................. D001P9A03AKU0941
  Device Firmware Version.......................... HPD5
  Reserved Area (cfg/status info).................. 33554.4 KB (33.6 MB)
  Block Size (bytes/sector)........................ 512 bytes
  M&P Data Stamped?................................ yes
  Last Failure Reason.............................. none
  Media Type....................................... HDD

  Physical Disk Flags:
    Disk present and operational................... yes
    Non-disk device detected....................... no

    S.M.A.R.T. supported........................... yes
    S.M.A.R.T. errors (in factory M&P data)........ no
    S.M.A.R.T. enabled............................. yes
    S.M.A.R.T. errors (in powerup M&P data)........ no
    Attached to external connector................. no
    Configured in a logical drive.................. yes
    Configured as a spare disk..................... no
    Disk write cache enabled at spin up............ no

    Supports redundant controller operation........ yes
    Disk write cache enabled in current page....... no
    Disk write cache disabled in default page...... yes





******************************************************************************
****                         End of SAUTIL Output                         ****
******************************************************************************
osbackup:/#





덧글

댓글 입력 영역