Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-24-2007, 10:17 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 9

Rep: Reputation: 0
LVM during Slackware setup

Create needed partitions and set their type to 8e
cfdisk /dev/hda
pvcreate /dev/hda6
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.
Note: 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

vgscan --mknodes
this will create the nodes in your /dev/ directory. In this case it looks like this:

ls -la /dev/deepspace
insgesamt 0
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:

vgchange -ay
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 and /dev/deepspace/var

Happy slacking
Old 10-24-2007, 01:38 PM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,693

Rep: Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018
There is a README_LVM.TXT in the Slackware 12.0 DVD (and CDROM) root you know, which explains this procedure too.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm setup not recognized after upgrading OS juu801 Linux - Server 2 07-05-2007 05:48 AM
Unable to Setup LVM for HTPC jroggow Slackware 0 05-21-2007 10:06 PM
Ubuntu/LVM Setup Problem Malibyte Linux - Software 1 02-05-2007 07:17 PM
New OS with a already setup LVM sendas Linux - Software 1 11-23-2006 07:10 PM
Hardware Raid Setup Question - LVM? funbags Linux - Hardware 0 11-13-2005 12:39 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration