Operating System - HP-UX
1752579 Members
4088 Online
108788 Solutions
New Discussion юеВ

Re: ioscan in SAM takes 10 minutes

 
SOLVED
Go to solution
Rommel T. Misa_2
Frequent Advisor

ioscan in SAM takes 10 minutes

Hi All,

When I issue ioscan -funC disk at the command line, the output normally takes about only 10 seconds to complete. However, when I do a SAM > Disks and Filesystems > Volume Groups and the system starts to scan I/O channels for the disks, it takes about 10 minutes just to have an output. Has anyone experienced this? What's the fix to this problem (if indeed it is)?

Please help.

ROMMEL
16 REPLIES 16

Re: ioscan in SAM takes 10 minutes

Rommel,

The disks and filesystems section in SAM has *always* been painfully slow (it does more than just an ioscan), but lets be sure that you don't have an ioscan problem anyway.

How long does:

ioscan -f

and ioscan -fn

take? If they only take about 10 seconds then it's just slow old SAM. If it takes longer you may have some bad devices attached somewhere (quite often its down to bad zoning on fibre channel switches)

HTH

Duncan

I am an HPE Employee
Accept or Kudo
SKR_1
Trusted Contributor

Re: ioscan in SAM takes 10 minutes

>> (it does more than just an ioscan),

Hi Duncan

Can you please explain it in detail. What is the main difference b/w ioscan on command line and ioscan from SAM.

Thanks

SKR
Rommel T. Misa_2
Frequent Advisor

Re: ioscan in SAM takes 10 minutes

ioscan -fn and ioscan -fnC disk takes as long as in SAM (10 mins). :(

Re: ioscan in SAM takes 10 minutes

Too much to list here, but you can see for yourself by doing the following:

1) Start SAM
2) Select Disks and Filesystems
3) From another window go to the sam log directory:

cd /var/sam/log

4) Copy out the sam log and zero the file. Then tail the file so you can watch progress

cp samlog samlog.bak
>samlog
tail -f samlog

5) Back in your SAM session select Disk Devices and immmediately switch back to your other window - you'll now be able to watch the progress of the SAM scanning progress and watch all the other things it does....

6) When done just use CTRL-C to exit the tail -f

HTH

Duncan


I am an HPE Employee
Accept or Kudo
Solution

Re: ioscan in SAM takes 10 minutes

If those ioscans tale a long time too then some device somewhere may be misconfigured. The usual culprit is something on a SAN (is this system running on a SAN?) So the next step is to narrow down the problem by looking at the FC cards in turn.

Identify the path to the FC cards using:

ioscan -funC fc

Then just run the scans on the hardware paths of the FC cards and below with:

ioscan -fnH

e.g.

ioscan -fnH 0/4/2/0

Do those take about 10 minutes or only one of them?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
SKR_1
Trusted Contributor

Re: ioscan in SAM takes 10 minutes

Thanks Duncan

SKR
Steven E. Protter
Exalted Contributor

Re: ioscan in SAM takes 10 minutes

Shalom,

Usually this is a sign of termination problems in the scsi chain or missing disks that were presented and now not present on storage.

It can also be caused by a failed disk.

Check all these issues and proceed to solution.

I have experienced this more times than I can count.

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
Bill Hassell
Honored Contributor

Re: ioscan in SAM takes 10 minutes

> ioscan takes a long time...

That's why I never use ioscan without the -k except when adding/deleting devices with power on. Even then, I limit the scope of ioscan to just a hardware path or category:

ioscan -knfC disk

ioscan -knfH 1/0/12/1/1

The -k guarentees instant output and reflects what the kernel knows about the devices. There is no reason to hard-scan all the devices unless you are rezoning a SAN switch or adding a hotswap disk.

SAM's volume group section is indeed very slow on large systems as it not only runs a full ioscan but also checks *every* physical disk and volume group. If you have several hundred disks, it will indeed be very slow. I would recommend SAM to manage volume groups and disks on large systems. The command line is much faster.



Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: ioscan in SAM takes 10 minutes

A very common problem is, if the server is connected to a SAN but there are no devices visible. The system searches, searches ...

Can you post the output of

# ioscan -fnk

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!