Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th October 2008, 09:37 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,934
Logical Volume Management

Is anyone familiar with LVM? I've spent the last day or 2 scouring the web for information because I want to learn how this works. What I can't find or don't understand (or just plain over looked) is info that outlines the steps one needs to take once you physically add a hard disk to the system. What's first and what's second? Partition? Volume Group? Logical Volumes? I'm thinking that I need to partition the disk first, add a Volume Group, add Logical Volumes and then bring this new disk "online". Any thoughts? Any good links?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #2  
Old 14th October 2008, 04:49 AM
PilotJLR's Avatar
PilotJLR Offline
Registered User
 
Join Date: Nov 2005
Location: flying a cubicle
Posts: 465
This KB may help:
http://kbase.redhat.com/faq/FAQ_43_1372.shtm

But what you said is correct... in a nutshell, think of LVM like this:

Partitions are marked as physical volumes with pvcreate.
Physical volumes can then be added into a volume group. Think of the volume group as a big pool of storage (e.g. physical volumes).
From this volume group, you can then create logical volumes, which are basically virtualized partitions.

So just make a series of normal partitions with fdisk, mark those partitions are LVM in fdisk, then run pvcreate, then vgcreate, then lvcreate, and then apply a filesystem!

Hope this helps.
Reply With Quote
  #3  
Old 14th October 2008, 08:55 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,934
Thanks for the reply PilotJLR. So you think that I may be starting to get a grasp on this LVM concept? I'll have a look at the link you provided. Thank you.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #4  
Old 14th October 2008, 10:02 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
If you use a whole disk it does NOT even need to be partitioned.
Here I use sdb and create a /svr and a /mnt/bkup and later take a snapshot and tar /svr to /mnt/bkup.

#pvcreate /dev/sdb

#vgcreate VolGroup2010 /dev/sdb
#vgchange -a y

#lvcreate --size 5G --name LogVol2010svr VolGroup2010
#lvcreate --size 8G --name LogVol2010bkup VolGroup2010
#mkfs.ext3 /dev/VolGroup2010/LogVol2010svr
#mkfs.ext3 /dev/mapper/VolGroup2010-LogVol2010bkup

#mkdir /svr
#mount /dev/mapper/VolGroup2010-LogVol2010svr /svr
#mkdir /mnt/bkup
#mount /dev/mapper/VolGroup2010-LogVol2010bkup /mnt/bkup

#lvcreate --size 1G --snapshot --name LogVol2010snapsvr /dev/mapper/VolGroup2010-LogVol2010svr

mkdir /mnt/snapsvr
#mount /dev/mapper/VolGroup2010-LogVol2010snapsvr /mnt/snapsvr

cd /mnt/bkup
#tar -cj -f mybacksvr20081014 /svr ...

#cd /
#umount /mnt/snapsvr
#lvremove /dev/mapper/VolGroup2010-LogVol2010snapsvr

#umount /mnt/bkup


SJ
__________________
Do the Math
Reply With Quote
Reply

Tags
logical, management, volume

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logical Volume Management Help messinwu Using Fedora 3 21st September 2007 02:46 AM
Logical Volume Management error homey43 Using Fedora 2 20th June 2007 03:56 PM
Logical volume management Louis Mckay Installation and Live Media 3 11th July 2006 11:52 PM
Logical Volume Management screenshots Finalzone Fedora Core 4 Test 0 15th April 2005 09:13 PM


Current GMT-time: 12:48 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat