Operating System - HP-UX
1832979 Members
3591 Online
110048 Solutions
New Discussion

Re: Remove NO_HW devices from ioscan output

 
Laszlo Csizmadia
Frequent Advisor

Remove NO_HW devices from ioscan output

Is there any way but reboot to remove NO_HW lines from ioscan output?
Thoses devices are really not there any more(phisicaly removed) but I want the kernel and ioscan also reflect it. Obviously a reboot could solve this but I want to avoid if possible.

Thanks in advance.
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Remove NO_HW devices from ioscan output

There may be some way to force it, but I suspect the only way is to reboot.


Pete


Pete
T G Manikandan
Honored Contributor

Re: Remove NO_HW devices from ioscan output

Only reboot will do it.

T G Manikandan
Honored Contributor

Re: Remove NO_HW devices from ioscan output

Steven E. Protter
Exalted Contributor

Re: Remove NO_HW devices from ioscan output

Has the device been physically removed from the box?

If its still there and plugged in its going to show up on ioscan even after a boot.

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
Denver Osborn
Honored Contributor

Re: Remove NO_HW devices from ioscan output

The closest you can get without a reboot is to use rmsf.

rmsf -k -H hw_path

This will remove a disk and it's entry from ioscan, however you will still see the target class listed as "NO_HW" until you bounce the box.


Hope this helps,
-denver
MZ_1
Advisor

Re: Remove NO_HW devices from ioscan output

was looking for info and saw this. even though the thread is old, someone may one day read this and need it ...

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

Re: Remove NO_HW devices from ioscan output

Using the rmsf command will do it. Use this command with the -H option.

rmsf -H

If you have lots of NO_HW entries, make a for loop script that will automate for you.
Francis_12
Trusted Contributor

Re: Remove NO_HW devices from ioscan output

Hello,

Unfortunately that's impossible : the io devices tree is built at boot time and NO_HW entries cannot be dynamically removed without rebooting the system.

Hope this helps,
Bye.

Francis.
Sยภเl Kย๓คг
Respected Contributor

Re: Remove NO_HW devices from ioscan output

use ioscan and find the Hardware address of the device which shows the NO_HW.Then use
#rmsf -H
to remove it.Try out this most of teh time this worked.
regards
SK
Your imagination is the preview of your life's coming attractions