Mounting a newly created LVM Group
Hi All
I've been banging my head against the wall with this one... I've recently rebuilt my server with three HDD's, 1x250GB and 2x1TB drives. What I'm trying to achieve is to have /boot, swap, /var and / mounted on the first drive (no problems there) and then have /home mounted on an LVM of the two 1TB drives, giving me a 2TB /home directory. Herein lies the problem... I've created a LVM group via system-config-lvm and it all looks good. I've given it the name "DSLVM01" and I can see it through the system-config-lvm GUI no problem at all. I then run "# fdisk -l" which looks good, here's the output: Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes Code:
PV VG Fmt Attr PSize PFree Code:
# mount /dev/DSLVM01 /home Code:
# find / -name DSLVM01 Code:
# Generated by LVM2 version 2.02.39 (2008-06-27): Tue Jul 28 13:02:14 2009 TIA, Simplified |
Hello simplified :)
You need to create a logical volume and then a file system on the LVM volume before you can mount it. See lvcreate and mkfs.ext3 (assuming you do want ext3). Good guides: http://tldp.org/HOWTO/LVM-HOWTO/ and http://dev.riseup.net/grimoire/storage/lvm2/. Physical volumes added to volume group out of which make logical volumes and then make file systems in the logical volumes. Best Charles |
Quote:
|
Quote:
I just wanted to say *big* thanks! Although I ended up doing all of this via the shell I did find that this was possible via system-config-lvm once you understood the terminology, so reading the howto on tldp was a *great* help! Cheers buddy! I only wish I could return the favour :D |
After creating physical volumes you should create volume groups and then create the logical volumes then format with any filesystem(ext2,ext3,vfat) and then only u can mount it to /home mount point after which it'll work properly..
|
Quote:
|
All times are GMT -5. The time now is 01:55 PM. |