Operating System - HP-UX
1833767 Members
2398 Online
110063 Solutions
New Discussion

identifying disk from pv name

 
SOLVED
Go to solution
mjos
Super Advisor

identifying disk from pv name

Hi, I have an itanium box (ia64 hp server rx8640) havein 11.31 hp version. I need to find out which disk is under vg00.
Under vgdispplay for vg00 the disk is showing as /dev/disk/disk981_p2

# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk981_p2

ioscan ouput for disks

# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3
disk 1 0/0/0/2/1.2.0 sdisk CLAIMED DEVICE Optiarc DVD RW AD-
170A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 3 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 4 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0

# pvdisplay /dev/disk/disk981_p2
--- Physical volumes ---
PV Name /dev/disk/disk981_p2
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 32
Total PE 4347
Free PE 891
Allocated PE 3456
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

I want to do the mirroring using the second disk. So i want to know from which disk is being used for vg00. Is /dev/disk/disk981_p2 an alias & if its so how do i find it out

10 REPLIES 10
Srikanth Arunachalam
Trusted Contributor

Re: identifying disk from pv name

Hi,

The vgdisplay -v vg00 will give you the details of disk been used by vg00 volume group.

Check the "--- Physical volumes ---" section from that output.

Then from the "ioscan -fnkC disk" check the device that is different from that of one used by vg00 and that is not been utilized. Choose the device as the one for mirroring of root disk.

Thanks,
Srikanth
mjos
Super Advisor

Re: identifying disk from pv name

Thanks, thats what I said...i am not getting the disk id in vgdisplay

its showing as


--- Physical volumes ---
PV Name /dev/disk/disk981_p2
PV Status available
Total PE 4347
Free PE 891
Autoswitch On

There is no disk as /dev/disk/disk981_p2 in the ioscan -fnkC disk

# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3
disk 1 0/0/0/2/1.2.0 sdisk CLAIMED DEVICE Optiarc DVD RW AD-5
170A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 3 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 4 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0
#
mmax
Valued Contributor

Re: identifying disk from pv name

Could you paste
ls -l /dev/disk/disk981_p2

and

ls -l /dev/dsk

maybe the minor numbers will be helpfull.
Srikanth Arunachalam
Trusted Contributor

Re: identifying disk from pv name

Hi,

What happens when you run the vgscan. After running them do you now see the physical volume information in "vgdisplay -v". While installing what H/W path did you give?

Thanks,
Srikanth
Andrew Rutter
Honored Contributor

Re: identifying disk from pv name

hi,

a quick guess would be this one

/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3

as with itaniums the root disk has to be partitioned into 3 parts and this is the only disk your showing that has

Andy
Torsten.
Acclaimed Contributor

Re: identifying disk from pv name

Check

# 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!   
mjos
Super Advisor

Re: identifying disk from pv name

# ls -l /dev/disk/disk981_p2
brw-r----- 1 bin sys 3 0x000099 Sep 6 12:24 /dev/disk/disk981
_p2
# ls -l /dev/dsk |grep -i 0x000099
#

there is no output in ls -l /dev/dsk with the same minor number

I also think it should be
disk 0 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
/dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1
/dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s3

But want to understand why it is showing up as /dev/disk/disk981_p2
Andrew Rutter
Honored Contributor
Solution

Re: identifying disk from pv name

hi,

try running this command or your disk981_p2

# ioscan -m dsf /dev/disk/disk981_p2

it should display the older device special files, aswell as the newer naming convention.


you might want to read this doc and others on the new naming convention of lvm

http://docs.hp.com/en/LVMmigration1/LVM_Migration_to_Agile.pdf

Andy
mjos
Super Advisor

Re: identifying disk from pv name

The command worked
ioscan -m dsf /dev/disk/disk981_p2

Thanks everybody for your help.

mjos
Super Advisor

Re: identifying disk from pv name

The command worked