Operating System - HP-UX
1833696 Members
3344 Online
110062 Solutions
New Discussion

logical volume attributes

 
anat heilper
Frequent Advisor

logical volume attributes

Hi,
I want to write a program in c to know if a logical volume given by path is part of a high availability cluster ( that the volume group has been initialized by vgchange -c y at the time of the creation).
We have service guard, so if this information can be retrived from the sg api's it would be as good as well.

I tried using stat and pstat_getlv, but that only got me to the knowledge weather the volume in online/offline.
2 REPLIES 2
Rita C Workman
Honored Contributor

Re: logical volume attributes

..and that is probably all you will get.
When the cluster takes the volume group (vgchange -c y vg) it next changes the volume group to exclusive (vgchange -a e vg).
This same setting could be put on any volume group, within MC/SG or not.

If you want to know what vg's (hence their lvols) are part of the cluster, just check te cluster ascii file.

Guess I'm missing something here, or being too simplistic in my views,
Rgrds,
Rita
anat heilper
Frequent Advisor

Re: logical volume attributes

Hi,
I would like to know if a specific logical volume is part of a volume group that was initialized with vgchange -c y, without using shell commands.
I know that I can within a shell do vgdisplay -v to the relevant volume group and check if the VG STATUS == availabe/exclusive.
Im interested to know how i can retreive that info from c.
Thanks,Anat.