cancel
Showing results for 
Search instead for 
Did you mean: 

Slow ioscan on HP-UX 11.23

SOLVED
Go to solution
applesauce
Occasional Contributor

Slow ioscan on HP-UX 11.23

I have a system which is slow to respond to the ioscan command. I am not sure why and wondered what ideas the panel may have for me to try to fix this.

I have a RX2660 server running HP-UX 11.23.

Two local RAID sets are configured. 3 72Gb disks in each.

An 'ioscan -fnC disk' takes some 45 seconds to respond. An 'ioscan' command with no options set takes close to or just over a minute to respond.

I have the cumulative patch PHCO_34720 installed, configured and verified.

# 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/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/3 ba Local Bus Adapter
0/3/0/0 ba PCItoPCI Bridge
0/3/0/0/0/0 ext_bus PCIe SAS SmartArray P400 RAID Controller
0/3/0/0/0/0.0 target
0/3/0/0/0/0.0.0 disk HP LOGICAL VOLUME
0/3/0/0/0/0.0.1 disk HP LOGICAL VOLUME
0/3/0/0/0/0.7 target
0/3/0/0/0/0.7.0 ctl Initiator
0/4 ba Local PCI-X Bus Adapter (12ee)
0/5 ba Local Bus Adapter
0/5/0/0 ba PCItoPCI Bridge
0/5/0/0/0/0 lan HP AD337-60001 PCIe 1000Base-T Dual-port Adapter
0/5/0/0/0/1 lan HP AD337-60001 PCIe 1000Base-T Dual-port Adapter
120 processor Processor
121 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




7 REPLIES
Steven E. Protter
Exalted Contributor

Re: Slow ioscan on HP-UX 11.23

Shalom,

Most common cause of slow ioscan:

* Unterminated scsi connectors/devices.
* disks that have gone bad but still have power.

check /var/adm/syslog/syslog.log for lbolt messages.

Use mstm/cstm/xstm to test your disk devices

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Prashantj
Valued Contributor

Re: Slow ioscan on HP-UX 11.23

Hi Applesauce,

As per my view 45 second itâ s ok, because â ioscanâ scan all attached devices. As you mention you have storages. Also check swapinfo â tam, systemâ s filesystem, cup utilization etc.also check system logs, disks status.

Prashant.
Good judgment comes from experience and experience comes from bad judgment.
Pete Randall
Outstanding Contributor
Solution

Re: Slow ioscan on HP-UX 11.23

So why rescan the hardware every time? Add the -k option to just scan the kernel structures and it will be like lightning:

ioscan -kfnC disk


Pete

Pete
Bill Hassell
Honored Contributor

Re: Slow ioscan on HP-UX 11.23

As Pete mentions, never use ioscan without the -k option UNLESS you have just added new devices without rebooting. The -k option also allows anyone to run the command. Only root can run ioscan without -k. -k reads the kernel's I/O information from memory. Without -k, ioscan must look at every card and explore all possible devices, whether a device exists or not. Naturally, missing devices take a long time to timeout.


Bill Hassell, sysadmin
Suraj K Sankari
Honored Contributor

Re: Slow ioscan on HP-UX 11.23

Hi,

After executing the ioscan command did you checked you /var/adm/syslog/syslog.log file, Is there any error at syslog.log file.

Suraj
applesauce
Occasional Contributor

Re: Slow ioscan on HP-UX 11.23

Thanks everybody for your replies.... The '-k' option is in deed my solution which I had previously overlooked... Certainly no errors logged in syslog.

Thanks again
applesauce
Occasional Contributor

Re: Slow ioscan on HP-UX 11.23

I had overlooked the need for the '-k' option.