- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- disks with associate vg
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
12-30-2002 07:52 AM
12-30-2002 07:52 AM
I would like to know how list disk with associate vg name and unused disks with one command with one display (like lspv in AIX OS if you know this os)
Thanks very much for your help.
regards,
Gerald
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 07:57 AM
12-30-2002 07:57 AM
Re: disks with associate vg
How about
# vgdisplay -v /dev/vg00
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 07:59 AM
12-30-2002 07:59 AM
Re: disks with associate vg
To list all the disks that a system can see, you can do this:
ioscan -fnC disk
To see which disks are used in your volume groups, do:
vgdisplay -v
I'm familiar with the 'lspv' command in AIX, and there isn't an equivalent command in HP-UX. For you HP-UX guys, here is what the output of an 'lspv' looks like:
# lspv
hdisk0 006016216115490d rootvg
hdisk1 0060162185f82c12 catvg
hdisk2 0060162185f83c87 catvg
hdisk3 0060162185f81a6b bkupvg
hdisk4 006016214a52901a catvg
hdisk5 006016214a52928a catvg
It lists the disk device name, a disk ID, and the volume group that each disk belongs to. Kind of cool, but there isn't a similar command in HP-UX.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:00 AM
12-30-2002 08:00 AM
Re: disks with associate vg
HP-UX doesn't have a single command that provides the information like AIX's 'lspv'.
'ioscan -kfnC disk' will return a list of all disk devices. This does not distinguish between used, unused and 'pvlink' devices.
'vgdisplay -v' will return a listing of all disk devices as associated with all volume groups including the logical volumes (if any) associated with each. It probably comes closest to 'lspv'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:01 AM
12-30-2002 08:01 AM
Re: disks with associate vg
Have you got another solution?
thanks
Gerald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:02 AM
12-30-2002 08:02 AM
Re: disks with associate vg
Try with "vgdisplay -v
If you need more info about use "man vgdisplay"
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:04 AM
12-30-2002 08:04 AM
Re: disks with associate vg
Well John showed me what a wonderfull command AIX got, hpux does not do "that" in one command ;>)
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:05 AM
12-30-2002 08:05 AM
Re: disks with associate vg
I've got my reponse, it doesn't exist a similar command as AIX.
OK thank's very much and happy new year everybody and sorry for my bad english.
regards
Gerald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:08 AM
12-30-2002 08:08 AM
Re: disks with associate vg
#strings /etc/lvmtab | grep -v "/dev/dsk" | xargs vgdisplay -v | grep "PV Name"
Then compare this output to the actual physical disks on your system... from ioscan or looking in the /dev directory. Its crude but it one way.... sure you get more responses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:09 AM
12-30-2002 08:09 AM
SolutionThe closest I can think of is a Veritas Volume Manager command, but obviously you need VxVM installed and be at least 11i! Otherwise use strings on /etc/lvmtab
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0
/dev/dsk/c1t4d0
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t6d0 simple - - LVM
c1t0d0 simple disk01 rootdg online
c1t2d0 simple disk02 oracledg online
c1t4d0 simple - - LVM
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:12 AM
12-30-2002 08:12 AM
Re: disks with associate vg
Enjoy!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 08:21 AM
12-30-2002 08:21 AM
Re: disks with associate vg
regards,
Gerald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 09:11 AM
12-30-2002 09:11 AM
Re: disks with associate vg
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 12:20 AM
12-29-2004 12:20 AM