Operating System - HP-UX
1834140 Members
2975 Online
110064 Solutions
New Discussion

Re: map files in /etc/lvmconf, how to restore if lost???

 
HAQBAHU
Occasional Contributor

map files in /etc/lvmconf, how to restore if lost???

"vgcfgbackup vgname " after running this command to again generate the deleted conf files in /etc/lvmconf directory.

is the same command will be used to have the lost map files back in /etc/lvmconf?????

or how can i have all the conf and map files back in /etc/lvmconf if accidently deleted some of them.

my cluster in backend run command to start oracle db and sap instance. 2 nodes db and ap1. cluster switching is enabled. presently cluster is successfully running if switched to ap node and is run on db node giving lv related errors as unable to deactivate volume group xyz e.t.c e.t.c

regards,
adeel
4 REPLIES 4
Hasan  Atasoy
Honored Contributor

Re: map files in /etc/lvmconf, how to restore if lost???

hi adeel ,
for each vg you need to excute

vgexport -p -v -s -m /etc/lvmconf/vgname.map vgname


mathmad
Mike Shilladay
Esteemed Contributor

Re: map files in /etc/lvmconf, how to restore if lost???

Hi Adeel,

Sounds as though the service is not terminating all the processes associated with application, therefore not able to deactivate the logical volumes, causing you the problem.

Ensure that the service is terminating correctly and that all processes for the application sre stopped.

Mike.
Mridul Shrivastava
Honored Contributor

Re: map files in /etc/lvmconf, how to restore if lost???

you can try executing fuser command to check if there are users using those FS and if you are sure that application is not using those FS then fuser -k can be executed, normally this is part of package halt script.
Time has a wonderful way of weeding out the trivial
jaivinder
Frequent Advisor

Re: map files in /etc/lvmconf, how to restore if lost???

Hi Adeel,

To save the volume group map files you need to export the vg configuration to map files by using following command:

vgexport -p -s -m /tmp/vg_name.conf /dev/vg_name

thanks