Penguin

Differences between version 15 and predecessor to the previous major change of LVMNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 15 Last edited on Friday, December 23, 2005 7:51:43 pm by BenCorley Revert
Older page: version 11 Last edited on Tuesday, May 24, 2005 11:49:45 am by CraigBox Revert
@@ -10,9 +10,18 @@
  
 At install time, create a small (<100mb) /boot, swap, and a reasonable (4-6gb) / partition. Leave the rest of the space unpartitioned. 
  
 Make sure LVM is compiled into your kernel, and you have the LVM tools installed. Debian 3 (woody): install lvm10. Debian Sarge/Sid: install lvm2. 
-Gentoo has lvm (1.01) and lvm2. 
+Gentoo has lvm (1.01) and lvm2. You may also need the device-mapper patch for 2.4.x kernels, available at ftp://sources.redhat.com/pub/dm/. From the LVM2 README.Debian:  
+  
+ LVM2 requires the device-mapper kernel module (dm-mod). This is  
+ available as a kernel patch for 2.4 (included as standard in  
+ current Debian 2.4 kernels), and is distributed with linux 2.5 and above.  
+  
+Apply the patch with something like  
+  
+ # patch -p1 /path/device-mapper.1.01.03/patches/linux-2.4.28-pre4-devmapper-ioctl.patch  
+  
  
 !Create a PV[1] partition on your drive 
  
  # fdisk /dev/sda 
@@ -75,8 +84,12 @@
  
  mount /dev/lvmarray/home /home 
  
 You will of course want to move everything from /home first, and add them to fstab(5) etc... To move your partitions, you'll probably want to be in runlevel 1. 
+  
+If you get an this error message with the above command:  
+ mount: special device /dev/lvmarray/home does not exist  
+then you may need to use "vgchange -ay" to activate the logical volumes. This can happen if you are booting to a LiveCD or have rebooted after creating the logical volumes.  
  
 !!Resizing logical volumes 
  
 Oops! Just created 20g /home, 5gb /var and 860mb /usr. So lets take 4gb from home and add it to usr.