You are not logged in.

#1 2010-07-22 00:19:54

RichardSantoro
Member
Registered: 2010-04-22
Posts: 29

Editing rc.sysint, removing Raid references

Hello,

I read in the wiki that editing rc.sysinit can improve the boot time.
I'm just curious about few lines :

# If necessary, find md devices and manually assemble RAID arrays
if [ -f /etc/mdadm.conf -a "$(/bin/grep ^ARRAY /etc/mdadm.conf 2>/dev/null)" ]; then
    status "Activating RAID arrays" /sbin/mdadm --assemble --scan
fi

if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
    if [ -x /sbin/lvm -a -d /sys/block ]; then
        # Kernel 2.6.x, LVM2 groups
        /sbin/modprobe -q dm-mod 2>/dev/null
        stat_busy "Activating LVM2 groups"
        /sbin/lvm vgchange --ignorelockingfailure -a y >/dev/null
        if [ $? -ne 0 ]; then
            stat_fail
        else
            stat_done
        fi
    fi
fi

I'm using a laptop (no raid), so i guess I can remove those lines. A i'm wrong? Is it really useful?

Offline

#2 2010-07-22 01:52:08

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Editing rc.sysint, removing Raid references

Well you've posted 2 separate items -- RAID and LVM.

If you don't have /etc/mdadm.conf (or it doesn't contain any ARRAY lines) then you'll only save a split-second in the execution of the 'if' statement.

As far as the LVM goes, again, if you don't have USELVM set to 'yes' or 'YES' in /etc/rc.conf then you'll only save a split-second in the execution of the 'if' statement.

Offline

Board footer

Powered by FluxBB