在某此情况下,HP-UX系统上ioscan后容易出现NO_HW状态的盘,比如:

RX2604[/#]ioscan -fNnkC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      1  64000/0xfa00/0x0   esdisk   CLAIMED     DEVICE       HP      IR Volume
                      /dev/disk/disk1      /dev/disk/disk1_p2   /dev/rdisk/disk1     /dev/rdisk/disk1_p2
                      /dev/disk/disk1_p1   /dev/disk/disk1_p3   /dev/rdisk/disk1_p1  /dev/rdisk/disk1_p3
disk      3  64000/0xfa00/0x1   esdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
                      /dev/disk/disk3   /dev/rdisk/disk3
disk      9  64000/0xfa00/0xb   esdisk   CLAIMED     DEVICE       DGC     RAID 5
                      /dev/disk/disk9   /dev/rdisk/disk9
disk     11  64000/0xfa00/0xd   esdisk   CLAIMED     DEVICE       HITACHI DF600F
                      /dev/disk/disk11   /dev/rdisk/disk11
disk     15  64000/0xfa00/0x10  esdisk   CLAIMED     DEVICE       HITACHI DF600F
                      /dev/disk/disk15   /dev/rdisk/disk15
disk     23  64000/0xfa00/0x14  esdisk   CLAIMED     DEVICE       HITACHI DF600F
                      /dev/disk/disk23   /dev/rdisk/disk23
disk     28  64000/0xfa00/0x16  esdisk   NO_HW       DEVICE       HP      P2000 G3 FC
                      /dev/disk/disk28   /dev/rdisk/disk28
disk     29  64000/0xfa00/0x17  esdisk   NO_HW       DEVICE       HP      P2000 G3 FC
                      /dev/disk/disk29   /dev/rdisk/disk29
disk     34  64000/0xfa00/0x18  esdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                      /dev/disk/disk34   /dev/rdisk/disk34
disk     35  64000/0xfa00/0x19  esdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                      /dev/disk/disk35   /dev/rdisk/disk35
RX2604[/#]

这种情况的出现是因为,disk28和disk29这2块盘之前有使用,后来在HP p2000的存储上删除重新划掉过,而disk34和disk35是新盘,在这台服务器上以前未使用过,所以状态是正常的。

出现这种情况,通常重新HP-UX系统后再重新用ioscan扫描后可解决,当不能重启时,使用以下方法:

rmsf -k -H hw_path

使用以下命令可清除所有的NO_HW的盘:

ioscan -nfC disk|grep NO_HW|awk '{print $3}'|xargs -i -t rmsf -H {}

一个例子:

RX2604[/#]ioscan -nfC disk|grep NO_HW|awk '{print $3}'|xargs -i -t rmsf -H {}
rmsf -H 0/4/0/0/0/0.2.14.0.0.0.1
rmsf -H 0/4/0/0/0/0.2.14.0.0.0.2
rmsf -H 0/4/0/0/0/1.2.14.0.0.0.1
rmsf -H 0/4/0/0/0/1.2.14.0.0.0.2
RX2604[/#]ioscan
H/W Path       Class                                        Description
=======================================================================
               root                                         
0              ioa                                          System Bus Adapter (4030)
0/0                ba                                       Local PCI-X Bus Adapter (122e)
0/0/1/0                  tty                                PCI class(255,0) (103c1303)
0/0/1/1                  tty                                PCI SimpleComm (103c1302)
0/0/1/2                  tty                                PCI Serial (103c1048)
0/0/2/0                  usb                                NEC OHCI Controller
0/0/2/0.1                   usbcomp                         USB Composite Device
0/0/2/0.1.0                    usbhid                       USB HID Kbd(0)
0/0/2/0.1.1                    usbhid                       USB HID Pointer(1)
0/0/2/1                  usb                                NEC OHCI Controller
0/0/2/2                  usb                                NEC EHCI Controller
0/0/2/2.2                   usbms                           USB Mass Storage [0]
0/0/3/0                  graphics                           PCI Display (1002515e)
0/1                ba                                       Local PCI-X Bus Adapter (122e)
0/1/1/0                  escsi_ctlr                         HP  PCI/PCI-X SAS MPT Adapter
0/1/1/0.0.0                    ext_bus                      SAS Device Interface
0/1/1/0.0.0.0                     target                    
0/1/1/0.0.0.0.0                                   disk                   HP      IR Volume
0/1/2/0                  lan                                HP PCI-X 1000Base-T Dual-port Built-in
0/1/2/1                  lan                                HP PCI-X 1000Base-T Dual-port Built-in
0/2                ba                                       Local Bus Adapter
0/2/0/0                  ba                                 PCItoPCI Bridge
0/2/0/0/0                   slot                            PCI Slot
0/2/0/0/0/0                    lan                          HP AD337-60001 PCIe 1000Base-T Dual-port Adapter
0/2/0/0/0/1                    lan                          HP AD337-60001 PCIe 1000Base-T Dual-port Adapter
0/3                ba                                       Local PCI-X Bus Adapter (12ee)
0/3/1                 slot                                  PCI Slot
0/4                ba                                       Local Bus Adapter
0/4/0/0                  ba                                 PCItoPCI Bridge
0/4/0/0/0                   slot                            PCI Slot
0/4/0/0/0/0                    fc                           HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 1)
0/4/0/0/0/0.2                     fcp                       FCP Domain
0/4/0/0/0/0.2.14.0.0                                    ext_bus          FCP Array Interface
0/4/0/0/0/0.2.14.0.0.0                                     target        
0/4/0/0/0/0.2.14.0.0.0.3                                      disk       HP      P2000 G3 FC
0/4/0/0/0/0.2.14.0.0.0.4                                      disk       HP      P2000 G3 FC
0/4/0/0/0/0.2.14.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/0.2.14.255.0.0                                   target        
0/4/0/0/0/0.2.14.255.0.0.0                                    ctl        HP      P2000 G3 FC
0/4/0/0/0/0.2.21.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/0.2.21.255.0.0                                   target        
0/4/0/0/0/0.2.21.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/0.2.23.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/0.2.23.255.0.0                                   target        
0/4/0/0/0/0.2.23.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/1                    fc                           HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 2)
0/4/0/0/0/1.2                     fcp                       FCP Domain
0/4/0/0/0/1.2.14.0.0                                    ext_bus          FCP Array Interface
0/4/0/0/0/1.2.14.0.0.0                                     target        
0/4/0/0/0/1.2.14.0.0.0.3                                      disk       HP      P2000 G3 FC
0/4/0/0/0/1.2.14.0.0.0.4                                      disk       HP      P2000 G3 FC
0/4/0/0/0/1.2.14.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.14.255.0.0                                   target        
0/4/0/0/0/1.2.14.255.0.0.0                                    ctl        HP      P2000 G3 FC
0/4/0/0/0/1.2.21.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.21.255.0.0                                   target        
0/4/0/0/0/1.2.21.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/1.2.22.0.0                                    ext_bus          FCP Array Interface
0/4/0/0/0/1.2.22.0.0.0                                     target        
0/4/0/0/0/1.2.22.0.0.0.0                                      disk       HITACHI DF600F
0/4/0/0/0/1.2.22.0.0.0.1                                      disk       HITACHI DF600F
0/4/0/0/0/1.2.22.0.0.0.2                                      disk       HITACHI DF600F
0/4/0/0/0/1.2.22.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.22.255.0.0                                   target        
0/4/0/0/0/1.2.22.255.0.0.0                                    ctl        HITACHI DF600F
0/4/0/0/0/1.2.23.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.23.255.0.0                                   target        
0/4/0/0/0/1.2.23.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/1.3                     fcp                       FCP Domain
0/4/0/0/0/1.3.18.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.3.18.255.0.0                                   target        
0/4/0/0/0/1.3.18.255.0.0.0                                    tape       HP      Ultrium 4-SCSI
0/4/0/0/0/1.3.18.255.0.0.1                                    autoch     HP      MSL G3 Series
120            processor                                    Processor
121            processor                                    Processor
122            processor                                    Processor
123            processor                                    Processor
250            ba                                           Core I/O Adapter
250/0              ipmi                                     IPMI Controller
250/1              tty                                      Built-in RS232C
250/2              acpi_node                                Acpi Hardware
255/1              usbmsvbus                                USB Mass Storage
255/1/0               ext_bus                               USB Mass Storage SCSI
255/1/0.0                target                             
255/1/0.0.0                 disk                            TEAC    DVD-ROM DW-224EV
RX2604[/#]ioscan
H/W Path       Class                                        Description
=======================================================================
               root                                         
0              ioa                                          System Bus Adapter (4030)
0/0                ba                                       Local PCI-X Bus Adapter (122e)
0/0/1/0                  tty                                PCI class(255,0) (103c1303)
0/0/1/1                  tty                                PCI SimpleComm (103c1302)
0/0/1/2                  tty                                PCI Serial (103c1048)
0/0/2/0                  usb                                NEC OHCI Controller
0/0/2/0.1                   usbcomp                         USB Composite Device
0/0/2/0.1.0                    usbhid                       USB HID Kbd(0)
0/0/2/0.1.1                    usbhid                       USB HID Pointer(1)
0/0/2/1                  usb                                NEC OHCI Controller
0/0/2/2                  usb                                NEC EHCI Controller
0/0/2/2.2                   usbms                           USB Mass Storage [0]
0/0/3/0                  graphics                           PCI Display (1002515e)
0/1                ba                                       Local PCI-X Bus Adapter (122e)
0/1/1/0                  escsi_ctlr                         HP  PCI/PCI-X SAS MPT Adapter
0/1/1/0.0.0                    ext_bus                      SAS Device Interface
0/1/1/0.0.0.0                     target                    
0/1/1/0.0.0.0.0                                   disk                   HP      IR Volume
0/1/2/0                  lan                                HP PCI-X 1000Base-T Dual-port Built-in
0/1/2/1                  lan                                HP PCI-X 1000Base-T Dual-port Built-in
0/2                ba                                       Local Bus Adapter
0/2/0/0                  ba                                 PCItoPCI Bridge
0/2/0/0/0                   slot                            PCI Slot
0/2/0/0/0/0                    lan                          HP AD337-60001 PCIe 1000Base-T Dual-port Adapter
0/2/0/0/0/1                    lan                          HP AD337-60001 PCIe 1000Base-T Dual-port Adapter
0/3                ba                                       Local PCI-X Bus Adapter (12ee)
0/3/1                 slot                                  PCI Slot
0/4                ba                                       Local Bus Adapter
0/4/0/0                  ba                                 PCItoPCI Bridge
0/4/0/0/0                   slot                            PCI Slot
0/4/0/0/0/0                    fc                           HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 1)
0/4/0/0/0/0.2                     fcp                       FCP Domain
0/4/0/0/0/0.2.14.0.0                                    ext_bus          FCP Array Interface
0/4/0/0/0/0.2.14.0.0.0                                     target        
0/4/0/0/0/0.2.14.0.0.0.3                                      disk       HP      P2000 G3 FC
0/4/0/0/0/0.2.14.0.0.0.4                                      disk       HP      P2000 G3 FC
0/4/0/0/0/0.2.14.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/0.2.14.255.0.0                                   target        
0/4/0/0/0/0.2.14.255.0.0.0                                    ctl        HP      P2000 G3 FC
0/4/0/0/0/0.2.21.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/0.2.21.255.0.0                                   target        
0/4/0/0/0/0.2.21.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/0.2.23.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/0.2.23.255.0.0                                   target        
0/4/0/0/0/0.2.23.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/1                    fc                           HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 2)
0/4/0/0/0/1.2                     fcp                       FCP Domain
0/4/0/0/0/1.2.14.0.0                                    ext_bus          FCP Array Interface
0/4/0/0/0/1.2.14.0.0.0                                     target        
0/4/0/0/0/1.2.14.0.0.0.3                                      disk       HP      P2000 G3 FC
0/4/0/0/0/1.2.14.0.0.0.4                                      disk       HP      P2000 G3 FC
0/4/0/0/0/1.2.14.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.14.255.0.0                                   target        
0/4/0/0/0/1.2.14.255.0.0.0                                    ctl        HP      P2000 G3 FC
0/4/0/0/0/1.2.21.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.21.255.0.0                                   target        
0/4/0/0/0/1.2.21.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/1.2.22.0.0                                    ext_bus          FCP Array Interface
0/4/0/0/0/1.2.22.0.0.0                                     target        
0/4/0/0/0/1.2.22.0.0.0.0                                      disk       HITACHI DF600F
0/4/0/0/0/1.2.22.0.0.0.1                                      disk       HITACHI DF600F
0/4/0/0/0/1.2.22.0.0.0.2                                      disk       HITACHI DF600F
0/4/0/0/0/1.2.22.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.22.255.0.0                                   target        
0/4/0/0/0/1.2.22.255.0.0.0                                    ctl        HITACHI DF600F
0/4/0/0/0/1.2.23.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.2.23.255.0.0                                   target        
0/4/0/0/0/1.2.23.255.0.0.0                                    disk       DGC     RAID 5
0/4/0/0/0/1.3                     fcp                       FCP Domain
0/4/0/0/0/1.3.18.255.0                                  ext_bus          FCP Device Interface
0/4/0/0/0/1.3.18.255.0.0                                   target        
0/4/0/0/0/1.3.18.255.0.0.0                                    tape       HP      Ultrium 4-SCSI
0/4/0/0/0/1.3.18.255.0.0.1                                    autoch     HP      MSL G3 Series
120            processor                                    Processor
121            processor                                    Processor
122            processor                                    Processor
123            processor                                    Processor
250            ba                                           Core I/O Adapter
250/0              ipmi                                     IPMI Controller
250/1              tty                                      Built-in RS232C
250/2              acpi_node                                Acpi Hardware
255/1              usbmsvbus                                USB Mass Storage
255/1/0               ext_bus                               USB Mass Storage SCSI
255/1/0.0                target                             
255/1/0.0.0                 disk                            TEAC    DVD-ROM DW-224EV
RX2604[/#]ioscan -fnkC disk
Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
disk      0  0/1/1/0.0.0.0.0             sdisk   CLAIMED     DEVICE       HP      IR Volume
                         /dev/dsk/c0t0d0     /dev/dsk/c0t0d0s2   /dev/rdsk/c0t0d0    /dev/rdsk/c0t0d0s2
                         /dev/dsk/c0t0d0s1   /dev/dsk/c0t0d0s3   /dev/rdsk/c0t0d0s1  /dev/rdsk/c0t0d0s3
disk     30  0/4/0/0/0/0.2.14.0.0.0.3    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c19t0d3   /dev/rdsk/c19t0d3
disk     31  0/4/0/0/0/0.2.14.0.0.0.4    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c19t0d4   /dev/rdsk/c19t0d4
disk     21  0/4/0/0/0/0.2.21.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0
disk     19  0/4/0/0/0/0.2.23.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c3t0d0   /dev/rdsk/c3t0d0
disk     32  0/4/0/0/0/1.2.14.0.0.0.3    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c20t0d3   /dev/rdsk/c20t0d3
disk     33  0/4/0/0/0/1.2.14.0.0.0.4    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c20t0d4   /dev/rdsk/c20t0d4
disk     20  0/4/0/0/0/1.2.21.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c4t0d0   /dev/rdsk/c4t0d0
disk     10  0/4/0/0/0/1.2.22.0.0.0.0    sdisk   CLAIMED     DEVICE       HITACHI DF600F
                         /dev/dsk/c12t0d0   /dev/rdsk/c12t0d0
disk     14  0/4/0/0/0/1.2.22.0.0.0.1    sdisk   CLAIMED     DEVICE       HITACHI DF600F
                         /dev/dsk/c12t0d1   /dev/rdsk/c12t0d1
disk     22  0/4/0/0/0/1.2.22.0.0.0.2    sdisk   CLAIMED     DEVICE       HITACHI DF600F
                         /dev/dsk/c12t0d2   /dev/rdsk/c12t0d2
disk     18  0/4/0/0/0/1.2.23.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c5t0d0   /dev/rdsk/c5t0d0
disk      2  255/1/0.0.0  sdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
                         /dev/dsk/c1t0d0   /dev/rdsk/c1t0d0
RX2604[/#]

如果新的盘还是想使用,建议更新LUN的ID,换新的ID后,这些盘才能认出来:

RX2604[/#]ioscan -fnkC disk
Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
disk      0  0/1/1/0.0.0.0.0             sdisk   CLAIMED     DEVICE       HP      IR Volume
                         /dev/dsk/c0t0d0     /dev/dsk/c0t0d0s2   /dev/rdsk/c0t0d0    /dev/rdsk/c0t0d0s2
                         /dev/dsk/c0t0d0s1   /dev/dsk/c0t0d0s3   /dev/rdsk/c0t0d0s1  /dev/rdsk/c0t0d0s3
disk     30  0/4/0/0/0/0.2.14.0.0.0.3    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c19t0d3   /dev/rdsk/c19t0d3
disk     31  0/4/0/0/0/0.2.14.0.0.0.4    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c19t0d4   /dev/rdsk/c19t0d4
disk     24  0/4/0/0/0/0.2.14.0.0.1.3    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c19t1d3   /dev/rdsk/c19t1d3
disk     27  0/4/0/0/0/0.2.14.0.0.1.4    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c19t1d4   /dev/rdsk/c19t1d4
disk     21  0/4/0/0/0/0.2.21.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0
disk     19  0/4/0/0/0/0.2.23.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c3t0d0   /dev/rdsk/c3t0d0
disk     32  0/4/0/0/0/1.2.14.0.0.0.3    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c20t0d3   /dev/rdsk/c20t0d3
disk     33  0/4/0/0/0/1.2.14.0.0.0.4    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c20t0d4   /dev/rdsk/c20t0d4
disk     25  0/4/0/0/0/1.2.14.0.0.1.3    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c20t1d3   /dev/rdsk/c20t1d3
disk     36  0/4/0/0/0/1.2.14.0.0.1.4    sdisk   CLAIMED     DEVICE       HP      P2000 G3 FC
                         /dev/dsk/c20t1d4   /dev/rdsk/c20t1d4
disk     20  0/4/0/0/0/1.2.21.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c4t0d0   /dev/rdsk/c4t0d0
disk     10  0/4/0/0/0/1.2.22.0.0.0.0    sdisk   CLAIMED     DEVICE       HITACHI DF600F
                         /dev/dsk/c12t0d0   /dev/rdsk/c12t0d0
disk     14  0/4/0/0/0/1.2.22.0.0.0.1    sdisk   CLAIMED     DEVICE       HITACHI DF600F
                         /dev/dsk/c12t0d1   /dev/rdsk/c12t0d1
disk     22  0/4/0/0/0/1.2.22.0.0.0.2    sdisk   CLAIMED     DEVICE       HITACHI DF600F
                         /dev/dsk/c12t0d2   /dev/rdsk/c12t0d2
disk     18  0/4/0/0/0/1.2.23.255.0.0.0  sdisk   CLAIMED     DEVICE       DGC     RAID 5
                         /dev/dsk/c5t0d0   /dev/rdsk/c5t0d0
disk      2  255/1/0.0.0  sdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
                         /dev/dsk/c1t0d0   /dev/rdsk/c1t0d0