Operating System - HP-UX
1752311 Members
5732 Online
108786 Solutions
New Discussion юеВ

Re: How to take a backup of vg configuration in Hpunix

 
sanwin
Frequent Advisor

How to take a backup of vg configuration in Hpunix

Hi,
We have a storage activity to migrate few luns in HP-UX. We are planning to keep a backup of the configuration files.
How to take backup of the volume group configuration, lvm configuration, etc.


Which are the other important files that needs to be backed up.

Thanks!!

Regards,
Sanwin
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: How to take a backup of vg configuration in Hpunix

Hi:

# vgcfgbackup /dev/vgNN

...see the friendly manpages for more information.

You can also create mapfiles for use with 'vgimport's:

# vgexport -m /tmp/vgNN.map -p -s -v /dev/VGNN

...once again, more information can be found in the manpages.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: How to take a backup of vg configuration in Hpunix

Shalom,

vgcfgbackup

volume group configuration backup.

This is run automatically during certain operations but after you make changes you should run it yourself.

SEP
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
щ╗ЮчЗГ
Valued Contributor

Re: How to take a backup of vg configuration in Hpunix

Hi,

We can use vgcfgbackup command.

Also keep a copy of important config files like /etc/lvmtab, fstab, lvmrc etc...

Regards!
Man's mind, once stretched by a new idea, never regains its original dimensions
Bijeesh
Respected Contributor

Re: How to take a backup of vg configuration in Hpunix

Hi,
If you need to take the backup to an alternate path use the -f option.
#vgcfgbackup -f /tmp/vgXX.backup vgXX

As Ignited mentioned you can also take the backup of other configuration files.


Rgds
Bijo
sanwin
Frequent Advisor

Re: How to take a backup of vg configuration in Hpunix

Thanks everyone for the reply.

To take the vgmap alone without exporting the vg, which command should we use.

Please let me know .

Thanks!!

regards,
sanwin
Bijeesh
Respected Contributor

Re: How to take a backup of vg configuration in Hpunix

Hi,
Ypu can use the -p along with the -m option.

#vgexport -s -p -m /tmp/vgXX.map /dev/vgXX

rgds
Bijo