1834391 Members
2344 Online
110066 Solutions
New Discussion

ioscan hung

 
Sarjerao
Frequent Advisor

ioscan hung

ioscan -fun shows some devices scan state, which I physically dosconnected, But when I run ioscan -fn it get hung (not server). Even I unable to kill ioscan process, when killed ppid becomes 1. All ioscan process shown in process list. Is there any solution to kill hung process and ioscan work normally.
13 REPLIES 13
Joseph Loo
Honored Contributor

Re: ioscan hung

hi,

unless u know what r the devices causing this problem (which u may unplug if they r hot-pluggable), u may have to do a reboot.

regards.
what you do not see does not mean you should not believe
Sarjerao
Frequent Advisor

Re: ioscan hung

as this is production system reboot not possible.
the devices showing scan stae are dvd and ultrium drive whcih I unplugged, but still gives problem. enven if I run ioscan for other class e.g. lan that also get hung.
Muthukumar_5
Honored Contributor

Re: ioscan hung

Which platform you are facing this problem.?

Any process with PPID of 1 can be killed upon reboot only. Sometimes there may be chance to get some other PPID and after some time it will be killed normally.

You have to use ioscan -M format when some devices physically disconneted. Read ioscan man page.

hth.
Easy to suggest when don't know about the problem!
Sarjerao
Frequent Advisor

Re: ioscan hung

B.11.11 U 9000/800;
ioscan -M forcibly bind the driver, but I unplugged devices which shows scan state.
(dvd and ultrium drive)
Muthukumar_5
Honored Contributor

Re: ioscan hung

How did you try to stop that ioscan -fn? Using ctrl+c ?
Did you try with root / non-root user?

hth.
Easy to suggest when don't know about the problem!
Nguyen Anh Tien
Honored Contributor

Re: ioscan hung

If you have just add VA or EVA storage to you SAN. Remember to patch all required patches.
Last time I add EVA3K to my SAN, my staff forget to add one patch (securepath patch) so Server was hung whenever i issue ioscan command
HP is simple
Sarjerao
Frequent Advisor

Re: ioscan hung

ctrl-c doesn't works. session only needs to abort.
RA8k storage is connected to the system.
Is there any way to kill hung ioscan process.
Bharat Katkar
Honored Contributor

Re: ioscan hung

HI Sarjerao,
IOSCAN process cannot be interruped.
It will keep on searching devices and may be it is going in loop.
If possible try switching OFF and then ON external storage device (if possible).

Regards,
You need to know a lot to actually know how little you know
Steven E. Protter
Exalted Contributor

Re: ioscan hung

All systems eventually require reboot.

You have a hardware problem, which probably can't be fixed without downing the machine. Its time to think about scheduling a maintenance window.

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
Patrick Wallek
Honored Contributor

Re: ioscan hung

The ioscan process is most likely hung because it is waiting on an I/O operation to some device to finish. Until it finishes, nothing is going to happen. You can not kill a process in this state.

If ioscan ever gets the response it expects, then your ioscan will proceed, otherwise it will just sit there forever.
RAC_1
Honored Contributor

Re: ioscan hung

Do not do anything. As others told you those devices were disconnected by you and ioscan is trying to scan them.

Only reboot will clear up the things. Till then, if you want to look at certain io devices, restrict the ioscan to certain class devices.

ioscan -fnCext_bus
ioscan -fnClan

Anil
There is no substitute to HARDWORK

Re: ioscan hung

So you broke a SCSI bus, and you're wondering why a bus scan hangs?

These devices are not OLAR!

A reboot is the only way to resolve this now - of course if the rest of your server is working fine, then just leave it until you can arrange some downtime - but don't be surprised if you have more problems when hardware diagnostics check the status of your system...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sarjerao
Frequent Advisor

Re: ioscan hung

Hi
Thnaks to all
Finally reboot only solved the problem.