Operating System - HP-UX
1834823 Members
2887 Online
110070 Solutions
New Discussion

how to refresh ioscan entry

 
SOLVED
Go to solution
dasn
Advisor

how to refresh ioscan entry

Hi,
I am using a Hitachi 9200 array and HP-US 11i both connected through a fabric. Every time i create a lun or delete a lun, "ioscan -funC disk" entriies wont get removed. For example, i had some 4 luns before and entry was,
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 1 0/0/1/1.15.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 5 0/2/0/0.2.0.255.0.0.0 sdisk CLAIMED DEVICE HITACHI DF500
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 12 0/2/0/0.2.0.255.0.0.1 sdisk CLAIMED DEVICE HITACHI DF500
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 13 0/2/0/0.2.0.255.0.0.2 sdisk CLAIMED DEVICE HITACHI DF500
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
disk 14 0/2/0/0.2.0.255.0.0.3 sdisk CLAIMED DEVICE HITACHI DF500

Now, i remove two luns, and the entries are,

# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 1 0/0/1/1.15.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 5 0/2/0/0.2.0.255.0.0.0 sdisk CLAIMED DEVICE HITACHI DF500
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 12 0/2/0/0.2.0.255.0.0.1 sdisk CLAIMED DEVICE HITACHI DF500
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 13 0/2/0/0.2.0.255.0.0.2 sdisk NO_HW DEVICE HITACHI DF500
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
disk 14 0/2/0/0.2.0.255.0.0.3 sdisk NO_HW DEVICE HITACHI DF500
/dev/dsk/c6t0d3 /dev/rdsk/c6t0d3

These still shows the old LUN but ofcourse the status is "NO_HW". Is there any way that these entries also get deleted with out rebooting the machine? smilarly when add a new LUN would it appear by itself without rebooting ? Thanks for your help.

- NKD
7 REPLIES 7
Patrick Wallek
Honored Contributor
Solution

Re: how to refresh ioscan entry

When you add a LUN, simply run 'ioscan -fnC disk' to make sure it is visible. Then run 'insf -e' or 'insf -C disk' or 'insf -H ' (where hardware path is the H/W path from ioscan) to create the device files. You can then run 'ioscan -fnC disk' again to verify that the device files now exist.

When you remove a lun you can use rmsf to remove the device files. 'rmsf -H ' (again, where hardware path is the H/W path from ioscan). For you two with NO_HW above, you would run:

# rmsf -H 0/2/0/0.2.0.255.0.0.2
# rmsf -H 0/2/0/0.2.0.255.0.0.3

If you then run 'ioscan -fnC disk' again, those entries should be gone.
mavrick
Regular Advisor

Re: how to refresh ioscan entry

Hi,

You have to remove the device special file from the system using rmsf

rmsf -v -a

Have a look at tis man page

http://docs.hp.com/en/B2355-0127/rmsf.1M.html

thanks..
Asif Sharif
Honored Contributor

Re: how to refresh ioscan entry

Hi,

To delete specific devices and entry in the kernel use the command rmsf. You can use the command with option -H

For more information see the man:

http://docs.hp.com/en/B2355-90692/rmsf.1M.html


Regards,
Asif Sharif
Regards,
Asif Sharif
dasn
Advisor

Re: how to refresh ioscan entry

Hi,
Thanks for all the posts/replies. What i have found out from the above posts is that,

If i have two FC cards in my host, I have two entries for each lun through each controller. Manually deleting them all for each path is tedious job. Is there any alternative through which we can delete them in just one time for each Lun?

Thanks,
NKD
Patrick Wallek
Honored Contributor

Re: how to refresh ioscan entry

Nope, not that I am aware of.
Mridul Shrivastava
Honored Contributor

Re: how to refresh ioscan entry

there is no other way to remove the devices.. the only way is to rmsf those devices one by one.... else you can just leave them as it is till next reboot.
Time has a wonderful way of weeding out the trivial
Sandman!
Honored Contributor

Re: how to refresh ioscan entry

>If i have two FC cards in my host, I have two entries for each lun through each
>controller. Manually deleting them all for each path is tedious job. Is there any
>alternative through which we can delete them in just one time for each Lun?

You could write a small shell script to automate the process so you don't have to manually identify and delete the NO_HW LUNs from the ioscan listing which can be a tedious job if there are a lot of device special files involved.