Operating System - HP-UX
1753797 Members
8179 Online
108805 Solutions
New Discussion юеВ

Re: Best practice to backup Lv

 
Muda Ikhsan_1
Frequent Advisor

Best practice to backup Lv

Hi.. i want to backup my lv inside my Vg to tape.
i try to use tar , but i think it only create one file inside the tape.
my lv are :
/dev/vgsapdev/lvusrsapput
/dev/vgsapdev/lvsapd01
/dev/vgsapdev/lvsaptrans
/dev/vgsapdev/lvinfd01
/dev/vgsapdev/lvsapmnt

they all on different mountpoint.
How can i backup them ? and the restore it, since it's not root vg so i can't use make_recovery.
Responses really appreciate, thank you all :)
6 REPLIES 6
mirco_1
Valued Contributor

Re: Best practice to backup Lv

hi,

if you would use tar for more file you can use the no rewind tape (example /dev/rmt/0mn ) in the tar command.

DM.
Eric Antunes
Honored Contributor

Re: Best practice to backup Lv

Hi,

I think you should use SAM:

Type sam as root and go to Backup and Recovery -> Interactive Backup and Recovery -> [select the backup device OR go to Actions -> Use Remote Backup Device if the tape drive is in another server ->] -> Back Up Files Interactively... and select the files/directories you want to backup.

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Steven E. Protter
Exalted Contributor

Re: Best practice to backup Lv

Shalom Muda,

I would run a vgexport with -p and -m to create a mapfile.

This is quite helpful when restoring a system.

You can use make_tape_recovery/make_net_recovery to back up the boot partition and all logical volume information.

You can use fbackup.

You can create one tar file and then re-tar it to tape.

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
Rick Garland
Honored Contributor

Re: Best practice to backup Lv

If you are doing some kind of backup, it is hoped that the files in these LVs are included in the backup.

If you are looking for saving the VG configuration, you can use the 'vgcfgbackup' command.

Doing an Ignite on vg00 is always a good idea and this will get the /etc/lvmtab file.

twang
Honored Contributor

Re: Best practice to backup Lv

- dd can be used to make a copy of the logical volumes regardless of its content. So you can dd each lvol using the no-rewind device file.
- i am not sure, but you can take a try using make_tape_recovery to backup non rootvg
make_tape_recovery -p -v -x inc_entire=vg01
- why you need a nonroot vg image backup? we actually dont require image backup for nonroot vg. It is better to go for a normal backup with tar, fbackup or other 3rd party backup softwares.
Tonya Underwood
Regular Advisor

Re: Best practice to backup Lv

If you would like to use tar get the mountpoints and perform the following:

tar cv -C mountpoint1 . -C mountpoint2 .

You get the idea...

To recover this data:

tar -xvf /dev/rmt/0m

This will extract the data into the respective directories.