LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-15-2010, 08:33 AM   #1
thandarsuresh
LQ Newbie
 
Registered: Oct 2010
Location: mumbai
Posts: 1

Rep: Reputation: 0
Smile how to split volume group


i have created two physical volumes, later added volume group to it and then created logical volume and formated the logical volume n mounted it on directory now now i wanted to split the volume group but am unable to do it.If i tries it error msg displayed as existing volume group is active and i have to inactive that volume group how to do it pls help?
 
Old 10-15-2010, 08:39 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
- ensure that all LV are unmounted
run lvs and look for o under the Attr column.
example: -wi-ao
example: -wi-a-
what you want is for the LVs in the VG you want to split to be like the 2nd example

- run vgchange -an <VolumeGroupName>
this will deactivate the VG that you want to split
you should then be able to proceed
 
Old 10-15-2010, 09:09 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
I'm not sure what you mean by "split a VG"; you can remove PVs from it and add PVs to it. Before removing a PV from a VG you have to move any LVs in it to (an)other PV(s) in the VG. The pvmove command can do that.
 
Old 10-15-2010, 05:19 PM   #4
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Quote:
Originally Posted by catkin View Post
I'm not sure what you mean by "split a VG"; you can remove PVs from it and add PVs to it. Before removing a PV from a VG you have to move any LVs in it to (an)other PV(s) in the VG. The pvmove command can do that.
While not directly stated, my assumption was thandarsuresh intends to use the vgsplit command which helps automate some of the steps that you are referring and retains the LV(s).

Quote:
Originally Posted by man 8 vgsplit
NAME
vgsplit - split a volume group into two

...

DESCRIPTION
vgsplit moves one or more physical volumes from SourceVolumeGroupName
into DestinationVolumeGroupName. The physical volumes moved can be
specified either explicitly via PhysicalVolumePath, or implicitly by -n
LogicalVolumeName, in which case only physical volumes underlying the
specified logical volume will be moved.

...
 
1 members found this post helpful.
Old 10-16-2010, 09:36 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Thanks rayfordj
 
  


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
Can't extend volume group flv7a Linux - General 13 09-14-2010 04:04 PM
About volume group error gulshan_jain33 Linux - Enterprise 2 04-03-2010 01:00 AM
[SOLVED] whether Volume Group is active or not ? vikas027 Linux - Enterprise 1 09-24-2008 10:18 PM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 12:26 PM
Volume Group Mirroring wendtbd Linux - Enterprise 3 09-26-2007 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration