FS#2786 - Initscripts use /etc/lvmtab, lvm2 not

Attached to Project: Arch Linux
Opened by Julian Wiesener (yofuh) - Tuesday, 31 May 2005, 22:22 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

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

Closed by  Judd Vinet (judd)
Sunday, 05 June 2005, 19:44 GMT
Reason for closing:  Not a bug
Comment by Judd Vinet (judd) - Sunday, 05 June 2005, 19:44 GMT
Actually, the code goes like this:

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.

Loading...