You are not logged in.
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
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.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline