System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

NO_HW in ioscan , doesn't clear after rmsf .

SOLVED
Go to solution
DeafFrog
Valued Contributor

NO_HW in ioscan , doesn't clear after rmsf .

Dear Gurus,

Can you please provide your valuable i/p on this :
I had to un-present one lun from a server and present another bigger lun to same server.
the LUN being removed was not a part of any VG in server.
apple:/# ioscan -m dsf /dev/disk/disk23
Persistent DSF Legacy DSF(s)
========================================
/dev/disk/disk23 /dev/dsk/c4t0d2
/dev/dsk/c10t0d2
/dev/dsk/c6t0d2
/dev/dsk/c8t0d2
/dev/dsk/c16t0d2
/dev/dsk/c18t0d2
/dev/dsk/c12t0d2
/dev/dsk/c14t0d2
apple:/# rmsf /dev/disk/disk23
apple:/# rmsf /dev/dsk/c4t0d2
apple:/# rmsf /dev/dsk/c10t0d2
apple:/# rmsf /dev/dsk/c6t0d2
apple:/# rmsf /dev/dsk/c8t0d2
apple:/# rmsf /dev/dsk/c16t0d2
apple:/# rmsf /dev/dsk/c18t0d2
apple:/# rmsf /dev/dsk/c12t0d2
apple:/# rmsf /dev/dsk/c14t0d2

still i am seeing these disk as "NO_HW" in ioscan -fnC o/p.
Also the lun preseneted to the server thru EVA 8000 is not visible to the server.
I did usual ioscan, insf -eC disk before checking for the new LUN.
I cannot reboot the machine , is there a way to do this w/o reboot.
apple:/# uname -a;id;date
HP-UX apple B.11.31 U ia64 4219087140 unlimited-user license
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
Wed, Aug 4, 2010 03:58:13 PM
FrogIsDeaf
5 REPLIES
Kapil Jha
Honored Contributor

Re: NO_HW in ioscan , doesn't clear after rmsf .

you would need to reboot the server to remove NO_HW entry,
i would suggest not to reboot the server just for cosmetic reason.

In next maintenance it would be cleared :)

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Torsten.
Acclaimed Contributor
Solution

Re: NO_HW in ioscan , doesn't clear after rmsf .

Use rmsf, example:

# rmsf -k -H 0/1/1/0.0.0.1.0

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!   
Matti_Kurkela
Honored Contributor

Re: NO_HW in ioscan , doesn't clear after rmsf .

You would not have this problem if you had used the "-a" option in your original rmsf commands. In other words, instead of:

# rmsf /dev/disk/disk23

you should have used:

# rmsf -a /dev/disk/disk23

and so forth.

Without the "-a" option, the rmsf command deletes only the device file(s), not the "device definition" (= the ioscan entry).
As the device files are now gone, the way to delete the device definitions is "rmsf -k", exactly as Torsten suggested.

However, there is a shortcut:
If there are no other NO_HW disk/tape device entries you would like to keep, then you could simply use the

rmsf -x

command to remove all stale device definitions and their device files too.

MK
MK
DeafFrog
Valued Contributor

Re: NO_HW in ioscan , doesn't clear after rmsf .

Hi Kapil , Torsten and Matti ,

# rmsf -k -H 0/1/1/0.0.0.1.0 removed the "NO_HW" from ioscan but
ioscan -m dsf still showed the the disk23.and new LUN from SAN was still not visible.An rmsf -a /dev/disk/disk23 , followed by ioscan and insf did
the trick without reboot.

Many Thank Guys.
Regards,
FrogIsDeaf
DeafFrog
Valued Contributor

Re: NO_HW in ioscan , doesn't clear after rmsf .

Soution as above.

Regards,
FrogIsDeaf