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 |
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 http://www.tldp.org/HOWTO/LVM-HOWTO/addpvstovg.html |
It seemed to accept thos commands ok (I got no errors) but I still only seem to have one drive in the LVM.
Thanks |
Quote:
Code:
pvdisplay |
Sorry for the delay. Had to move to a more pressing problem. here is the output of pvdisplay:
Code:
--- Physical volume --- |
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 Quote:
By the way, this presentation of LVM might be of interest to you: lvm2 |
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. |
The most important thing to remember is : the size of your filesystem must NEVER be greater than the size of your partition.
|
I'm sure I'm probably missing several steps :).
here is the output of pvs: Code:
PV VG Fmt Attr PSize PFree Code:
LV VG Attr LSize Origin Snap% Move Log Copy% Convert Thanks for your help. |
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 http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html |
Thank you Thank You!! That did the trick.
Now how do I mark this thread solved? |
Never mind, I figured it out.
|
All times are GMT -5. The time now is 01:12 AM. |