Welcome to the most active Linux Forum on the web.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 12-01-2010, 03:50 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 10

Rep: Reputation: 0
LVM migration

i need ur help plz on linux

i have
vg01 have 16 disk with 4 lv ( all lv stripped)
vg02 have 16 disk with 4 lv ( all lv mirror)
i want to restructure the volume groups

i want to add 4 disk to each vg
and move all logical volumes to these 4 disk
then vgreduce to move 16 disk out of vg
can i pvmove from 16 disk to 4 disk
for stripped lv
and for mirrored lv
what the procdure
and what the restrection

is it possible
i dont wana create new logical volumes
i want to keep the old one thats why i wana use pvmove
plus they have RHCS and service guard cluster on these redhat machine
they have
RHEL 5.4 5.3 5.1 4.7 and 3.6
is it possible
keeping same lv and using pvmove for striped lv or mirror lv
Old 12-07-2010, 04:55 PM   #2
LQ Newbie
Registered: Dec 2010
Location: The Netherlands
Distribution: Fedora, CentOS, RHEL and a few others
Posts: 8

Rep: Reputation: 1
A though one..

First of all, are all these LVM's running on LVM2?

Without going to all this hassle, I think there is a smarter way to deal with this.

The smartest way I think...

Add these 4 disks give them VG names like VG1 and so on for your needs (don't use the real names yet, if it is running on one machine you'll be lost) create LVM's with there real names and same size on these VG's (they have different VG names so it doesn't matter).

Use something like rsync or cpio -pudm (be careful with that used wrong it will destroy your data).
After you use lvrename to rename vg01 and vg02 to VG100 and so, then use vgrename to rename VG1 and so on to vg01 and vg02 VG names, if something went wrong you can always go back!!!

Your done and everything works? You can run lvremove, vgremove and pvremove to finally remove your harddisks, your downtime will be controllable, and I think it is the save way to deal with this issue. if you can bring the LVM's down one after the other you could use dd to get the data over from one LVM to the other.

If the LVM's can't go down for a long time keep on using rsync to keep the downtime to a minimum.

Last edited by robertSF; 12-07-2010 at 05:07 PM.


lvm, migration, rhel

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
LXer: Xen Live Migration Of An LVM-Based Virtual Machine With iSCSI On Debian Lenny LXer Syndicated Linux News 0 04-30-2009 05:12 PM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 06:15 AM
lvm and data migration Simon Bridge Fedora 3 07-17-2007 02:48 AM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 12:16 PM
LVM migration to regular volume Delta-9 Fedora 18 08-24-2006 01:25 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:13 PM.

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