1834142 Members
2181 Online
110064 Solutions
New Discussion

VG availability

 
Sandor Horvath_2
Valued Contributor

VG availability

Hi !

Can I display VG availability anyway ?

Thanks, Saa
If no problem, don't fixed it.
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: VG availability

What do you mean "VG availability"? Are you wanting to see if the volume group is activitated or not?

You can try doing a 'vgdisplay vg_name'. If the volume group is activated then you will see information about it. If it is not activated, then vgdisplay will give an error like the following:

# vgdisplay vg04
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg04".
Sandor Horvath_2
Valued Contributor

Re: VG availability

Hi !

I mean the VG is clustered or not,
activated or not,
shared or not,
excusive activated or not.

Thanks, Saa
If no problem, don't fixed it.
James R. Ferguson
Acclaimed Contributor

Re: VG availability

Hi Sandor:

'vgdisplay' will return the VG status with an optional 'exclusive' notation if the VG is activated in an MC/ServiceGuard node. On nodes on which it isn't activated, vgdisplay will return 'Volume group not activated.'. This distinguishes an activatable VG from one that simply isn't known to the system. In that case, one gets 'Volume group "/dev/vgXX" does not exist in the "/etc/lvmtab" file'.

...JRF...
Sandor Horvath_2
Valued Contributor

Re: VG availability

Thanks !

vgdisplay is good for me when VG activated, but
How can I diplay VG marked exclusive or not or shared... before activete it ?

of corse
vgchange -a y if work not marked exclusive but
when error ... conflict with configured mode then marked but I looking for better solution.

regards, Saa


Saa
If no problem, don't fixed it.