- 論壇徽章:
- 16
|
4.6 Automatically Activating Non-Root LVM Volume Groups
Activation behavior for non-root LVM volume groups is controlled by parameter settings in the /etc/sysconfig/lvm file.
By default, non-root LVM volume groups are automatically activated on system restart by /etc/rc.d/boot.lvm, according to the setting for the LVM_VGS_ACTIVATED_ON_BOOT parameter in the /etc/sysconfig/lvm file. This parameter allows you to activate all volume groups on system restart, or to activate only specified non-root LVM volume groups.
To activate all non-root LVM volume groups on system restart, ensure that the value for the LVM_VGS_ACTIVATED_ON_BOOT parameter in the /etc/sysconfig/lvm file is empty (""). This is the default setting. For almost all standard LVM installations, it can safely stay empty.
LVM_VGS_ACTIVATED_ON_BOOT=""
To activate only a specified non-root LVM volume group on system restart, specify the volume group name as the value for the LVM_VGS_ACTIVATED_ON_BOOT parameter:
LVM_VGS_ACTIVATED_ON_BOOT="vg1"
By default, newly discovered LVM volume groups are not automatically activated. The LVM_ACTIVATED_ON_DISCOVERED parameter is disabled in the /etc/sysconfig/lvm file:
LVM_ACTIVATED_ON_DISCOVERED="disable"
You can enable the LVM_ACTIVATED_ON_DISCOVERED parameter to allow newly discovered LVM volume groups to be activated via udev rules:
LVM_ACTIVATED_ON_DISCOVERED="enable"
|
|