LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Back up plan for san migration. lvmconvert--2 leg scenario. (https://www.linuxquestions.org/questions/linux-newbie-8/back-up-plan-for-san-migration-lvmconvert-2-leg-scenario-4175535876/)

PoleStar 03-05-2015 02:39 PM

Back up plan for san migration. lvmconvert--2 leg scenario.
 
Hello,

So I am going to move lvm from one san to anohter.
Its on CentOS 5.

so "lvm1" from "sanA" to "sanB"
I do

Code:

>lvconvert -m1 --corelog VG/lvm1  /dev/disk_on_sanB
check:
>lvmdisplay  -m
...
..
Logical volume lvm1_mimage_0
......
Logical volume lvm1_mimage_1

then I break the mirror, taking off lvm1 from old sanA
>lvconvert -m0 VG/lvm1  /dev/disk_on_sanA

At this point if some thing goes wrong, is there a way to bring back original lvm1(from sanA) back to the server ?

Thanks

PoleStar 03-06-2015 09:19 AM

I found the solution.

after you remove one leg( it was writing on 2 sans simultaneously) from old sanA

>lvconvert -m0 VG/lvm1 /dev/disk_on_sanA

do
Quote:

>vgsplit VG backVG /dev/disk_on_sanA
make it to lvm
>lvcreate -l992G -n backlvm1 backVG
At this point you can mount /dev/backVG/backlvm1 (from old san)


All times are GMT -5. The time now is 12:40 PM.