FS#2786 - Initscripts use /etc/lvmtab, lvm2 not
|
Details
/etc/lvmtab is not longer used with lvm2 but still required
for activate lvm at boot. "-f /etc/lvmtab" should be
removed.
$ grep vgchange /etc/rc.* /etc/rc.shutdown: if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then /etc/rc.shutdown: /sbin/vgchange -a n /etc/rc.shutdown: /sbin/lvm vgchange --ignorelockingfailure -a n /etc/rc.sysinit: if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then /etc/rc.sysinit: /sbin/vgchange -a y /etc/rc.sysinit: /sbin/lvm vgchange --ignorelockingfailure -a y |
This task depends upon
if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then
# Kernel 2.4.x, LVM1 groups
stat_busy "Activating LVM1 groups"
/sbin/vgchange -a y
stat_done
elif [ -x /sbin/lvm -a -d /sys/block ]; then
# Kernel 2.6.x, LVM2 groups
stat_busy "Activating LVM2 groups"
/sbin/lvm vgchange --ignorelockingfailure -a y
stat_done
fi
fi
So the lvmtab check is only for LVM1. LVM2 does not require it, and LVM2 groups will be activated without its presence.