LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-22-2007, 02:59 PM   #1
wendtbd
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Question Volume Group Mirroring


We are in the process of moving to a new storage array and would like to mirror our current VG's to this new storage array.

So far I have been successful in establishing the mirrored VG's by extending the VG and then running the following command.

lvconvert -m1 vg00/<lvname>

Like I said this established the mirror properly. However I don't know how to break this mirror so I end up on the new disks.

I know to break this mirror I can run the above command again with a -m0 instead of an -m1 but that puts me back on the old disks.

Any information would be helpful,

Thanks
Barrett
 
Old 09-19-2007, 05:17 PM   #2
ech310n
Member
 
Registered: Jan 2004
Distribution: RHEL, Fedora
Posts: 46

Rep: Reputation: 16
What OS are you using here? I've never seen a Linux distro with support for LVM mirroring. The only platform I've seen this on is HP-UX...in which case you would use the commands like so...

lvextend -m1 /dev/vg00/lvol1 <new_pv>
lvreduce -m0 /dev/vg00/lvol1 <old_pv>
 
Old 09-20-2007, 07:26 AM   #3
wendtbd
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Original Poster
Rep: Reputation: 0
This functionality is the same with RHEL4/5 and it works fine.

What I can't figure out is how to split this mirror so I can utilize the new disks with which I created the mirror.

For example, I have disk A and I mirror to disk B. When I split the mirror I want to utilize disk B in the LV not disk A. I believe in HPUX our admins use the lvsplit command which is not available in RHEL....
 
Old 09-26-2007, 02:11 PM   #4
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Converting the LV back to "m0" will do the trick. I mean

#lvconvert m0 lvname

Once done simply re-create the disk partition on disk one and also make sure that you rescan your pv's.
 
  


Reply



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 03:04 PM
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 07:45 PM
see which partitions belong to which volume group kpachopoulos Linux - General 1 03-10-2007 05:52 AM
Does Anyone Know About The Hard Drive Volume Group harley51 Fedora 1 11-21-2004 07:13 PM
Hard Drive Volume Group harley51 Fedora 0 11-20-2004 07:26 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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