1827207 Members
2532 Online
109716 Solutions
New Discussion

Re: Location of mounts

 
SOLVED
Go to solution
Dave Hartman
Occasional Contributor

Location of mounts

I'm a newbie to HP-UX.

I wanted to know how to determine on which physical drive each logical volume is on.
I've used SAM and it only tells me the size of the partitions but not where they reside.

I'm using HP-UX 10.20

Thanks in advance.
5 REPLIES 5
Steve White_1
Occasional Advisor
Solution

Re: Location of mounts

lvdisplay -v /dev/vgxx/lvolx|more will display the location of the logical volume. The column to pay most attention to is P.E.
Shannon Petry
Honored Contributor

Re: Location of mounts

You should also be able to type "/usr/bin/strings /etc/lvmtab".
This will report which volume groups are associated with which physical disk.
May be a little quicker than trying to find all of the /dev/vgXXXXX/lvolXXX's, then lvdisplay each logical volume.
Microsoft. When do you want a virus today?
Shannon Petry
Honored Contributor

Re: Location of mounts

You can also type /usr/bin/strings /etc/lvmtab. This will report which physical disks are attached to a physical volume. Of course this only works if you have a single disk per volume group. (That is the most common config)
Microsoft. When do you want a virus today?
Andreas Voss
Honored Contributor

Re: Location of mounts

Hi,

i have written a little script, i called it vgd , that collects all log. volume information.
Look for the attachment.

Regards

Andrew
Dave Wherry
Esteemed Contributor

Re: Location of mounts

Dave,
You can get this information in sam. Under logical volumes, select one and the got to Actions/View More Information. It tells you the hardware path of the disk. Or you can go to Disks, select a disk and under Actions/View More Information, will tell you what logical volumes are on that disk.
Either way it is a little tedious. The information is there though.
Also, the script Andreas posted give a lot of information.