- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Howto get VolumeGroup information while a VG is no...
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
11-29-2005 04:15 AM
11-29-2005 04:15 AM
Howto get VolumeGroup information while a VG is not active
For a system consistency check program, I need to gather VG information of all active and in-active VG/LV on regular base.
I know that to use vgdisplay and other LVM-commando's, the VG must be active whih the corresponding PV.
I tried vgcfgrestore -n vgxx -l, but it returns the name of the corresponding PV of that VG configuration file.
But I am wondering if anyone has some wonderfull idea for my problem.
Again, my situation is:
1: able to gather all VG/LV configuration on regular base ( information like strict mode, PE size, LV name, number of mirrors etc )
2: Not all VG are active. Some VG's can only be active once in a long while (maybe up to 3 months due to the application/package restriction)
Thanks for any kind of help / discussion in advance.
Regards,
William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 04:20 AM
11-29-2005 04:20 AM
Re: Howto get VolumeGroup information while a VG is not active
Is the a MCSG config? If so, are the VGs active on another node? Do the vgdisplay there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 04:22 AM
11-29-2005 04:22 AM
Re: Howto get VolumeGroup information while a VG is not active
It is not possible to find these informations about the VG's without activating them. The only thing you can find without activating will be the disks and LVOLs belonging to these VGs.
#strings /etc/lvmconf/vgxx.mapfile
&
#strings /etc/lvmconf/vgxx.conf can be used for this.
Also try SAM if it helps a bit here.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 05:29 AM
11-29-2005 05:29 AM
Re: Howto get VolumeGroup information while a VG is not active
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 06:17 AM
11-29-2005 06:17 AM
Re: Howto get VolumeGroup information while a VG is not active
If you are using MC/SG you can activate the volumegroup readonly do a vgcfgbackup and deactivate the vg again.
so
vgchange -a r /dev/vg?? && vgcfgbackup && vgdisplay -v vg?? && lvdisplay -v /dev/vg??/lvol? && vgchange -a n
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 02:49 AM
12-05-2005 02:49 AM
Re: Howto get VolumeGroup information while a VG is not active
From the etc/lvmconf/vgxx.conf or /etc/lvmconf/vgxx.mapfile I can only retrieve information related to the PV.
I need to gather VG/LV information without activatating a VG at all.
I know that the VG information is store in the VG itself, without activating it, there is no way to discover them.
What I am wondering if there is anyother tools/application which keep the changes like vgcfgbackup/vgcfgrestore
unfortunataly, vgcfgbackup only store the information related to PV.
Regards,
William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 04:03 AM
12-05-2005 04:03 AM
Re: Howto get VolumeGroup information while a VG is not active
What you will need to do, is perform regular vgdisplay -v's and save the info when those vg's are activated.
That said - you can activate a vg at anytime (as long as it isn't active on another host) - and you don't need to mount the file systems associated with it - so it won't harm your running application.
Rgds...Geoff