LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

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

Rep: Reputation: 0
LVM during Slackware setup


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

Code:
vgcreate deepspace /dev/hda6
this will create a volume group called "deepspace" on /dev/hda6

Code:
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:

Code:
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:

Code:
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

Code:
lvcreate -l2287 -nvar deepspace
and your harddisk is brimful with logical volumes

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

Code:
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:

Code:
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, 12:38 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,232

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

Eric
 
  


Reply


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 04:48 AM
Unable to Setup LVM for HTPC jroggow Slackware 0 05-21-2007 09:06 PM
Ubuntu/LVM Setup Problem Malibyte Linux - Software 1 02-05-2007 06:17 PM
New OS with a already setup LVM sendas Linux - Software 1 11-23-2006 06:10 PM
Hardware Raid Setup Question - LVM? funbags Linux - Hardware 0 11-13-2005 11:39 AM


All times are GMT -5. The time now is 03:09 AM.

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