LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
Search this Thread
Old 09-10-2009, 09:19 AM   #1
ilu_nishant
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Rep: Reputation: 1
how can increase my physical volume group space in linux


I have created a physical volume group with partitions /dev/sda{5,6}

#pvcreate /dev/sda{5,6}

Then I created volume group named VolGrp1 from this physical group

#vgcreate VolGrp1 /dev/sda{5,6}

Then I created a Logical Volm grp from this .

#lvcreate -L 50M -n LogGrp1 VolGrp1
#mke2fs -f /dev/VolGrp1/LogGrp1
#mount /dev/VolGrp1/LogGrp1 /data_LVM

Now I want to add 1 more partition to my physical Volume Grp i.e. /dev/sda7. How can I add this /dev/sda7 to my existing Phy. Volm Grp.

so that after adding this I can increase the space to my VolGrp1 by using
#vgextend VolGrp1 /dev/sda7 command ..Plz tell how can I achieve this without any data loss...

Thanks in advance..
 
Old 09-10-2009, 11:30 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
Code:
pvcreate /dev/sda7
vgextend VolGrp1 /dev/sda7
EDIT: any data on /dev/sda7 will be lost.


Last edited by rayfordj; 09-10-2009 at 11:32 AM.
 
Old 09-10-2009, 12:19 PM   #3
karlatLQ
Member
 
Registered: Sep 2009
Posts: 67

Rep: Reputation: 19
Have something similar, trying to add space the LV but instead of command line am using the LVM tool with FC11. See LV post. Agree with rayfordj that you will lose the data to the partition that you are adding. If you are concerned about data loss to the partitions that are already part of the LV, then you should do what I tell people to do all the time. Back up data. At least back up important data.

Last edited by karlatLQ; 09-10-2009 at 12:22 PM.
 
Old 09-12-2009, 01:41 PM   #4
ilu_nishant
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 1
Thanks

I'm able to add a new partition "/dev/sda7" to my existing physical volume and hence extended my Volume Group space too succesfully.

Yes , all data /dev/sda7 got lost while adding this new partition /dev/sda7 to physical volume but the data present in my existing Volume Group "VolGrp1" remains intact after extending space of Volume Group.

Issue resolved .. Thanks for the support.
 
  


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
How to find Physical Volumes associated with a Logical Volume Group mghiya Programming 3 09-27-2013 07:59 AM
Can I increase the size of a physical volume in an lvm group? If so, how? MikeB23930 Fedora 2 07-21-2009 05:38 PM
How to move an lvm2 volume group from one physical to another? shwouchk Linux - Software 2 10-29-2008 07:16 PM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM
LVM Problem - vgimport - wrong number of physical volumes to import volume group Anything1 Linux - Software 0 09-06-2003 07:18 PM


All times are GMT -5. The time now is 08:24 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