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

* Re: [linux-lvm] Migrate to kernel 2.6 and lvm2 with root fs on lvm1
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Berra @ 2004-04-01 19:38 UTC (permalink / raw)
  To: LVM general discussion and development, krh

Kjartan Reynir Hauksson wrote:

> 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
Mdk 10 supports LVM1 and LVM2 seamlessly with kernel 2.4 and LVM2 with 
kernel-2.6.
you don't have to edit initscripts or do any other modifications by hand
you only have to be sure you install the lvm2 package.

Then you either:
- install kernel 2.6 and an initrd that supports lvm2 will be created
- run /sbin/mkinitrd again against your 2.4 kernel telling it to use lvm2

you can remove the lvm1 package afterwards.
(you can even switch between lvm1 and lvm2 if you want)

Let me know if you have problems.

-- 
Luca Berra -- bluca@comedia.it

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

* Re: [linux-lvm] Migrate to kernel 2.6 and lvm2 with root fs on lvm1
  2004-04-01 19:38 ` Luca Berra
@ 2004-04-14 16:13   ` Kjartan Reynir Hauksson
  0 siblings, 0 replies; 3+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-04-14 16:13 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

True, it worked with Mandrake's 2.6.3 kernel.  So basically if anyone 
want's to upgrade from Mandrake 9.2 to 10.0 with root filesystem on lvm1 
this is what I did.
Point urpmi main to a Mandrake 10.0 repository
do 'urpmi --auto-select' which upgrades to Mandrake 10.0 packages
do 'urpmi lvm2'
do 'urpmi kernel-2.6.3-7mdk' to install a new kernel
reboot and select the new kernel during bootup to test the new kernel.

Thanks to Luca for making it so easy :)
-Kjartan




>>Kjartan Reynir Hauksson wrote:
>> 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
>Mdk 10 supports LVM1 and LVM2 seamlessly with kernel 2.4 and LVM2 with 
>kernel-2.6.

>Luca Berra wrote:
>you don't have to edit initscripts or do any other modifications by hand
>you only have to be sure you install the lvm2 package.
>
>Then you either:
>- install kernel 2.6 and an initrd that supports lvm2 will be created
>- run /sbin/mkinitrd again against your 2.4 kernel telling it to use lvm2
>
>you can remove the lvm1 package afterwards.
>(you can even switch between lvm1 and lvm2 if you want)
>
>Let me know if you have problems.
>
>-- 
>Luca Berra -- bluca@comedia.it



^ 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.