cancel
Showing results for 
Search instead for 
Did you mean: 

vgcfgrestore

SOLVED
Go to solution
kunjuttan
Super Advisor

vgcfgrestore

Can anybody please give me some details of vgcfgbackup and vgcfgrestore command?
12 REPLIES
SoorajCleris
Honored Contributor
Solution

Re: vgcfgrestore

Hi,

$man vgcfgrestore
$man vgcfgbackup

How ever ,

1. vgcfgbackup take the configuration from the lvm header of the disk and save to a file default location /etc/lvmconf/vgxx.conf. This command runs automatically ( if you are not desabling it by option) when ever there is a vg config change.

using vgcfgrestore you can restore the same to disks in case of header corruption/ disk replacement .

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Michal Kapalka (mikap)
Honored Contributor

Re: vgcfgrestore

hi,

if you make some LVM/VG changes it will be writen to the /etc/lvmconf/*, on this location you will find the backup of the vg's, for this backup will be vgcfgbackup used, and vgcfgrestore read if from this location.

man vgcfg[backup/restore]

mikap
Jeeshan
Honored Contributor

Re: vgcfgrestore

vgcfgbackup command saves LVM configuration for volume groups in a default or alternate backup.

vgcfgrestore command display or restore LVM VG configuration from backup file.

The first one is generally used when any changes or maintenance occurred in LVM.

The second one is used when any thing wrong happened while doing any changes in LVM.
a warrior never quits
Johnson Punniyalingam
Honored Contributor

Re: vgcfgrestore

The vgcfgrestore command restores the LVM configuration data

Restore the LVM configuration information for the physical volume
/dev/rdsk/c0t7d0 that was saved in the default file /etc/lvmconf/vxx.conf

vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t7d0


vgcfgbackup - create or update LVM volume group configuration backup file
By default, vgcfgbackup runs automatically each time an LVM command changes the LVM configuration.
Problems are common to all, but attitude makes the difference
Sp4admin
Trusted Contributor

Re: vgcfgrestore

Looks like the question has been answered. vgcfgbackup write to the /etc/lvmconf file. All the configuration created from LVM commands write to this location.

sp,
Viktor Balogh
Honored Contributor

Re: vgcfgrestore

Usually vgcfgrestore is used to restore the LVM data onto a disk, eg. when a failed disk was replaced the LVM header must be restored to the plain disk in order to get it recognized by the LVM subsystem.

on p.57 you can see how it is used for replacing a failed disk:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
****
Unix operates with beer.
kunjuttan
Super Advisor

Re: vgcfgrestore

Thanks.
To whcih location it is backing up?
Is it backup the data also?
Torsten.
Acclaimed Contributor

Re: vgcfgrestore

The answer is already above ...

It's a configuration backup only!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kunjuttan
Super Advisor

Re: vgcfgrestore

Thanks.
To whcih location it is backing up?
Is it a automatic one or we have to do manually?
Torsten.
Acclaimed Contributor

Re: vgcfgrestore

Read the post of Johnson Punniyalingam - it is all there.

Also do

man vgcfgbackup

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Vishu
Trusted Contributor

Re: vgcfgrestore

Hi,

it does not take data backup..only the LVM configuration. and

Yes, it is automatic. But you can take it manually also by

# vgcfgbackup

The locaiton is already answered as

vgcfgbackup take the configuration from the lvm header of the disk and save to a file default location /etc/lvmconf/vgxx.conf.
kunjuttan
Super Advisor

Re: vgcfgrestore

Thanx buddies...