Operating System - HP-UX
1751883 Members
5291 Online
108783 Solutions
New Discussion юеВ

Re: Getting HW path & LUN paths from /dev/dsk/c*

 
SOLVED
Go to solution
ideep
Occasional Advisor

Re: Getting HW path & LUN paths from /dev/dsk/c*

rmsf -H is removing the HW and LUN paths. But the problem is i just want to remove the HW & lun paths for a specific device.
I am using a script to remove. That is why i need a way to find the HW & LUN paths for a specific device.
Torsten.
Acclaimed Contributor

Re: Getting HW path & LUN paths from /dev/dsk/c*

But did you use

rmsf -k -H

or not?

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!   
ideep
Occasional Advisor

Re: Getting HW path & LUN paths from /dev/dsk/c*

I greped for NO_HW in the following commands
and removed the stale entries with
rmsf -H

# ioscan -fkNC disk | grep NO_HW
# ioscan -fkNC lunpath | grep NO_HW

The problem is I am deleting all the stale
entries which are not related to my disk.
I want to remove the stale entries specific to my device only.
SoorajCleris
Honored Contributor

Re: Getting HW path & LUN paths from /dev/dsk/c*

Hi,

Could you please run ioscan with out "k" option and check the output? what is the current status

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Torsten.
Acclaimed Contributor

Re: Getting HW path & LUN paths from /dev/dsk/c*

Still not sure where the problem is ...

Does this work for you?

# rmsf -k -H 64000/0x2/0x0.0x0.0x4012000000000000

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!   
Torsten.
Acclaimed Contributor
Solution

Re: Getting HW path & LUN paths from /dev/dsk/c*

And by the way, when asking for the legacy device files (/dev/dsk/c*t*d*) you need to have a look at the legacy paths too:

# ioscan -fn

# ioscan -m dsf

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!   
ideep
Occasional Advisor

Re: Getting HW path & LUN paths from /dev/dsk/c*

rmsf -H is removing the stale entries.

but my question is
"is there any command which will list the HW and lun path for a device?"
somthing like

#COMMAND device(/dev/dsk/c*t*d*)
#output : H/W path & lun path

So that i can only delete the stale entries associated with a particular device.

or some option with rmsf which cleans up HW and lun paths also while deleting the disk
ideep
Occasional Advisor

Re: Getting HW path & LUN paths from /dev/dsk/c*

found the way.

#ioscan -m dsf | grep /dev/rdsk/c*t*d*
/dev/rdisk/disk /dev/rdsk/c*t*d*

# rmsf -av /dev/rdisk/disk

solved my problems.
Thanks for everyone who helped me.