vg automount (179 Views)
Reply
Regular Advisor
silusan
Posts: 136
Registered: ‎08-23-2011
Message 1 of 3 (179 Views)
Accepted Solution

vg automount

 

We set AUTO_VG_ACTIVATE=0 in /etc/lvmrc

Because of the above setting,

When we reboot a server..vg00 ofcourse will be mounted..

 

No additional VG, FS will be mounted

We need to mount non-VG00 VGs manually

 

hpux 11.31

 these are not shared vgS

 

What we would like to happen is :

 

Vg11 – disk11 – need to mount automatically upon reboot

Vg22 – disk22 – we dont want this to mount automatically upon reboot

Vg33 – disk33– we dont want this to mount automatically upon reboot

 

 

How can we achieve this?

Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,736
Registered: ‎06-21-2000
Message 2 of 3 (151 Views)

Re: vg automount

The /etc/lvmrc file contains a section for custom VG activation.  You can specify there to automatically activate your VG11.

 

If you look in the file you should see a section with a heading "custom_vg_activation()" and then some examples (commented lines) and a "return 0" statement.

 

Put your "vgchange -a y /dev/vg11" on a line right above the "return 0" statement.

Please use plain text.
Regular Advisor
silusan
Posts: 136
Registered: ‎08-23-2011
Message 3 of 3 (140 Views)

Re: vg automount

thank you very much

the VG I entered in /etc/lvmrc was auto activated upon reboot

the other VGs remain un activated

 

This worked even for secondary swapVG (I entered this information too in lvmrc file)

 

secondary swap VG got auto activated and secondary swap was ON automatically after the reboot

 

thanks again

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation