Results 1 to 3 of 3

Thread: Specify LVM support for mkinitrd

  1. #1

    Default Specify LVM support for mkinitrd

    I have converted a SLES 10 SP1 installation from a physical machine to a Vmware virtual machine, and while doing this I also changed the root filesystem so it is now on an LVM volume.
    Everyting works fine, but when I do a kernel upgrade mkinitrd does not include support for LVM, so I have to manually run "mkinitrd -f lvm2" for it to add support.
    On other machines where I had LVM from the start this does not happen, so my question is, are there a file somewhere where mkinitrd reads the feature list from ?

  2. #2
    Join Date
    Jun 2008
    Location
    Frisco, TX
    Posts
    1,233

    Default Re: Specify LVM support for mkinitrd

    On Fri, 2008-10-31 at 07:46 +0000, ddelin wrote:
    > I have converted a SLES 10 SP1 installation from a physical machine to a
    > Vmware virtual machine, and while doing this I also changed the root
    > filesystem so it is now on an LVM volume.
    > Everyting works fine, but when I do a kernel upgrade mkinitrd does not
    > include support for LVM, so I have to manually run "mkinitrd -f lvm2"
    > for it to add support.
    > On other machines where I had LVM from the start this does not happen,
    > so my question is, are there a file somewhere where mkinitrd reads the
    > feature list from ?
    >
    >


    You can add it to /etc/sysconfig/kernel

    There's a variable in there for modules to add to the initrd.



  3. #3

    Default Re: Specify LVM support for mkinitrd

    Doesnt seem to work, I get this output

    WARNING Cannot determine dependencies of kernel module 'lvm2'.
    Does it exist? If it does, try depmod -a. Continuing without lvm2.

    On my machines that had LVM from the start, there is no "lvm2" in this file, however there is a "dm_mod", is that enough to get root LVM working.
    Im going to try on monday when back on work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •