[Ilugc] Linux BMR - Getting Volume Group name and LV Names in C++ code - [OT]

Rajagopal Swaminathan raju.rajsand at gmail.com
Wed Jul 11 20:56:50 IST 2012


Greetings,

On Wed, Jul 11, 2012 at 1:23 PM, selvaraj v s <vsselvaraj at gmail.com> wrote:
> Hi,
>
> I am doing Linux BMR . I need to handle the LVMs for that case. While
> backing up i need to backup the "Volume group names" using pvscan in system
> command and  "Logical Volume names" using lvscan  and keep it in a file..
> Now i use vgdisplay command to know whether the source disk is lvm.. If its
> output is "No volume groups found" i will take it as not an lvm disk.. I
> need to know whether this a rite way to backup lv names and vg names.. or
> if there is any better way to do it , kindly suggest me.
>
> While i use vgdisplay and execute in system command in C side , i get some
> list of files with a message that those files are getting leaked on
> invocation of vgdisplay. I am confused why it is so.. Kindly tel your
> suggestions..
>
>
> Thanks
>
> Selva
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

what is the partiion type?

-- 
Regards,

Rajagopal


More information about the ilugc mailing list