cancel
Showing results for 
Search instead for 
Did you mean: 

no_HW

SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

no_HW

How to remove the device with NO_HW status.

ape 100 1/0/2/1/0/4/0.199.216.128.0.0.1 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 101 1/0/2/1/0/4/0.199.216.128.0.0.2 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 102 1/0/2/1/0/4/0.199.216.128.0.0.3 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 103 1/0/2/1/0/4/0.199.216.128.0.0.4 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 104 1/0/2/1/0/4/0.199.216.128.0.0.5 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 105 1/0/2/1/0/4/0.199.216.128.0.0.6 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 106 1/0/2/1/0/4/0.199.216.128.0.0.7 stape NO_HW DEVICE IBM ULTRIUM-TD2
target 68 1/0/2/1/0/4/0.199.216.128.0.1 tgt NO_HW DEVICE
tape 107 1/0/2/1/0/4/0.199.216.128.0.1.0 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 108 1/0/2/1/0/4/0.199.216.128.0.1.1 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 109 1/0/2/1/0/4/0.199.216.128.0.1.2 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 110 1/0/2/1/0/4/0.199.216.128.0.1.3 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 111 1/0/2/1/0/4/0.199.216.128.0.1.4 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 112 1/0/2/1/0/4/0.199.216.128.0.1.5 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 113 1/0/2/1/0/4/0.199.216.128.0.1.6 stape NO_HW DEVICE IBM ULTRIUM-TD2
tape 114 1/0/2/1/0/4/0.199.216.128.0.1.7 stape NO_HW DEVICE IBM ULTRIUM-TD2
Points will be given
12 REPLIES
Pnaidu
Frequent Advisor
Solution

Re: no_HW

Use: rmsf -H
For more informatin please check man page for rmsf.

Thanks, P.Naidu
Ivan Krastev
Honored Contributor

Re: no_HW

For removing the devices use rmsf:

#rmsf -H path

like:

#rmsf -H 1/0/2/1/0/4/0.199.216.128.0.1.7


after that run ioscan again.

regards,
ivan
Sharma Sanjeev
Respected Contributor

Re: no_HW

Hi

Use rmsf -H h/w address it will remove both dsk & rdsk device files

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Ron Irving
Trusted Contributor

Re: no_HW

or the more radical reboot.
Should have been an astronaut.
TTr
Honored Contributor

Re: no_HW

If the question is how to remove the "NO_HW" lines from the ioscan listing, the answer is ONLY with a reboot. The rmsf as sugeested will delete the /dev/rmt/xxxx special files but the NO_HW lines will remain.
Avinash20
Honored Contributor

Re: no_HW

Hi Indrajit,

You can only get rid of the device files with "rmsf" but not the pointers in the kernel IO tree.
So, you will still see NO_HW associated with those paths until you reboot the server.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Torsten.
Acclaimed Contributor

Re: no_HW

Try

# rmsf -k -H 1/0/2/1/0/4/0.199.216.128.0.0.1

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!   
sujit kumar singh
Honored Contributor

Re: no_HW

Hi


if this is 11.31 then :::
1)#ioscan -s

shall show u the stale devives that is teh deviced which are having the stale DSFs and the status is NO_HW that is the DSFs now point to a HW which ahs been removed or does not exist.

2)the new option -x for rmsf removes the system wide stale entries for such stale devices.


#rmsf -x


so u can see by trying this.

Regards
Sujit
Bill Hassell
Honored Contributor

Re: no_HW

There is an easier way:

for DEV in $(lssf /dev/rmt/* | grep \?\?\?)
do
rmsf -a $DEV
done

The lssf command will show the hardware path as ??? when the device has no hardware. Note that you can use this to remove disk devices which have been removed.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: no_HW

>Bill: for DEV in $(lssf /dev/rmt/* | grep \?\?\?)

(It may be easier to use fgrep "???".)

Don't you have to use awk so you can separate out the device file from the rest of the info on the lssf output?
for DEV in $(lssf /dev/rmt/* | awk '/\?\?\?/ { print $NF}'); do
yulianto piyut
Valued Contributor

Re: no_HW

rmsf -H 1/0/2/1/0/4/0.199.216.128
Indrajit Bhagat
Regular Advisor

Re: no_HW

Thanks a lot to all of the