mount vg after reboot

 
SOLVED
Go to solution
Michael Bluemm
Frequent Advisor

mount vg after reboot

Hi sysadmins,
after reboot I have to mount the storage manually:
vgchange -a y vg06
mount /dev/vg06/lvol1 /fd6
mount /dev/vg06/lvol2 /fd7

Which entries in which files do I have to edit, that this happens automatically? HP-UX 11.00

Thank you,
Michael
... still trying ...
7 REPLIES 7
Peter Godron
Honored Contributor
Solution

Re: mount vg after reboot

Michael,
are you sure the syntax is not:
vgchange -a y /dev/vg06

The data is held in /etc/fstab.
Also check the AUTO_VG_ACTIVATE=1 in /etc/lvmrc

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
Michael Bluemm
Frequent Advisor

Re: mount vg after reboot

Hi Peter, good idea;
my entry in /etc/lvmrc:
AUTO_VG_ACTIVATE=0

I will change it to "1" and test it after the next reboot (points later).

/etc/fstab:
/dev/vg06/lvol1 /fd6 vxfs delaylog 0 2
/dev/vg06/lvol2 /fd7 vxfs delaylog 0 2

right like that?

Thank you,
Michael


... still trying ...
Peter Godron
Honored Contributor

Re: mount vg after reboot

Michael,
how are you getting on with this ?

Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
Michael Bluemm
Frequent Advisor

Re: mount vg after reboot

Hi Peter,
here's my answer to your question:
"I will change it to "1" and test it after the next reboot (points later)." (I didn't reboot yet).

What about my question about the right syntax of the /etc/fstab?

Thank you and be patient,
Michael
... still trying ...
Patrick Wallek
Honored Contributor

Re: mount vg after reboot

Your /etc/fstab syntax looks fine.

Is this machine part of an MC Service Guard cluster? Was it part of a cluster in the past? If it is/was, then that would explain the /etc/lvmrc file.
Michael Bluemm
Frequent Advisor

Re: mount vg after reboot

Hi Patrick,
yes, we have a MC-Cluster.
Happy easter, Michael
... still trying ...
Patrick Wallek
Honored Contributor

Re: mount vg after reboot

OK, then you really don't want to set AUTO_VG_ACTIVATE to 1. One of the requirements of MC/SG is to have AUTO_VG_ACTIVATE set to 0.

What you can do however is modify the 'custom_vg_activation' section of the /etc/lvmrc file.

In that section add a line: '/sbin/vgchange -a y /dev/vg06'

That will cause vg06 to be activated and your filesystems mounted when the system boots.

Here's a snippet from one of my clustered systems:

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

return 0
}