lunes, 15 de abril de 2019

HPUX IV Volume raid


En este articulo vamos a ver como interactuar con un RAID Hardware en un host HP-UX.  Este equipo presenta un disco fallado, lo que vamos hacer primero es ver los logs del kernel para obtener mas datos


#dmesg
 .....
boot device's HP-UX HW path is: 0.1.1.0.a0cf13e19130310.0

    System Console is on the Built-In Serial Interface
igelan0: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/0
igelan1: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/1
iether2: INITIALIZING HP A7012-60601 PCI/PCI-X 1000Base-T Dual-port Adapter at hardware path 0/2/1/0
iether3: INITIALIZING HP A7012-60601 PCI/PCI-X 1000Base-T Dual-port Adapter at hardware path 0/2/1/1
AF_INET socket/streams output daemon running, pid 48
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM: Root VG activated
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - major is 64, minor is 0x2; start = 0, size = 33521664
    Dump device table:  (start & size given in 1-Kbyte blocks)
        entry 0000000000000000 - major is 1, minor is 0x0; start = 2349920, size = 16760832
Create STCP device files
Starting the STREAMS daemons-phase 2
     $Revision: vmunix:    B.11.31_LR FLAVOR=perf
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 33533100 Kbytes, lockable: 25172052 Kbytes, available: 28646020 Kbytes

0/0/2/2.2 ms
64000/0x0/0x0.0x0 estp
64000/0x0/0x0.0x0.0x0 eslpt
255/1/0.0 tgt
255/1/0.0.0 sdisk
64000/0xfa00/0x3 esdisk
0/0/2/0.1 usbcomposite
0/0/2/0.1.0 hid
0/0/2/0.1.1 hid
....
SAS driver at 0/1/1/0 (/dev/sasd1) : RAID volume at SAS address 0x0a0cf13e19130310 is in a degraded state.
SAS driver at 0/1/1/0 (/dev/sasd1) : RAID volume at SAS address 0x0a0cf13e19130310 is in a degraded state.



En la salida vemos que nos esta alarmando que el volumen RAID esta en estado degradado, ahora que tenemos la confirmación por parte del sistema que el equipo tiene un problema vamos a revisar mas a fondo

Si bien ya tenemos el special file para comunicarnos con el driver del RAID, vamos a ver el estado del mismo via ioscan

# ioscan -fn|more
Class        I  H/W Path       Driver       S/W State   H/W Type     Description
=================================================================================
root         0                 root           CLAIMED     BUS_NEXUS
ioa          0  0              sba            CLAIMED     BUS_NEXUS    System Bus Adapter (4030)
ba           0  0/0            lba            CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (122e)
tty          0  0/0/1/0        rmp3f01        CLAIMED     INTERFACE    PCI class(255,0) (103c1303)
tty          1  0/0/1/1        rmp3f01        CLAIMED     INTERFACE    PCI SimpleComm (103c1302)
tty          2  0/0/1/2        asio0          CLAIMED     INTERFACE    PCI Serial (103c1048)
                              /dev/diag/mux2  /dev/mux2       /dev/tty2p0
usb          0  0/0/2/0        hcd            CLAIMED     INTERFACE    NEC OHCI Controller
usbcomp      0  0/0/2/0.1      usbcomposite   CLAIMED     DEVICE       USB Composite Device
usbhid       0  0/0/2/0.1.0    hid            CLAIMED     DEVICE       USB HID Kbd(0)
                              /dev/hid/hid_000
usbhid       1  0/0/2/0.1.1    hid            CLAIMED     DEVICE       USB HID Pointer(1)
                              /dev/hid/hid_001
usb          1  0/0/2/1        hcd            CLAIMED     INTERFACE    NEC OHCI Controller
usb          2  0/0/2/2        ehci           CLAIMED     INTERFACE    NEC EHCI Controller
usbms        0  0/0/2/2.2      ms             CLAIMED     DEVICE       USB Mass Storage [0]
graphics     0  0/0/3/0        gvid_core      CLAIMED     INTERFACE    PCI Display (1002515e)
ba           1  0/1            lba            CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (122e)
escsi_ctlr   1  0/1/1/0        sasd           CLAIMED     INTERFACE    HP  PCI/PCI-X SAS MPT Adapter
                              /dev/sasd1
ext_bus      2  0/1/1/0.0.0    sasd_vbus      CLAIMED     INTERFACE    SAS Device Interface
target      17  0/1/1/0.0.0.2  tgt            CLAIMED     DEVICE
disk         1  0/1/1/0.0.0.2.0           sdisk          CLAIMED     DEVICE       HP      IR Volume
                              /dev/dsk/c2t2d0     /dev/dsk/c2t2d0s2   /dev/rdsk/c2t2d0    /dev/rdsk/c2t2d0s2
                              /dev/dsk/c2t2d0s1   /dev/dsk/c2t2d0s3   /dev/rdsk/c2t2d0s1  /dev/rdsk/c2t2d0s3
target      16  0/1/1/0.0.0.3  tgt            CLAIMED     DEVICE
disk         8  0/1/1/0.0.0.3.0           sdisk          CLAIMED     DEVICE       HP      IR Volume
                              /dev/dsk/c2t3d0   /dev/rdsk/c2t3d0


Vemos que el estado de la controladora esta en CLAIMED y ahora vamos a indagar en el estado del Internal RAID del sistema

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

Fri Jan  8 10:20:50 2016

---------- LOGICAL DRIVE 5 ----------

Raid Level                                         : RAID 1
Volume sas address                                 : 0xb852a4c047edba
Device Special File                                : /dev/rdsk/c2t3d0
Raid State                                         : OPTIMAL
Raid Status Flag                                   : ENABLED
Raid Size                                          : 69618
Rebuild Rate                                       : 0.00 %
Rebuild Progress                                   : 100.00 %

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State

0x5000c500176a2371   1     5    70007         SECONDARY       ONLINE
0x5000c5001764d9b1   1     6    70007         PRIMARY         ONLINE

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

Raid Level                                         : RAID 1
Volume sas address                                 : 0xa0cf13e19130310
Device Special File                                : /dev/rdsk/c2t2d0
Raid State                                         : DEGRADED
Raid Status Flag                                   : ENABLED
Raid Size                                          : 69618
Rebuild Rate                                       : 0.00 %
Rebuild Progress                                   : 100.00 %

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State

0x5000c5001764f35d   1     8    70007         PRIMARY         ONLINE
0x5000c5001764a169   1     7    70007         SECONDARY       FAILED

La salida del comando nos indica cual es el disco que presenta la falla y su ubicacion para identificarlo y cambiarlo

No hay comentarios:

Publicar un comentario