Problems installing ubuntu 11.04 with native ZFS root

Darik Horn dajhorn at vanadac.com
Thu May 19 13:34:01 EDT 2011


On Wed, 2011-05-18 at 18:09 -0700, mfinifter wrote: 
> Any ideas as to what I'm doing wrong here?  I followed the
> instructions exactly multiple times, with the same result each time.
> Thanks in advance for any suggestions.

This can happen when the host kernel is a different variant than the
target kernel during installation.

For example, you boot into the LiveCD environment that has a -generic
kernel, but you install the -server or -virtual kernel in the chroot
environment.

Run `dkms status` in the installation target sometime after step 5.6 and
you should get this on Ubuntu Natty:

  spl, 0.6.0.14, 2.6.38-8-generic, x86_64: installed 
  zfs, 0.6.0.14, 2.6.38-8-generic, x86_64: installed 

If the spl or zfs modules are not in the "installed" state after step
5.6, then manually invoke dkms for the target kernel.  For example, if
you installed the -server kernel variant, then do this:

  # dkms add -m spl -v 0.6.0.14 -k 2.6.38-8-server
  # dkms build -m spl -v 0.6.0.14 -k 2.6.38-8-server
  # dkms install -m spl -v 0.6.0.14 -k 2.6.38-8-server

Repeat for the zfs module, and then create the initrd file:

  # update-initramfs -c -k 2.6.38-8-server

Verify that the zfs module is in the boot image:

  # gzip -dc /boot/initrd.img-2.6.38-8-server | cpio -it | grep zfs.ko
  lib/modules/2.6.38-8-server/updates/dkms/zfs.ko

HTH.



More information about the zfs-discuss mailing list