- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Which VG and LV are in the LUN
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
07-18-2001 04:53 PM
07-18-2001 04:53 PM
How to know which VG and LV are in the LUN.
System: N-class
OS: HPUX 11.00
AutoRaid storage system.
Rgds,
YC
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 05:01 PM
07-18-2001 05:01 PM
Re: Which VG and LV are in the LUN
The easist way is to do 'strings /etc/lvmtab'.
That will list each volume group followed by the devices which comprise it. Note that on an AutoRAID, each LUN is essentially over all the disks in the array. You can't point to a disk and say it is LUN2. The strings command will show which LUN's make up each volume group.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 05:04 PM
07-18-2001 05:04 PM
SolutionTo display the logical volumes that make up a volume group do 'vgdisplay -v /dev/vg01'.
By the way, the devices will be displayed something like this:
/dev/dsk/c2t1d4 controller 2, scsi target or id 1, LUN 4.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 05:24 PM
07-18-2001 05:24 PM
Re: Which VG and LV are in the LUN
# pvdisplay -v /dev/dsk/cXtXdX
The output of PV Display will show you the "VG Name" and the lvols it contains under the "Distribution of physical volume" section.
Hope this helps
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 08:08 PM
07-18-2001 08:08 PM
Re: Which VG and LV are in the LUN
Just use the following. This will show all disks
within each volume group and all logical volumes.
# vgdisplay -v
or output it for viewing
# vgdisplay -v >/tmp/vgdisplay.out
Match them using ioscan
# ioscan -funC disk > /tmp/ioscan.out
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 08:59 PM
07-18-2001 08:59 PM
Re: Which VG and LV are in the LUN
I should have included that once you have
identified what your volume groups are
and which disks are attached to each one
you run the
# pvdisplay -v /dev/dsk/cXtXdX
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2001 11:48 PM
07-18-2001 11:48 PM
Re: Which VG and LV are in the LUN
Follow this.
#strings /etc/lvmtab
Now it will list all vgs and corresponding PVs.
Now U can do pvdisplay for corresponding PVs or vgdisplay for corresponding VGs.
#vgdisplay -v /dev/vg01 |pg
This will list full information about that VG
#pvdisplay -v /dev/dsk/cxtxdx |pg
This will display full information about that PV.
#lvdisplay -v /dev/vg01/lvolx |pg
This will display complete information about that lvol.
For more information see man page of vgdisplay, pvdisplay, and lvdisplay.
Shahul