- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I find out all active volume groups at my ...
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
01-30-2007 01:27 AM
01-30-2007 01:27 AM
How can I find out all active volume groups at my system. I need the output for checkup script (like: vgxy1, vgxy2, vgxy3,....)
Thanks
Mirko
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:31 AM
01-30-2007 01:31 AM
Re: How can I find out all active volume groups at my system
# vgdisplay
...without any arguments.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:33 AM
01-30-2007 01:33 AM
Re: How can I find out all active volume groups at my system
I know this command, but the output is not usable for me, I need only the name of the volume group, vgdisplay is too much output.
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:34 AM
01-30-2007 01:34 AM
Re: How can I find out all active volume groups at my system
I think following command could be useful
vgdisplay 2>/dev/null | more | grep "VG Name"
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:40 AM
01-30-2007 01:40 AM
Re: How can I find out all active volume groups at my system
OK, if you only want the vgname:
# vgdisplay |awk '/VG Name/ {print $3}'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:47 AM
01-30-2007 01:47 AM
Re: How can I find out all active volume groups at my system
or something very similar:
vgdisplay 2>/dev/null | awk -F"/" '/VG Name/ {print $3}'
you should obtain only VG names without '/dev' prefix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:48 AM
01-30-2007 01:48 AM
Re: How can I find out all active volume groups at my system
vgdisplay 2>/dev/null | awk -F"/" '/VG Name/ {print $3}'
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:51 AM
01-30-2007 01:51 AM
Re: How can I find out all active volume groups at my system
thanks for the informations.
Bye
Mirko