Create needed partitions and set their type to 8e
this will create a physical volume containing the logical volume created before. A pysical volume may reside on different harddisks, containing lots of logical volumes, e.g in a RAID5
vgcreate deepspace /dev/hda6
this will create a volume group called "deepspace" on /dev/hda6
lvcreate -L60G -nhome deepspace
lvcreate -L15G -nvar deepspace
this creates two logical volumes with a size of 60GB resp. 15GB and the names "home" and "var" within the volume group "deepspace". Ignore the error message related to your CD drive.
If you want to fill the entire partition with your last volume to avoid unused diskspace, type the following two commands:
lvcreate -L120G -nvar deepspace
this is a ridiculous high number as the whole disk only contains approx. 80GB and you will get a message saying:
Insufficient free extends (2287) in volume group deepspace: 15360 required
The number in brackets shows the needed information as this is exactly the number of available extends left for the volume "var". Change the above command to
lvcreate -l2287 -nvar deepspace
and your harddisk is brimful with logical volumes
this will create the nodes in your /dev/
directory. In this case it looks like this:
ls -la /dev/deepspace
drwx------ 2 root root 80 2007-10-24 11:47 .
drwxr-xr-x 21 root root 14120 2007-10-24 11:47 ..
lrwxrwxrwx 1 root root 24 2007-10-24 11:47 home -> /dev/mapper/deepspace-home
lrwxrwxrwx 1 root root 24 2007-10-24 11:47 misc -> /dev/mapper/deepspace-var
Finally, activate your volumes before entering the Slackware setup:
2 logical volume(s) in volume group "deepspace" now active
The two volumes should appear in the setup's TARGET section as /dev/deepspace/home