Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Extend LVM2 Volume help please.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SqwkVFR
n00b
n00b


Joined: 19 Feb 2005
Posts: 20
Location: Kansas City, Kansas

PostPosted: Fri Mar 04, 2005 5:11 am    Post subject: Extend LVM2 Volume help please. Reply with quote

On my box that I use as a file /web / ftp server, I have 3 hds, and would like to use LVM to see them as one larger drive so I'm not constantly moving / matching files around, and so that I can add to the size at a later date. I found some basics for xfs / lvm2 when setting up mythtv, and have a Volume Group called "server" and a Logical Volume called "drive". Thus far, I have done the following and added the first partition to the LV.

pvcreate /dev/hda

vgcreate server -s 64 /dev/hda4

vgdisplay
Total PE = 1308

lvcreate -l 1308 server -n drive

mkfs.xfs /dev/server/drive

Now I have a bunch of stuff on the LV, and want to add my other two hds to the LV. From what I can find, I think that I need to do the following for each drive:

pvcreate /dev/hdb

vgextend server /dev/hdb

vgdisplay
note free PE

lvextend -L +[free PE] /dev/server/drive

xfs_growfs /server (/server is the mount point of the LV (/dev/server/drive))

Does this look correct to you guys?? Any of you lvm experts out there got any corrections or additions or suggestions? I really do not want to lose any of the data that is already on the LV. Thanks Nick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum