LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding to VFS volume????? (https://www.linuxquestions.org/questions/linux-newbie-8/adding-to-vfs-volume-297617/)

Giallo998 03-04-2005 10:18 AM

Adding to VFS volume?????
 
On my Gentoo 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


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