1830380 Members
2583 Online
110001 Solutions
New Discussion

Auto VG activation issue

 
clober-sj
New Member

Auto VG activation issue

I'm running SG 11.20 on HPUX 11.31 and I have two VG's that I do need mounted at boot time.

In /etc/lvmrc I set:

AUTO_VG_ACTIVATE=0

and updated:
custom_vg_activation()
{
/sbin/vgchange -a y -s /dev/vg00
/sbin/vgchange -a y -s /dev/vg_cla_99
parallel_vg_sync "/dev/vg00 /dev/vg_cla_99"

return 0
}

but upon reboot vg_cla_99 is not active:

# vgdisplay vg_cla_99
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg_cla_99".

Am I missing something?

The other VG's activate properly when the cluster package starts.

Full /etc/lvmrc attached.
5 REPLIES 5
Matti_Kurkela
Honored Contributor

Re: Auto VG activation issue

Look into /etc/rc.log to find the error message produced by the boot-time activation attempt.

What happens if you try to activate it manually?

Does vg_cla_99 have the cluster attribute set?

Cluster VGs cannot be activated that early in the boot sequence. Cluster VGs can be activated only after Serviceguard has started and the node has successfully joined the cluster.

MK
MK
clober-sj
New Member

Re: Auto VG activation issue

Thanks for your response.

The only related entry in /etc/rc.log is that the VG is not active and fails to mount the filesystems:

Mount file systems
Output from "/sbin/rc1.d/S100localmount start":
----------------------------
mountall: cannot mount /dev/vg_cla_99/var_opt_perfdata
mountall: diagnostics from mount
UX:vxfs mount: ERROR: V-3-20003: Cannot open /dev/vg_cla_99/var_opt_perfdata: No such device or address
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version

There is nothing regrading a boot-time activation attempt before that.



I can activate the VG manually with no problems and mount the filesystems.



The cluster attribute is not set on vg_cla_99.
Mel Burslan
Honored Contributor

Re: Auto VG activation issue

did you check /etc/rc.log right after the reboot and right after the vg fail to be activated. There has to be a reason why it fails. Maybe an invisible character in the lvmrc file, since you can activate it manually ? Just guessing here.
________________________________
UNIX because I majored in cryptology...
clober-sj
New Member

Re: Auto VG activation issue

Ok - I'll keep looking but at least it seems I have everything configured correctly. Thanks.
clober-sj
New Member

Re: Auto VG activation issue


With the help of HP support:

- vg_cla_99 is not mirrored so removed the -s
- removed the parallel_vg_sync function call
- remove the newline between the vgchange and return 0

custom_vg_activation()
{
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"

/sbin/vgchange -a y /dev/vg_cla_99
return 0
}

and it worked!