LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2010, 09:34 PM   #1
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Rep: Reputation: 9
how to partition an lvm


Is it possible to partition an LVM in two volumes.
So that one can be an ext4 filesystem and another can be swap.
 
Old 10-04-2010, 10:03 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: EndeavourOS
Posts: 650

Rep: Reputation: 79
yes, you can resize, add more space ,and add more partitions in lvm. Have a read here...

http://www.linuxconfig.org/Linux_lvm...Volume_Manager
 
Old 10-04-2010, 10:58 PM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Yes its possible, You create Volume Group that can multiple Physical volume(Disks) , and from a single Volume Group we can create multiple logical volume, one, two or many . Logical volume can be formatted using a file system and can be used accordingly.

Thanks
 
Old 10-05-2010, 01:32 AM   #4
solutionin
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
If you have a volume group having name vg_new and has 2GB of space then you may create the two partitions as:

create a logical volume "lv01" of size 400 MB

# lvcreate -L 400 -n lv01 vg_new


create a logical volume "lv02" of size 1 GB

# lvcreate -L 1000 -n lv02 vg_new
 
Old 10-05-2010, 06:47 AM   #5
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Original Poster
Rep: Reputation: 9
Ok if I want to break the LVM in an Volume Group to two file systems not creating two LVMs.
Then how should I proceed.
 
Old 10-05-2010, 07:05 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by jamesbon View Post
Ok if I want to break the LVM in an Volume Group to two file systems not creating two LVMs.
Then how should I proceed.
Sorry but not getting your question. Can you elaborate more?

Regards,
 
Old 10-05-2010, 07:41 AM   #7
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Seems you're confusing things... you should read this and this.

but here goes a round-up of a _very basic_ LVM installation:

* you partition your disk as usual with your favorite partition editor - fdisk, cfdisk, parted, whatever
* you pick the partition(s) you want to use for LVM, and change its type to 8e. That/those partition(s) will be your Physical Volume(s).
* then you create your Volume Group(s), using your previously created Physical Volumes.
So, as an example, you can create one VG for every PV, or create just one VG grouping all your PVs.
* then, you create Logical Volumes, inside your Volume Group.
the LVs will be your new "partitions", the chunks of disk you'll be formatting, mounting, and using for storage and such.


Anything left out? Feel free to correct.

Last edited by HasC; 10-05-2010 at 07:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shrinking a LVM partition AndyD236 Linux - General 4 11-18-2009 11:44 AM
Repair LVM partition megerdin Linux - Newbie 7 02-24-2009 08:30 AM
LVM partition usage ZAMO Linux - Server 3 11-17-2008 08:25 PM
Copy Contents of LVM Partition to Another Partition With a Different File System tmort Linux - General 3 03-07-2008 05:00 AM
Is it necessary to partition a drive in use w/ LVM? stgrob Linux - Enterprise 7 01-09-2008 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration