LVM 0.9 Logical Volume Manager Installation 13/11/2000 Installing this package will create various files in /sbin, /usr/share/man/man8 and an optional shared library in /lib. If you don't have a stock kernel including LVM or you want to use a more recent LVM version than the one in the stock kernel you have to patch your kernel with the corresponding patch from . 1. Change to LVM/PATCHES 2. Choose the corresponding patch from here or or one of the mirrors (replace asterisks below with those of the corresponding patch of your choice) and patch your 2.2.17 kernel by cat linux-2.2.17-rawio.patch | ( cd /usr/src/linux; patch -p1) and either cat lvm-0.9-2.2.17-stock.patch | ( cd /usr/src/linux; patch -p1) or cat lvm-0.9-2.2.17-new_raid.patch | ( cd /usr/src/linux; patch -p1) "stock" supports Ingo Molnar's raid code in the stock 2.2.17 kernel. "new_raid" supports Ingo Molnar's new raid code for the 2.2.17 kernel. You can get it from or one of the kernel mirrors. In case of a 2.4.0-test10 kernel patch it by cat linux-2.4.0-test10-VFS-lock.patch | ( cd /usr/src/linux; patch -p1) cat lvm-0.9-2.4.0-test10.patch | ( cd /usr/src/linux; patch -p1) 3. cd to /usr/src/linux and configure LVM and loadable module support if you want to load it as a module (see /usr/src/linux/README for instructions) by "make config/menuconfig/xconfig" (whichever you prefer) 4. Build a new kernel 5. cd back to the LVM root (LVM/) and run the configure script 6. Do a "make" 7. Do a "make install" 8. Omit this step if you chose yes for LVM instead of module in "make config". Put an "insmod lvm-mod" into your startup script OR check/extend /etc/modules.conf (formerly /etc/conf.modules) for/by alias block-major-58 lvm-mod alias char-major-109 lvm-mod to enable modprobe to load the LVM module (don't forget to enable kmod). 9. Add a "vgscan" and a "vgchange -a y" to your startup files (/sbin/init.d/boot with SuSE for eg.) so that the actual volume group configuration is online after each reboot. Put a "vgchange -a n" into your shutdown script (/sbin/init.d/halt for eg.) after dismounting all filesystems. 10. Please remember to keep a lilo.conf entry which is configured to boot the previous kernel in case of an emergency! Reboot your machine. 11. read the ascii file LVM-HOWTO to go ahead using the LVM and read the manuals starting with lvm(8). If you want to remove the LVM software. 1. change directory to LVM/0.9 2. do a "make remove" go to step 6 below if you have a stock kernel already containing the LVM driver 3. save your /usr/src/linux/.config 4. delete and reinstall the kernel source tree 5. restore /usr/src/linux/.config 6. change directory to /usr/src/linux go to step 8 below if you have a stock kernel already containing the LVM driver 7. make oldconfig continue with step 9 8. make (menu|x)config # deselect LVM here 9. rebuild the kernel and reboot