1832418 Members
3467 Online
110042 Solutions
New Discussion

Logical Volume Manager

 
SOLVED
Go to solution
Tracey
Trusted Contributor

Logical Volume Manager

In my /etc/lvmconf directory I have two sets of files, one vg??.conf that is created with vgcfbackup and the other is vg??.mapfile - I can find reference to these files in the forum and that they are important - but for the life of me, I can't find out how I created them. ??
6 REPLIES 6
Helen French
Honored Contributor
Solution

Re: Logical Volume Manager

Hi Tracey:

It is not necessary that these files are created manually ! Everytime you modify anything with any VG, the changes will be deflected in the files in /etc/lvmconf. If you just do a vgextend/vgreduce/lvcreate ..etc, you could see a message appearing at last saying the 'modification has been done on /etc/lvmconf/vg??.?? file' or something similar. This is done by the LVM itself.

The map files are normally created when you do make_tape_recovery. Next time when you invoke this command, give -v option and check the messages.

HTH,
Shiju
Life is a promise, fulfill it!
Clemens van Everdingen
Honored Contributor

Re: Logical Volume Manager

Hi,

Those map files are created with vgexport -m command. (by hand or script)

This to do a vgimport on the system !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Jeff Schussele
Honored Contributor

Re: Logical Volume Manager

Hi Tracey,

The .conf are created, as you say, with the vgcfgbackup command & can also be craeted/modified automatically by many of the vg & lv commands UNLESS you do -A n to suppress.

The .mapfile are created by the vgexport command when you use the -s parameter to write the file - believe vg_name.mapfile is the default filename & /etc/lvmconf is the default dir unless overridden with the -m parameter.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
hpuxrox
Respected Contributor

Re: Logical Volume Manager

The vg??.mapfile was created from a vgexport -p command. Someone probibly created it.
Helen French
Honored Contributor

Re: Logical Volume Manager

Hi Tracey:

An addition: The make_tape_recovery invokes vgexport -p -s command for all VGs inorder to create those map files under default directory (/etc/lvmconf).

If you do this manually, you can give the map file location by giving -m option with vgexport.

HTH,
Shiju
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: Logical Volume Manager

Hi Tracey

The mapfiles contains information about the no. of lvols that particular volume group has got , you can recreate it by vi command .However if you have lost the conf file and the system is up I would recommend that you list the disk devices and do vgexport and import to create these files back.


Manoj Srivastava