Re: Disabling LVM check/startup on FC2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This doesn't even work ;)

So if there any way to proceed?

On Sun, 2004-05-23 at 19:30, Optimized wrote:
> 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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux