LVM2 rocks amazingly and now I have a 369GB /home partition
Tags: Linux, Tech
Code for the mentioned Ruby logic parser is here. More for my later convenience.
So I took the plunge and integrated my 300GB harddrive. Mostly while at school. I sshed onto Inferno and set up LVM on the new hard drive creating a /home and /opt directory (doom, quake and UT are all in opt and take a lot of space). I then copied over the current partitions to the new ones. Which took about 2.5 hours. Once that was done I unmounted the harddrives and mounted the logical volumes in their place. All was good.
Now for the fun. I set up the old harddisks as additional volumes and added them to my logical volume group. Then took my logical volumes down and ran resize_reiserfs on them. Voila, two more partitions integrated into them. Brought them back up no problem and, now, look:
haplo@inferno ~ $ df -h -T Filesystem Type Size Used Avail Use% Mounted on /dev/hda1 reiserfs 28G 8.5G 20G 31% / udev tmpfs 252M 220K 252M 1% /dev /dev/mapper/vg-opt reiserfs 30G 14G 17G 47% /opt none tmpfs 252M 0 252M 0% /dev/shm /dev/mapper/vg-home reiserfs 369G 82G 288G 23% /home
That should be sufficient for a while, or at least until I can afford more harddrives.
LVM is amazingly easy and awesomely powerful. The reference I used which was all I needed to do all this was The Gentoo LVM2 Installation Doc. The LVM commands are well thought out and easy to learn to use. Really good technology.




