>>>>> "JM" == Julio Merino <[EMAIL PROTECTED]> writes:
JM> Hi all, JM> I have now a currently working Potato system organized in simple JM> partitions as I posted in another message. Well, my question is about JM> how can I use LVM. JM> Can I convert my current installation structure in a LVM one ? Do I JM> have to reinstall all my system ? HOW ? JM> Potato install doesn't contemplates LVM. Hi, that´s the way I did it: I installed lvm deb [EMAIL PROTECTED]:~$ dpkg -l lvm Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii lvm 0.8i-3 The Logical Volume Manager for Linux Then I patched my Kernel 2.2.17 with patch-2.2.16-LVM-0.8i ( http://linux.msede.com/lvm/ ) linux-2.2.17-reiserfs-3.5.25-patch ( http://devlinux.com/projects/reiserfs/ ) and recompiled with lvm and reiserfs compiled in ( not as modules ). The I did a vgscan (after reboot), pvcreate on spare partitions ( I repartitioned a disk with parted to 500MB - Partitions, so I can reassign them to different volume groups), vgcreate and lvcreate, and copied my existing partitions to the new ones, e.g. # vgscan # pvcreate /dev/hdb[12345] # vgcreate root_vg /dev/hdb[12345] # lvcreate -L 1G -n usr_lv root_vg # mkreiserfs /dev/root_vg/usr_lv # mkdir /usr_new # mount -t reiserfs /dev/root_vg/usr_lv /usr_new # cd /usr # find . -print | cpio -dpm ../usr_new and also for all other partitions Then I edited /etc/fstab to point to the new partitions, rebooted and ready. The I pvreated the old partitions, added them to the right volume group, and pvmoved the /dev/hdb[12345] back to /dev/hdb. Here´s my mount - output: [EMAIL PROTECTED]:~$ mount /dev/hda1 on / type ext2 (rw,errors=remount-ro,errors=remount-ro) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/root_vg/var_lv on /var type reiserfs (rw) /dev/root_vg/usr_lv on /usr type reiserfs (rw) /dev/root_vg/home_lv on /home type reiserfs (rw) /dev/root_vg/tmp_lv on /tmp type reiserfs (rw) /dev/local_vg/local_lv on /usr/local type reiserfs (rw) /dev/local_vg/apt-mirror_lv on /usr/local/apt-mirror type reiserfs (rw) The / - partition can also be brought under lvm-control, but the you need to boot in a initial ramdisk before mounting the physical partiton on your HD. This system works without any hassles, and I moved and resized very much. I recommend using reiserfs, it does journaling, and comes up very fast after a power failure or cold reboot. If you have any questions, send me a mail. Here some konfiguration outputs: [EMAIL PROTECTED]:/home/cg# pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/hda10" of VG "local_vg" [500 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda11" of VG "local_vg" [500 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda12" of VG "local_vg" [500 MB / 476 MB free] pvscan -- ACTIVE PV "/dev/hda13" of VG "local_vg" [500 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda14" of VG "local_vg" [500 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda15" of VG "local_vg" [500 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda16" of VG "local_vg" [500 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda5" of VG "root_vg" [996 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda6" of VG "root_vg" [2.93 GB / 0 free] pvscan -- ACTIVE PV "/dev/hda7" of VG "root_vg" [996 MB / 0 free] pvscan -- ACTIVE PV "/dev/hda9" of VG "root_vg" [500 MB / 500 MB free] pvscan -- inactive PV "/dev/hdb1" is in no VG [502 MB] pvscan -- inactive PV "/dev/hdb2" is in no VG [502.03 MB] pvscan -- inactive PV "/dev/hdb3" is in no VG [502.03 MB] pvscan -- inactive PV "/dev/hdb5" is in no VG [502 MB] pvscan -- inactive PV "/dev/hdb6" is in no VG [502 MB] pvscan -- inactive PV "/dev/hdb7" is in no VG [502 MB] pvscan -- inactive PV "/dev/hdb8" is in no VG [502 MB] pvscan -- inactive PV "/dev/hdb9" is in no VG [619.66 MB] pvscan -- total: 19 [12.83 GB] / in use: 11 [8.79 GB] / in no VG: 8 [4.04 GB] [EMAIL PROTECTED]:/home/cg# lvscan lvscan -- ACTIVE "/dev/local_vg/local_lv" [1.95 GB] lvscan -- ACTIVE "/dev/local_vg/apt-mirror_lv" [1 GB] lvscan -- ACTIVE "/dev/root_vg/usr_lv" [2.73 GB] lvscan -- ACTIVE "/dev/root_vg/var_lv" [152 MB] lvscan -- ACTIVE "/dev/root_vg/home_lv" [1 GB] lvscan -- ACTIVE "/dev/root_vg/tmp_lv" [1012 MB] lvscan -- 6 logical volumes with 7.82 GB total in 2 volume groups lvscan -- 6 active logical volumes Greetings, Christoph