LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 05-23-2011, 11:55 AM   #1
x201s
Member
 
Registered: Dec 2010
Posts: 67

Rep: Reputation: 0
command to add a volume in an existing LVM VolGroup


I created LVM partition when I had access to GUI. Now the GUI has been removed and I need to create a new volume out of what was left untouched in LVM. I don't know any command to create a volume out of existing volume group.

pvdisplay shows as follows:
Code:
--- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               439.45 GB / not usable 16.42 MB
  Allocatable           yes 
  PE Size (KByte)       32768
  Total PE              14062
  Free PE               3118
  Allocated PE          10944
the current volumes are:
Code:
/dev/mapper/VolGroup00-LogVolHome
/dev/mapper/VolGroup00-LogVolUsr
/dev/mapper/VolGroup00-LogVolTmp
/dev/mapper/VolGroup00-LogVolVar
I want to add
/dev/mapper/VolGroup00-LogVolData using the rest of the space of VolGroup00

How do I do that using command line?
 
Old 05-23-2011, 11:58 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

The command you need to create a logical volume is lvcreate. Look at the man page for specifications or have a look at this great guide to LVM for beginners.

Kind regards,

Eric
 
Old 05-25-2011, 03:56 AM   #3
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
Thank you, Eric.
 
Old 05-25-2011, 04:51 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

You're welcome. Have fun with Linux.

Kind regards,

Eric
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two LVM VolGroup's, same name, one is system disk - what to do? ffingers Linux - Hardware 11 05-12-2010 02:59 PM
[SOLVED] How does one add drives to an existing LVM interndan Slackware 11 03-23-2010 04:20 PM
mouting LVM. /dev/VolGroup and knoppix Tux Fedora 1 09-04-2006 10:43 PM
How to Add an Logical Volume from Volgroup post install gev_dv Linux - Software 1 03-01-2006 06:34 PM
Resize existing and add another partition with LVM donv2 Linux - Newbie 3 04-27-2005 04:23 AM


All times are GMT -5. The time now is 04:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration