All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Migrate to kernel 2.6 and lvm2 with root fs on lvm1
@ 2004-03-28 18:17 Kjartan Reynir Hauksson
  2004-04-01 19:38 ` Luca Berra
  0 siblings, 1 reply; 3+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-03-28 18:17 UTC (permalink / raw)
  To: linux-lvm





I've written earlier on the same subject but never got it resolved so I'm
going to give it another go since my desktop constantly stalls on me with
my 2.4 kernel.  I'm now running MDK 10.0 with
kernel24-tmp-2.4.25-2.tmp.1mdk rpm package from Thomas Backlund.  This
kernel seems to get me a bit further then my previous attempts since it
boots a dm enabled kernel (I don't know which lvm I'm running 1 or 2
though, I'm assuming 1 because it tells me it shuts down lvm1 when i halt
my system). Now according to the LVM2 faq I am supposed to edit the lvm
start sequence in my startup script. I assume that the startup script being
reffered to is /etc/rc.sysinit and currently looks like this:

# LVM initialization
if [ -f /etc/lvm/lvm.conf -a -x /sbin/lvm2 ]; then
    grep -q -s 'device-mapper' /proc/devices /proc/misc || modprobe dm-mod
>/dev/null 2>&1

    if grep -q -s 'device-mapper' /proc/devices /proc/misc; then
        if [ -c /dev/.devfsd ]; then
            _vgscan_cmd=/bin/true
        else
            _vgscan_cmd="/sbin/lvm2 vgmknodes"
        fi
        _vgchange_cmd="/sbin/lvm2 vgchange -a y"
    fi
fi

if [ -z "${_vgscan_cmd}" -a -f /etc/lvmtab ] ; then
    [ -e /proc/lvm ] || modprobe lvm-mod >/dev/null 2>&1

    if [ -e /proc/lvm -a -x /sbin/lvm1-vgchange ]; then
        _vgscan_cmd="/sbin/lvm1-vgscan"
        _vgchange_cmd="/sbin/lvm1-vgchange -a y"
    elif [ -e /proc/lvm -a -x /sbin/vgchange ]; then
        _vgscan_cmd="/sbin/vgscan"              will read
'_vgscan_cmd="/sbin/devmap_mknod.sh; /sbin/vgscan" after edit.
        _vgchange_cmd="/sbin/vgchange -a y"
    fi
fi

if [ -n "${_vgscan_cmd}" ]; then
    action "Setting up Logical Volume Management:" ${_vgscan_cmd} &&
${_vgchange_cmd}
fi

Let me know if the edit is correct so I don't hose my system.

Now after this I reboot the system and should be running lvm2 and can then
reboot into Backlund's kernel-tmp-2.6.4-1.tmb.5.mdk-1-1mdk right ?
Do I have to create a new initrd image ?
Do I understand the process correctly or am I about to mess everything up ?
Please let me know.

Regards
-Kjartan Reynir Hauksson

---------------------------------------------------------------------------------------------------

Kjartan Reynir Hauksson
Kerfisstj�ri
Orkustofnun
S�mi: 569-6027/863-5912
e-mail: krh@os.is
--------------------------------------------------------------------------------------------------


http://www.os.is/disclaimer.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-14 16:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-28 18:17 [linux-lvm] Migrate to kernel 2.6 and lvm2 with root fs on lvm1 Kjartan Reynir Hauksson
2004-04-01 19:38 ` Luca Berra
2004-04-14 16:13   ` Kjartan Reynir Hauksson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.