- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Getting HW path & LUN paths from /dev/dsk/c*
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 02:46 AM
06-28-2010 02:46 AM
associated with a device after deleting it. Is there any command with gives the lun & HW paths if we give the device as input(/dev/dsk/c*t*d*)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 03:27 AM
06-28-2010 03:27 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
#insf -eC disk
This will recreate the device files and the device files for the removed disks will get removed.
In case of a an EMC symmetrix LUN, you will have to run powermt commands to remove the dead paths
The sequence will be as follows,
#powermt check
#powermt config
#powermt save
#powermt display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 03:29 AM
06-28-2010 03:29 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 03:51 AM
06-28-2010 03:51 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
1.rmsf -a /dev/dsk/c5t2d2
2.insf -eC disk
but i still see NO_HW HW & lun paths
# ioscan -fkNC disk | grep NO_HW
disk 36 64000/0xfa00/0x67b esdisk NO_HW DEVICE NETAPP LUN
# ioscan -fkNC lunpath | grep NO_HW
lunpath 32 64000/0x2/0x0.0x0.0x4012000000000000 eslpt NO_HW LUN_PATH LUN path for disk36
# uname -a
HP-UX hpux197- B.11.31 U ia64 1205803419 unlimited-user license
Am i missing anything?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 03:53 AM
06-28-2010 03:53 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
Which is your OS ?
#ioscan is the command which will give you device files and hardware mapping.
But
"I need to delete the HW path and LUN paths
associated with a device after deleting it.
"
==> what you mean by delete HW path???
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 03:56 AM
06-28-2010 03:56 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
# ioscan -fkNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 73.4GMAX3073NC
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 73.4GMAX3073NC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:09 AM
06-28-2010 04:09 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
Simply run "rmsf -x" to instantly delete all disk devices, HW paths and lunpaths whose disk is no longer available.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:21 AM
06-28-2010 04:21 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
# rmsf -x
rmsf: Removing stale entry at 255/0/1.0 for iscsial
rmsf: Removing stale entry at 255/0/2.0.0.0 for sdisk
rmsf: Removing stale entry at 255/0/2.0.0.3 for sdisk
rmsf: Removing stale entry at 255/0/2.0.0.6 for sdisk
rmsf: Removing stale entry at 64000/0x2/0x0.0x1 for estp
rmsf: Removing stale entry at 64000/0x2/0x0.0x2.0x4000000000000000 for eslpt
rmsf: Removing stale entry at 64000/0x2/0x0.0x2.0x4003000000000000 for eslpt
rmsf: Removing stale entry at 64000/0x2/0x0.0x2.0x4006000000000000 for eslpt
rmsf: Removing stale entry at 64000/0xfa00/0x672 for esdisk
rmsf: Removing stale entry at 64000/0xfa00/0x673 for esdisk
rmsf: Removing stale entry at 64000/0xfa00/0x676 for esdisk
Removing stale block DSF /dev/dsk/c6t0d0
Removing stale block DSF /dev/dsk/c6t0d2
Removing stale block DSF /dev/dsk/c6t0d3
Removing stale block DSF /dev/dsk/c6t0d4
Removing stale block DSF /dev/dsk/c6t0d5
Removing stale block DSF /dev/dsk/c6t0d6
Removing stale block DSF /dev/dsk/c6t0d7
Removing stale block DSF /dev/disk/disk27
Removing stale block DSF /dev/disk/disk22
Removing stale block DSF /dev/disk/disk28
Removing stale character DSF /dev/isw
Removing stale character DSF /dev/rdsk/c6t0d0
Removing stale character DSF /dev/rdsk/c6t0d2
Removing stale character DSF /dev/rdsk/c6t0d3
Removing stale character DSF /dev/rdsk/c6t0d4
Removing stale character DSF /dev/rdsk/c6t0d5
Removing stale character DSF /dev/rdsk/c6t0d6
Removing stale character DSF /dev/rdsk/c6t0d7
Removing stale character DSF /dev/rdisk/disk27
Removing stale character DSF /dev/rdisk/disk22
Removing stale character DSF /dev/rdisk/disk28
# ioscan -fkNC disk | grep NO_HW
disk 36 64000/0xfa00/0x67b esdisk NO_HW DEVICE NETAPP LUN
# ioscan -fkNC lunpath | grep NO_HW
lunpath 32 64000/0x2/0x0.0x0.0x4012000000000000 eslpt NO_HW LUN_PATH LUN path for disk36
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:28 AM
06-28-2010 04:28 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
# rmsf -k -H ...
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:28 AM
06-28-2010 04:28 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:33 AM
06-28-2010 04:33 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
I am using a script to remove. That is why i need a way to find the HW & LUN paths for a specific device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:36 AM
06-28-2010 04:36 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:38 AM
06-28-2010 04:38 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:56 AM
06-28-2010 04:56 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
Could you please run ioscan with out "k" option and check the output? what is the current status
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 04:57 AM
06-28-2010 04:57 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 05:03 AM
06-28-2010 05:03 AM
Solution# 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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2010 11:19 PM
06-29-2010 11:19 PM
Re: Getting HW path & LUN paths from /dev/dsk/c*
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2010 04:42 AM
06-30-2010 04:42 AM
Re: Getting HW path & LUN paths from /dev/dsk/c*
#ioscan -m dsf | grep /dev/rdsk/c*t*d*
/dev/rdisk/disk
# rmsf -av /dev/rdisk/disk
solved my problems.
Thanks for everyone who helped me.