Operating System - HP-UX
1830997 Members
2579 Online
110018 Solutions
New Discussion

Re: Drive path and device file

 
Feljav
Frequent Advisor

Drive path and device file

How can I find drive path in a rx5670? How can I match the device file with drive path?
11 REPLIES 11
A. Clay Stephenson
Acclaimed Contributor

Re: Drive path and device file

ioscan -C disk -fn
If it ain't broke, I can fix that.
Sandman!
Honored Contributor

Re: Drive path and device file

If you know the drive path then use ioscan(1M) and if you have the device filename then use lssf(1M) to find out the drive path.

for ex. if drive path is known then the device file can be obtained as:

# ioscan -fnH 0/0/0/1.2.3

and if disk device file is known then the drive path can be obtained as:

# ioscan -f /dev/dsk/c#t#d#

~cheers
Feljav
Frequent Advisor

Re: Drive path and device file

I know that. But I don't know how i can find the hardware path of a specific disk.
Sandman!
Honored Contributor

Re: Drive path and device file

Could you please provide an example of what you are trying to get at.

~thanks
Torsten.
Acclaimed Contributor

Re: Drive path and device file

You need to know how to read the hardware path for this system. Post the path.

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!   
A. Clay Stephenson
Acclaimed Contributor

Re: Drive path and device file

Your question is very unclear but here is what I would do if I were absolutely clueless.

1) ioscan -fn # to detect any new devices
2) insf # to create device nodes for any newly discovered devices
3) ioscan -C disk -fn and note each /dev/rdsk/cXtYdZ device node.

4) For each /dev/rdsk/cXtYdZ device do:
dd if=/dev/rdsk/cXtYdZ bs=256k count=2000 of=/dev/null and observe the drive LED's.
If it ain't broke, I can fix that.
Torsten.
Acclaimed Contributor

Re: Drive path and device file

Hardware pathes for internal drives and slots are always fixed. But it is different from one system type to another. For external pathes it depends on all the hardware (disk chassis/SAN switch ...).

You can even get the information for the EFI path from an running HP-UX by using "ioscan -fne".

Example:
For your rx5670 the internal, upper left disk has

0/1/1/0/1/1.0.0
and
ACPI(HWP0002,100)/PCI(1|0)/PCI(1|1)/SCSI(Pun0,Lun0)

You will find the device file in the ioscan output too.

What path do you need?



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!   
Juan M Leon
Trusted Contributor

Re: Drive path and device file

Feljav,

Can you post the output of ioscan -fnC disk

Thank you
Feljav
Frequent Advisor

Re: Drive path and device file

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735NC
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735NC
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
/dev/dsk/c0t2d0s1 /dev/rdsk/c0t2d0s1
/dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s3
disk 4 0/0/2/1.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 30
5
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0
disk 1 0/1/1/0/1/1.0.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735N
C
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
/dev/dsk/c3t0d0s1 /dev/rdsk/c3t0d0s1
/dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s3
disk 3 0/1/1/0/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735N
C
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0


I need to know what physical disk correspond at what device file. All disk are internal.
Thank you
Tim Nelson
Honored Contributor

Re: Drive path and device file

From your example.
0/0/2/0.0 relates to /dev/dsk/c0t0d0
0/0/2/0.2.0 relates to /dev/dsk/c0t2d0
and so on...

The device files are directly under the listed hardware.

For the device files with cxtxdxs1-3 these are partions on the same disk. Typically seen with IPF systems for boot disks.

Torsten.
Acclaimed Contributor

Re: Drive path and device file

0/0/2/0.0.0 lower left

0/0/2/0.2.0 lower right

0/1/1/0/1/1.0.0 upper left

0/1/1/0/1/1.2.0 upper right

Please read
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
too!

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!