LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-22-2010, 01:13 PM   #1
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
How does one add drives to an existing LVM


I am trying to set up a system for an ftp server. I have one ide drive with base system installed. There are four sata drives installed which I tried to set up as LVM. After following the steps from another post. I managed to get LVM working but only with one of the sata drives. The sata drives show up as SDA, SDB, SDC, and SDD. only SDA is in the LVM. All are configured as 8e filetype.

Thanks for any help

Dan
 
Old 03-22-2010, 02:28 PM   #2
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Run 'pvcreate' on /dev/sdb1, /dev/sdc1, and /dev/sdd1

Then use vgextend to add them to your volume group:
Code:
vgextend YOUR_VG /dev/sdb1 /dev/sdc1 /dev/sdd1
I think

http://www.tldp.org/HOWTO/LVM-HOWTO/addpvstovg.html

Last edited by piratesmack; 03-22-2010 at 02:33 PM.
 
1 members found this post helpful.
Old 03-22-2010, 04:26 PM   #3
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
It seemed to accept thos commands ok (I got no errors) but I still only seem to have one drive in the LVM.

Thanks
 
Old 03-22-2010, 04:41 PM   #4
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by interndan View Post
It seemed to accept thos commands ok (I got no errors) but I still only seem to have one drive in the LVM.
Please give the output of command (run as root):

Code:
pvdisplay
 
1 members found this post helpful.
Old 03-23-2010, 08:22 AM   #5
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Sorry for the delay. Had to move to a more pressing problem. here is the output of pvdisplay:
Code:
 --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               ftp
  PV Size               233.76 GB / not usable 2.90 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              59841
  Free PE               0
  Allocated PE          59841
  PV UUID               mTz58H-AweV-FKat-wtOQ-go5V-FUnz-yk2zXH
   
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               ftp
  PV Size               233.76 GB / not usable 2.90 MB
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              59841
  Free PE               59841
  Allocated PE          0
  PV UUID               K2Gynw-2K1g-lAgF-lHqy-E4Nh-MuYm-qcSEas
   
  --- Physical volume ---
  PV Name               /dev/sdc1
  VG Name               ftp
  PV Size               233.76 GB / not usable 2.90 MB
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              59841
  Free PE               59841
  Allocated PE          0
  PV UUID               rZG0VG-gFBc-WPW0-hRJq-sZSW-k43n-s3ExmZ
   
  --- Physical volume ---
  PV Name               /dev/sdd1
  VG Name               ftp
  PV Size               233.76 GB / not usable 2.90 MB
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              59841
  Free PE               59841
  Allocated PE          0
  PV UUID               FJRMJb-32iK-mSDw-Xiq0-zCa4-bMsR-RuAHhm
[code]
 
Old 03-23-2010, 09:43 AM   #6
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Hello,

All your physical volumes (/dev/sda1, /dev/sdb1, /dev/sdc1 and /dev/sdd1) have been assigned to Volume Group "ftp". You could also have seen it by running:

Code:
vgdisplay
So I'm not sure what you meant when you said:

Quote:
I still only seem to have one drive in the LVM.
To which drive are you referring?

By the way, this presentation of LVM might be of interest to you: lvm2
 
Old 03-23-2010, 10:32 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I suspect that the steps you're missing are the
lvextend and the resize2fs (assuming you're using an ext fs)

LVM is not something to be taken lightly. I strongly suggest you read up on it, lest there be tears before bedtime.

BTW, I find the pvs and lvs commands to be the most succinct way of displaying a summary of lvm information.
 
1 members found this post helpful.
Old 03-23-2010, 10:55 AM   #8
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 484

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
The most important thing to remember is : the size of your filesystem must NEVER be greater than the size of your partition.
 
Old 03-23-2010, 12:53 PM   #9
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Question

I'm sure I'm probably missing several steps .
here is the output of pvs:
Code:
  PV         VG   Fmt  Attr PSize   PFree  
  /dev/sda1  ftp  lvm2 a-   233.75G      0 
  /dev/sdb1  ftp  lvm2 a-   233.75G 233.75G
  /dev/sdc1  ftp  lvm2 a-   233.75G 233.75G
  /dev/sdd1  ftp  lvm2 a-   233.75G 233.75G
and lvs:
Code:
  LV    VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  video ftp  -wi-ao 233.75G
I mounted the LVM at /home/video during installation. Right clicking on the /home/video folder in Thunar only shows ~ 233G available

Thanks for your help.

Last edited by interndan; 03-23-2010 at 12:55 PM.
 
Old 03-23-2010, 01:52 PM   #10
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
So you want your logical volume to use all the free space?
You can boot from a live cd (the Slackware install disk will also work) and do
Code:
vgscan --mknodes
vgchange -ay
lvextend -l +100%FREE /dev/ftp/video
resize2fs /dev/ftp/video #this is only for ext2/ext3/ext4
Read this for resizing other filesystems:
http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html

Last edited by piratesmack; 03-23-2010 at 02:00 PM.
 
1 members found this post helpful.
Old 03-23-2010, 04:05 PM   #11
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Thank you Thank You!! That did the trick.
Now how do I mark this thread solved?
 
Old 03-23-2010, 04:20 PM   #12
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Never mind, I figured it out.
 
  


Reply



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
Add 2 more drives to a existing software RAID1 jc_cpu Linux - Server 3 04-08-2009 12:49 AM
Add drives to existing array Adaptec 2400A kentc Linux - Hardware 1 01-23-2007 10:54 AM
RAID/LVM setup with existing drives juu801 Linux - General 3 07-06-2005 12:35 AM
Resize existing and add another partition with LVM donv2 Linux - Newbie 3 04-27-2005 04:23 AM
add unallocated free space to existing disk drives!! ajaymyeg Linux - Networking 1 07-21-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration