cancel
Showing results for 
Search instead for 
Did you mean: 

Logical Volume

 
SOLVED
Go to solution
Rkumar
Frequent Advisor

Logical Volume

Dear Experts,

Whenever I run any LVM related command the old volume group configuration information is saved in /etc/lvmconf/vg.conf.old. and the current configuration is in /etc/lvmconf/vg.conf file.
Please let me know what is the need of saving old configuration info.


Rahul
7 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: Logical Volume

>>>Please let me know what is the need of saving old configuration info<<

LVM will take care if .. :)

# lvextend -L 1024 /dev/vg01/lvol4
Logical volume "/dev/vg01/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf --> it will automatically backup

if you want double sure, you can also run "vgcfgbackup"

man vgcfgbackup

Problems are common to all, but attitude makes the difference
Pete Randall
Outstanding Contributor

Re: Logical Volume

Uhhhh, for recovery?

Look at the man page.


Pete

Pete
rariasn
Honored Contributor

Re: Logical Volume

Hi,

vgcfgrestore - display or restore LVM volume group configuration from backup file

# man vgcfgrestore

Rgs,
Rkumar
Frequent Advisor

Re: Logical Volume

# lvextend -L 1024 /dev/vg01/lvol4
Logical volume "/dev/vg01/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf --> it will automatically backup

=========>if you want double sure, you can also run "vgcfgbackup"<===================

Actually I m new in this enviornment.I didn't get please Let me know in detail.


Rahul
Pete Randall
Outstanding Contributor

Re: Logical Volume

Actually, you might gain more from reading the Examples section of the vgcfgrestore man page.


Pete

Pete
Johnson Punniyalingam
Honored Contributor
Solution

Re: Logical Volume

I am realy sorry for miss understanding your Question...

Good practise.always have OS recovery tapes

make_tape_recovery -> will backup all OS configuration (including your LVM)

manual ways of doing as per my knowledge.

All your vg information are stored under below location

# cd /etc/lvmconf

# cp -p vg01.conf.old vg01.conf.old.org -> "making a local backup copy"

/etc/lvmconf] # ls -lrt
total 6032

-rw------- 1 root sys 297984 Mar 12 08:34 vg01.conf.old
-rw------- 1 root sys 297984 Mar 23 09:14 vg01.conf
-rw------- 1 root sys 297984 Mar 23 09:14 vg01.conf.old.org


Again, please take note "make_tape_recovery" is the best way of backing up your OS configuration file.
Problems are common to all, but attitude makes the difference
Rkumar
Frequent Advisor

Re: Logical Volume

Thanks to all