1826446 Members
4177 Online
109692 Solutions
New Discussion

LVM for LINUX

 
yc_2
Regular Advisor

LVM for LINUX

Hi,

correct me if I'm wrong that LVM (logical volume manager) supports LINUX.

If so, where can I get a copied of it and is it free ?


Rgds,
YC
7 REPLIES 7
I_M
Honored Contributor

Re: LVM for LINUX

Hi

you must select some linux distribution with Kernel 2.4.
LVM should be included the distribution, but some distribution install program still don't support LVM at the initial install.

LVM in Linux distribution is free.

Enjoy
masanari iida
yc_2
Regular Advisor

Re: LVM for LINUX

Hi Masanari,

Which particular distribution of LINUX you have come across that supports LVM?


Rgds,
YC
Alexander M. Ermes
Honored Contributor

Re: LVM for LINUX

Hi there.
Versions :
SuSe 7.2 / 7.3
Mandrake 8
last version of Redhat
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Santosh Nair_1
Honored Contributor

Re: LVM for LINUX

I believe the Suse distribution has LVM built into it. Otherwise, you can download LVM from the following URL:

http://www.sistina.com/products_lvm.htm

This requires that you compile the LVM modules and utilities, but if you follow the instructions its fairly straight forward.

-Santosh
Life is what's happening while you're busy making other plans
Wodisch
Honored Contributor

Re: LVM for LINUX

Hello,

AFAIK, even Red Hat7.1 does include the LVM modules
in its kernel - they just do not deliver the commands...
SuSE does, of course :-)

HTH,
Wodisch
Michael Chan_3
Occasional Advisor

Re: LVM for LINUX

Does anyone knows if the command for LVM is included in RH7.2?

Thanks.
Albert P Tobey
Occasional Advisor

Re: LVM for LINUX

Well, here's a quick 'how to install for RH7.1' since this is what I've done at my site:

Install RH as normal, except with this partition layout (trust me):
sda1: 20MB Linux Native (/boot)
sda2: 512MB Linux Native (/)
sda3: remaining space - sda4 Linux Swap (swap)
sda4: 2 1/2 times RAM Linux Native (/usr)
Now this looks weird, but we're going to play a shell game with the partitions.
Once everything is installed, download the latest kernel (2.4.12 at time of writing) and the latest LVM from www.sistina.com. Configure LVM _first_ because it will generate a patch for the kernel. Patch the kernel, set it to include LVM support in the kernel (not a module).
Compile & install the LVM utilities and kernel (don't forget to edit /etc/lilo.conf) and reboot.

swapoff /dev/sda3
fdisk /dev/sda and change the partition ID of sda3 to '8e'

vgscan
pvcreate /dev/sda3
vgcreate vgroot /dev/sda3
lvcreate -L 1G -n lv_usr vgroot
mke2fs /dev/vgroot/lv_usr
init 1 (go into single-user)
umount /dev/sda4
mkdir /old
mount /dev/sda4 /old
mount /dev/vgroot/lv_usr /usr
cd /old
find . |cpio -pvd --preserve-modification-time /usr
cd ..
umount /dev/sda4
fdisk /dev/sda, change partition type of sda4 to '82' - swap
mkswap /dev/sda4
swapon /dev/sda4
edit /etc/fstab and change /usr and swap devices to our new ones (/dev/vgroot/lv_usr and /dev/sda4, respectively)

Rinse, Repeat for the rest of the volumes you want. I usually use reiserfs instead of ext2, but that's more than I want to write today. Also, I use a shell script for the creation of the volumes so I can build new systems/rebuild them easily and consistently.

Now, you ask, how do I initialize LVM on system boot?
A: the RH init scripts are all set up to initialize and activate LVM out of the box.