Disabling LVM check/startup on FC2
Optimized
mail at optimized.org
Sun May 23 17:30:27 UTC 2004
Hello,
My FC2 system is installed on linux raid volume but I have no use for
LVM.
I would like to disable the lvm check on system startup since it always
fails, how should I proceed in order to make it clean?
I thought about commenting (#) the following section of the
/etc/rc.sysinit file :
...
# LVM2 initialization
if [ -x /sbin/lvm.static ]; then
if ! LC_ALL=C fgrep -q "device-mapper" /proc/devices 2>/dev/null ;
then
modprobe dm-mod >/dev/null 2>&1
fi
/bin/rm -f /dev/mapper/control
echo "mkdmnod" | /sbin/nash --quiet >/dev/null 2>&1
[ -n "$SELINUX" ] && restorecon /dev/mapper/control
if [ -c /dev/mapper/control -a -x /sbin/lvm.static ]; then
if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then
action $"Setting up Logical Volume Management:" /sbin/lvm.static
vgchange -a y && /sbin/lvm vgmknodes
fi
fi
fi
# LVM initialization
if [ -f /etc/lvmtab ]; then
[ -e /proc/lvm ] || modprobe lvm-mod > /dev/null 2>&1
if [ -e /proc/lvm -a -x /sbin/vgchange ]; then
action $"Setting up Logical Volume Management:" /sbin/vgscan &&
/sbin/vgchange -a y
fi
fi
# Start up swapping.
...
But maybe there is a better way to do so?
Many thanks for your time and help
More information about the users
mailing list