Operating System - HP-UX
1837041 Members
2240 Online
110111 Solutions
New Discussion

lv's not mounting on reboot

 
SOLVED
Go to solution
Yvonne Butler
Regular Advisor

lv's not mounting on reboot

I have a volume group /dev/vg01 on an individual disk in a disk array which is not shared, it is static to one N-class server. On reboot vg01 is not activated and therefore the lv's (/dev/vg01/lvoptomni & /dev/vg01/lvvaroptomni) are not mounted. If I manually run "vgchange -a y /dev/vg01" the volume group activates and I can then manually mount the logical volumes and all is fine and well.

I've checked the /etc/fstab which has entries for both lv's. I've also checked lvmtab, also correct. I still have to activate vg01 and manually mount the lv's when rebooting this server.

Oh, the server is patched to June 2002....

Any ideas anyone?
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: lv's not mounting on reboot

Check your file /etc/lvmrc. I suspect this is part of an MC/SG cluster and thus AUTO_VG_ACTIVATE=0.

Add
vgchange -a y /dev/vg01
to the custom_vg_activation function and you should be all set.
If it ain't broke, I can fix that.
Sebastian Galeski_1
Trusted Contributor

Re: lv's not mounting on reboot

check file /etc/lvmrc
MANOJ SRIVASTAVA
Honored Contributor

Re: lv's not mounting on reboot

The problem lies in /etc/lvmrc , I think auto_activat_vg flag is set to 0 and only the root volume group is specified , all you ahve to do is either to cahnge the flag to 1 or add the volume group vg01 . Just view that fiel and you will get to know ehat you ahve to do.


Manoj Srivastava
Uday_S_Ankolekar
Honored Contributor

Re: lv's not mounting on reboot

Well,

Since you have checked thethe /etc/fstab file and patch level I only doubt you may be running service guard.
If so, then the AUTO_VG_ACTIVATE flag is set to 0 in /etc/lvmrc and you need to add the vgchange -a y to this
-Goodluck
-USA..
Good Luck..
Yvonne Butler
Regular Advisor

Re: lv's not mounting on reboot

THANKS everyone - it now works perfectly....
PIYUSH D. PATEL
Honored Contributor

Re: lv's not mounting on reboot

Hi,

If you have MCSG loaded then, check the /etc/lvmrc file and check for AUTO_VG_ACTIVATE=0 string.

Or else you can try :

Export this vg01 and import it to vg04 and try.

#vgexport /dev/vg01

Create a new volume group /dev/vg04 ( vg04 should not exist )

#mkdir /dev/vg04
#mknod /dev/vg04/group c 64 0x04000

# vgimport /dev/vg04 /dev/dsk/c1t2d0

# vgchange -a y /dev/vg04

# mount /dev/vg04/lvoptomni /mount_dir
# mount /dev/vg04/lvvaroptomni
/mount_dir

Change the entries in /etc/fstab also.

Piyush