1834103 Members
2605 Online
110063 Solutions
New Discussion

Re: Backup Structure

 
Diego_19
Occasional Advisor

Backup Structure

How can I do to backup the struture de LVM, volumen group, logical volumen, disks and file systems, Is It possible?
Thanks
Lic
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Backup Structure

You run the vgcfgbackup command which saves the meta data to a file. Man vgcfgbackup and vgcfgrestore for details.

You can also get valuable data using the "strings /etc/lvmtab" command.
If it ain't broke, I can fix that.
Ian Dennison_1
Honored Contributor

Re: Backup Structure

One way is to run an inventory script on the system that identifies all the components that you mentioned, and which stores it off the server.

The 'sysinfo' is a good start, as is 'print_manifest' (part of the Ignite suite).

Share and Enjoy! Ian
Building a dumber user
Diego_19
Occasional Advisor

Re: Backup Structure

Example
I have a volume group /dev/vg01 with several logical volume and filesystems. I need remove the logical volume and vg01, and restore the same way, and fast.
Thanks
Lic
Ian Dennison_1
Honored Contributor

Re: Backup Structure

Have you already removed vg01 and want to restore it? Or do you wish to try this now?

I am not sure what you want. Can you tell us more?

Thanks, Ian
Building a dumber user
Steven E. Protter
Exalted Contributor

Re: Backup Structure

Here is an approach....

/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00

This will back up vg00 and all LVM structure.

Seperately back up the data on vg01.

Boot of the Ignite tape and restore that, then the data to vg01.

If all you need to back up is the LVM structure, this will do it. Handle data seperately and you're done.

If you need to somehow change vg01's structure,and then restore data to a modified LVM structure then A. Clay already gave you the answer.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Diego_19
Occasional Advisor

Re: Backup Structure

To Iam
Yes, I do but is a test machine.


The vg01 it has a one disk c1t4d0, logical volumes and file systems.
I do this
# vgcfgbackup -f /tmp/vg01.backup vg01
Remove the logical volumens and vg01
lvremove, vgremove

Question one I need to create the /dev/vg01 againg before run vgrestore
Thanks

Lic
Jose Mosquera
Honored Contributor

Re: Backup Structure

Hi,

Pls explore vgexport and vgimport commands. Read about -p option in vgexport command.

Rgds.
Diego_19
Occasional Advisor

Re: Backup Structure

I don`t want to do export o import.
Thanks
Lic