Operating System - HP-UX
1834099 Members
2227 Online
110063 Solutions
New Discussion

How to create the /etc/lvmconf/vgdata.mapfile by OS?

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

How to create the /etc/lvmconf/vgdata.mapfile by OS?

Hi ,
There are some files such as
vgdata.conf
vgdata.conf.old
vgdata.mapfile
under /etc/lvmconf/ . I wonder how&when these files to create by OS ?

Thanks & BR
3 REPLIES 3
Jim Mallett
Honored Contributor
Solution

Re: How to create the /etc/lvmconf/vgdata.mapfile by OS?

Rambo,

The vgcfgbackup command will create those files for you. I don't have system access right now so you're best bet is doing a:
man vgcfgbackup

Most commands that make any LVM configuration change will also run the command above to get a backup for you.

I actually schedule a weekly vgcfgbackup to keep the data fresh. It has come in handy a couple of times. The vgcfgrestore command goes hand in hand with it.

Jim
Hindsight is 20/20
Steven E. Protter
Exalted Contributor

Re: How to create the /etc/lvmconf/vgdata.mapfile by OS?

The command to create them is vgexport

Man vgexport will tell you how to create the mapfiles.

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
vinodan
Advisor

Re: How to create the /etc/lvmconf/vgdata.mapfile by OS?

Hi
vgcfgbackup is the command to create these files.
vgcfgbackup /dev/vg_name will create backup file named /etc/lvmconf/vg_name.conf
But if you want to change the default path use vgcfgbackup -f /tmp/vg_name.conf /dev/vg_name
for updating backup file use vgcfgbackup with -u option.see man pages for more details.
using vgexport command you can create map files.see the followin command
vgexport -m vg_name.mapfile /dev/vg_name.see man vgexport for more details.


regards
vinod