Operating System - HP-UX
1834769 Members
2927 Online
110070 Solutions
New Discussion

vg deactivated upon reboot

 
Peter Heinemann
Frequent Advisor

vg deactivated upon reboot


I get the following error during boot:
/dev/vg01/lv11 :
vxfs fsck: Cannot open /dev/vg01/lv11: No such device or address
vxfs fsck: Cannot open /dev/vg01/lv11: No such device or address

and similarly upon mount -a:
# mount -a
vxfs mount: Cannot open /dev/vg01/lv11: No such device or address

# mount -a
vxfs mount: Cannot open /dev/vg01/lv11: No such device or address
mount: /dev/vg00/lvol8 is already mounted on /home
mount: /dev/vg00/lvol7 is already mounted on /var
mount: /dev/vg00/lvol6 is already mounted on /usr
mount: /dev/vg00/lvol5 is already mounted on /tmp
mount: /dev/vg00/lvol4 is already mounted on /opt
mount: /dev/vg00/lvol1 is already mounted on /stand

After a vgchange, it's okay:
root@uaxprap2:/root
# vgchange -a y vg01
Activated volume group
Volume group "vg01" has been successfully changed.

root@uaxprap2:/root
# mount -a
mount: /dev/vg00/lvol8 is already mounted on /home
mount: /dev/vg00/lvol7 is already mounted on /var
mount: /dev/vg00/lvol6 is already mounted on /usr
mount: /dev/vg00/lvol5 is already mounted on /tmp
mount: /dev/vg00/lvol4 is already mounted on /opt
mount: /dev/vg00/lvol1 is already mounted on /stand

But with a reboot, the error returns. I've deleted and readded this VG.

Why is the vgchange -a y not being retained? Or are the "no such device" errors causing a deactivation?

The devices are SAN attached.

Thanks...
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: vg deactivated upon reboot

Judging from the output of your mount -a commands, I have to ask if vg01 is even in /etc/fstab.

Pete

Pete
Deshpande Prashant
Honored Contributor

Re: vg deactivated upon reboot

Hi
Check for "AUTO_VG_ACTIVATE" parameter in /etc/lvmrc file.

Thanks.
Prashant.
Take it as it comes.
Joaquin Gil de Vergara
Respected Contributor

Re: vg deactivated upon reboot

look at your /etc/lvmrc

is AUTO_VG_ACTIVATE set to 1?
Teach is the best way to learn
James R. Ferguson
Acclaimed Contributor

Re: vg deactivated upon reboot

Hi Peter:

Make sure that the volume group is being activated at boot time. If you are not running MC/ServiceGuard and want all volume groups activated at boot time, make sure:

AUTO_VG_ACTIVATE=1

...in '/etc/lvmrc'

Regards!

...JRF...
Tony Contratto
Respected Contributor

Re: vg deactivated upon reboot

Peter,

One thing to check would be /etc/lvmrc

There is a "AUTO_VG_ACTIVATE" variable at the top of the file. The default value is "1". If this is set to "0" you will need to add the vgchange command to activate the volume group to the "custom_vg_activation()" function defined further down in the file.

--
Tony
got root?
MANOJ SRIVASTAVA
Honored Contributor

Re: vg deactivated upon reboot

If the volue groups is not actiavated than check for /etc/lvmrc and set the AUOT_ACTIVATEVG to 1 or is it is set to 0 then u need to manually add the voulme groups u need to activate when the system erboots or comes up again.



Manoj Srivastava
Peter Heinemann
Frequent Advisor

Re: vg deactivated upon reboot


AUTO_VG_ACTIVATE it was. Thanks.

Mount was already in fstab.


Joaquin Gil de Vergara
Respected Contributor

Re: vg deactivated upon reboot

what says command

# ll /dev/*/group

thanks
Teach is the best way to learn