Operating System - HP-UX
1825775 Members
1943 Online
109687 Solutions
New Discussion

Mapping Disk, with mount point ...

 
SOLVED
Go to solution
Shahbaz_1
Regular Advisor

Mapping Disk, with mount point ...

Hi Friends,
When I want to know the disk-activity, I use,
"#sar -d n n"
it shows the device name like c0t6d0.
Now how to map it with the mount poins like /u01 or /u02.

One more question,
#ioscan -fnC disk,
it gives detail of all the disks in the system.
it is showing, H/W Path, Driver S/W State, H/W Type etc,
again how to map these disks with the mount points.

Please help me to understand it.

Thanks in Adv

Regards
Shah


Let's share the great thing "THE KNOWLEDGE"
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Mapping Disk, with mount point ...

Do a pvdisplay -v on the disk.

For ex.,

pvdisplay -v /dev/dsk/c0t6d0 will show you the distribution of the logical volumes.

bdf command shows on what mount points these logical volumes are mounted.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: Mapping Disk, with mount point ...

Hi Shah,

I hate to say but you will need to take a class on Administering HP-UX. There are quite a number of things involved in setting up the system.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
S.K. Chan
Honored Contributor

Re: Mapping Disk, with mount point ...

A quick way is just run this ..
# pvdisplay -v /dev/dsk/c0t6d0 | more
and take a look at how it is distributed logical volume wise.
From there look at your /etc/fstab file or "bdf" command to find out which logical volume is mounted on which filesystem.
Sridhar Bhaskarla
Honored Contributor

Re: Mapping Disk, with mount point ...

And also,

you will get a lot of answers by searching the threads in this forum as well in the knowledge database here.

You will find a wealth of information there without having to wait for responses from the forum members.

Just type in what you want and click search.

http://support2.itrc.hp.com/service/cki/enterService.do

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
steven Burgess_2
Honored Contributor

Re: Mapping Disk, with mount point ...

Hi Shah

Here is a command that will map disks to hardware paths

lssf $(strings /etc/lvmtab|grep dsk)|awk '{print $NF, $(NF-1)}'

HTH

Steve

take your time and think things through
T G Manikandan
Honored Contributor

Re: Mapping Disk, with mount point ...

Physical Disks can be //logically// grouped or ungrouped to create logical volumes inside a volume group.

Each logical volume is like a logical partition and it can be used for a file system.

It is just like tablespaces and datafiles to understand from the DBA side.

Tablespaces are logical and datafiles are physical.

So you can use
pvdisplay
to query the physical disk to find which volume group it is belonging to.

check this manual for more info

http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Pete Randall
Outstanding Contributor

Re: Mapping Disk, with mount point ...

Shah,

To associate mount points with physical volumes, I take the output of "bdf -l" to get the mount points and the lvm pathname and then compare that to the output of "vgdisplay -v" to tie the lvm path to the physical disk path. For example:
yukon(157)root# bdf -l |grep vg01
/dev/vg01/lvol6 5120000 7566 4793677 0% /work6
/dev/vg01/lvol5 5120000 1117414 3752475 23% /work5
/dev/vg01/lvol4 5120000 2765301 2207554 56% /work4
/dev/vg01/lvol3 5120000 1664740 3241514 34% /work3
/dev/vg01/lvol2 5120000 3189564 1809942 64% /work2
/dev/vg01/lvol1 5120000 1324233 3564038 27% /work1
/dev/vg01/lvol8 1024000 838314 177484 83% /fair
/dev/vg01/lvol7 2048000 1055936 930079 53% /apps
yukon(158)root# vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4332
VGDA 4
PE Size (Mbytes) 4
Total PE 8660
Alloc PE 8250
Free PE 410
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1
LV Name /dev/vg01/lvol4
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 2

LV Name /dev/vg01/lvol5
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vg01/lvol6
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vg01/lvol7
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Used PV 1

LV Name /dev/vg01/lvol8
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c17t0d4

PV Status available
Total PE 4330
Free PE 0
Autoswitch On

PV Name /dev/dsk/c17t1d1

PV Status available
Total PE 4330
Free PE 410
Autoswitch On


Hope this helps,
Pete


Pete