Penguin

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

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

Newer page: version 16 Last edited on Wednesday, June 14, 2006 3:26:10 pm by CraigBox 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 
@@ -24,15 +33,15 @@
 First, run vgscan: 
  # vgscan 
  vgscan -- reading all physical volumes (this may take a while...) 
  vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created 
- vgscan -- WARNING: This program does not do a VGDA backup of your volume group[4] 
+ vgscan -- WARNING: This program does not do a VGDA backup of your volume group [4] 
  
 This creates a volume group descriptor area (VGDA) at the start of the disks. 
  # pvcreate /dev/sda4 
  pvcreate -- physical volume "/dev/sda4" successfully created 
  
-!Create a volume group (VG)[2] 
+!Create a volume group (VG) [2] 
  
 This volume group can contain multiple discs, but in this case it only uses one. 
  
  # vgcreate lvmarray /dev/sda4 
@@ -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. 
@@ -115,5 +128,5 @@
  
 [1] __PV__: Physical Volume; a disc or a partition on a disc. 
 [2] __VG__: Volume Group; a group of one-or-more physical volumes across which you get a "virtual disk", a space to create logical volumes in. 
 [3] __LV__: Logical Volume; something you eventually create an FS on. 
-[4] To create a __VGDA__ (Volume Group Descriptor Area) Backup use !vgcfgbackup(8) regularly  
+[4] To create a __VGDA__ (Volume Group Descriptor Area) backup, use !vgcfgbackup(8).