1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
Logical Volume Manager Installation 02/10/1999
Installing this package will create various files in /sbin, /usr/man/man8
and an optional shared library in /lib.
You have to patch your kernel with the corresponding patch from the
subdirectory kernel-patches of this distribution.
1. Change to LVM/0.8/
2. If you don't have a kernel >= 2.2.10-ac2 (which already contains the
LVM driver) or have a kernel with the wrong LVM driver version,
choose the corresponding patch from <ftp://linux.msede.com/lvm/v0.8/>
or one of the mirrors (replace asterixes below with those of the
corresponding patch of your choice) and patch the kernel by
gzip -dc lvm-*.*.*-LVM.gz | ( cd /usr/src/linux; patch -p1)
3. cd to /usr/src/linux and configure LVM and loadable module support
if you like to load it as a module (see /usr/src/linux/README for
instructions) by "make config/menuconfig/xconfig" (whatever you prefer)
4. Build a new kernel
5. cd back to the LVM root (LVM/0.8/), edit make.tmpl and change
the TOP macro to the directory you untared LVM too
6. On SMP systems uncomment "MAKEFLAGS = -j2" in make.tmpl and change 2 too
the number of your cpus.
If you decide to link with the LVM archive library,
change tools/Makefile corresponding (see comment "Link decision")
Do a "make"
7. Do a "make install"
8. Omit this step if you choosed yes for LVM instead of module in "make config".
Put an "insmod lvm" into your startup script OR extend /etc/conf.modules by
alias block-major-58 lvm
alias char-major-109 lvm
to enable modprobe to load the LVM module (enable kerneld/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 keep in mind to have a lilo.conf, 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.
Please start with lvm(8).
If you like to remove the LVM software.
1. change directory to LVM/0.8
2. do a "make remove"
goto step 6 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
goto step 8 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
8. rebuild the kernel and reboot
|