Operating System - HP-UX
1752812 Members
5938 Online
108789 Solutions
New Discussion юеВ

Re: Using vgcfgbackup to backup all Volume Groups

 
SOLVED
Go to solution
James R. Ferguson
Acclaimed Contributor

Re: Using vgcfgbackup to backup all Volume Groups

Hi:

> How can I find out if a VG is activated or not?

Given that you know the name of the VG, its *absence* in the output of 'vgdisplay' would indicate that is is *not* activated.

Regards!

...JRF...
dictum9
Super Advisor

Re: Using vgcfgbackup to backup all Volume Groups

I got a list of active VGs and a list of all VG's, I can find out the delta.

ll -d /dev/vg*

gives me the list of all VGs, active and not actived.
Peter Nikitka
Honored Contributor

Re: Using vgcfgbackup to backup all Volume Groups

Hi,

>>
got a list of active VGs and a list of all VG's, I can find out the delta.

ll -d /dev/vg*

gives me the list of all VGs, active and not actived.
<<

... but if a name of a VG is not of the form vg*, this will fail as well.
You could however look for the major number of all device files in /dev ...

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
dictum9
Super Advisor

Re: Using vgcfgbackup to backup all Volume Groups

My main issue right now is figuring out if a node is an active node in a SG cluster so I can active the non-activated VG for taking the vgcfgbackup.

cmviewcl gives too much output.
Deoncia Grayson_1
Honored Contributor

Re: Using vgcfgbackup to backup all Volume Groups

vgdisplay will give you the information you need in regards to if a volume group is active or not.
just issue vgdisplay | more and this will list all active volume groups and will state if a volume group is not activated on that server. it lists all volume groups, even the ones controlled by Serviceguard.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon