07-04-2013 03:49 AM
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
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?
Solved! Go to Solution.
07-04-2013 07:48 AM
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.
07-04-2013 11:56 AM
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