2.4 series kernel

The 2.4 series kernel does not support the "device mapper" needed for LVM2. Unless your distributor provides a kernel with support included, it is necessary to compile a new kernel with support for LVM2. (LVM1 is supported in the 2.4 series kernel and has tools available in Debian stable, but it lacks many features of LVM2 and is not recommended.) You can find information about how to compile a new kernel on the LinuxHints/KernelBuilding and LinuxHints/KernelCompiling pages. To configure a 2.4 series kernel:

  1. Download the latest 2.4 kernel source from http://www.kernel.org/pub/linux/kernel/v2.4/

  2. Download the kernel patch from http://www.kernel.org/pub/linux/kernel/people/bero/2.4/

  3. Move both files to /usr/local/src.

  4. Untar the kernel source.
  5. Assuming a 2.4.25 kernel, apply the patch using the following command:

cd /usr/local/src/linux-2.4.25 && bzcat ../patch-2.4.25-pac1.bz2 | patch -p1
  1. Configure your kernel with which ever options you need. Be sure to include Device-mapper support in the Multi-device support (RAID and LVM) section.

  2. Build and install your kernel as normal.
  3. Reboot to your new kernel and watch for error messages.

2.6 series kernel

The 2.6 kernel has the Device Mapper feature built in, so you don't need to download or apply the kernel patch as you do for a 2.4 kernel. Your kernel configuration/build process will therefore look like this:

  1. Download the latest 2.6 kernel source from http://www.kernel.org/pub/linux/kernel/v2.6/

  2. Move the file to /usr/local/src.

  3. Untar the kernel source.
  4. Configure your kernel with which ever options you need. Be sure to include Device-mapper support in the Multi-device support (RAID and LVM) section.

  5. Build and install your kernel as normal.
  6. Reboot to your new kernel and watch for error messages.

LogicalVolumeManagement/ConfiguringTheKernel (last edited 2006-10-11 19:21:39 by 81)