cancel
Showing results for 
Search instead for 
Did you mean: 

/etc/lvmconf info missed

Ernesto Rincon
Frequent Advisor

/etc/lvmconf info missed

I've upgraded an rx6600 system from HP-UX 11.23 to HP-UX 11.31, however I overwrite all the /etc directory from old HP-UX 11.23 and now all the /etc/lvmconf info is unaccurate; how I can regenerate the /etc/lvmconf directory?

Please help me.
Thanks.
7 REPLIES
Ganesan R
Honored Contributor

Re: /etc/lvmconf info missed

Hi,

You need to run vgcfgbackup command to recreate the vg config files
Best wishes,

Ganesh.
ManojK_1
Valued Contributor

Re: /etc/lvmconf info missed

Take a backup of /etc/lvmconf remove the /etc/lvmconf and run the command vgscan.

This will help you.

Manoj K
Thanks and Regards,
Manoj K
Suraj K Sankari
Honored Contributor

Re: /etc/lvmconf info missed

Hi,
run "vgcfgbackup" to create or update LVM volume group configuration backup file
By default, vgcfgbackup runs automatically each time an LVM command changes the LVM
configuration.

use -f or -u for create/update old file.

for more information see man page of vgcfgbackup

Suraj
Basheer_2
Trusted Contributor

Re: /etc/lvmconf info missed

what do you get when you run this

strings /etc/lvmtab

to recreate lvmconf

vgscan
and do again vgscan

Basheer_2
Trusted Contributor

Re: /etc/lvmconf info missed

I am sorry

vgscan recreates /etc/lvmtab NOT /etc/lvmconf.

you need to do for all vgs

vgcfgbackup -f /tmp/vgname.bkp vgname
Taifur
Respected Contributor

Re: /etc/lvmconf info missed

Hi Ernesto,

Before doing anything you should backup lvmtab, lvmconf , vg.

#vgcfgbackup -f /tmp/vgbackup vgxx

Scan the primary controller device paths for all the physical volumes on the system and re-create /etc/lvmtab file:

#vgscan -v

The following messages will appear after /etc/lvmtab file is re-created.
*** LVMTAB has been created successfully.
*** If PV links are configured in the system
*** Do the following to resync information on disk.
*** #1. vgchange -a y
*** #2. lvlnboot -R

Then check /etc/lvmconf.

http://docs.hp.com/en/B3921-60631/vgscan.1M.html

Rgds//
Taifur
Sajjad Sahir
Honored Contributor

Re: /etc/lvmconf info missed

Dear Ernesto

u should run vgcfgbackup command
vgcfgbackup â create or update LVM volume group configuration backup file
The vgcfgbackup command saves the LVM configuration for a volume group in a default or alternate configuration backup file

eg:vgcfgbackup -f /tmp/vg00.backup vg00


thanks and regards

Sajjad Sahir