<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: Tahoma; COLOR: #000080; FONT-SIZE: 10pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.23536"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Digimer:</DIV>
<DIV> </DIV>
<DIV>Thanks very much. I'm going to try. </DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>Tian Zhiying</SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:lists@alteeve.ca">Digimer</A></DIV>
<DIV><B>Date:</B> 2013-12-24 10:37</DIV>
<DIV><B>To:</B> <A href="mailto:tianzy1225@thundersoft.com">tianzy1225</A>;
<A href="mailto:drbd-user@lists.linbit.com">drbd-user</A></DIV>
<DIV><B>Subject:</B> Re: [DRBD-user] Instead the bad drbd
server</DIV></DIV></DIV>
<DIV>
<DIV>On 23/12/13 09:24 PM, Tian Zhiying wrote:</DIV>
<DIV>> Hi</DIV>
<DIV>> Now I have a HA,the two server IP is :192.168.1.37 and</DIV>
<DIV>> 192.168.1.38,Virtual IP is 192.168.1.35, it use drbd store data, but</DIV>
<DIV>> one of the server(192.168.1.38)hardware error, I must instead it from</DIV>
<DIV>> new server(192.168.1.39), how can I config the new server's drbd?</DIV>
<DIV>> Thanks.</DIV>
<DIV>> ------------------------------------------------------------------------</DIV>
<DIV>> Tian Zhiying</DIV>
<DIV> </DIV>
<DIV>If you setup matching sized partitions on .39, then it should be fairly </DIV>
<DIV>simple. Update .37's resource configuration to point to .39 instead of </DIV>
<DIV>.38. Then copy /etc/drbd* from .37 over to .39, Use 'drbdadm create-md </DIV>
<DIV><res>' to setup the new DRBD resource backing device. Make sure that the </DIV>
<DIV>resources on .37 are in WFConnection state ('drbdadm attach <res>' if </DIV>
<DIV>they aren't) and then, on .39, run 'drbdadm connect <res>'.</DIV>
<DIV> </DIV>
<DIV>If it works well, you should be able to watch /proc/drbd and see that it </DIV>
<DIV>is sync'ing from .37 (.37 should show each resource in the connection </DIV>
<DIV>state "SyncSource" and the resource(s) on .39 should be in </DIV>
<DIV>"SyncTarget"). Once the sync completes, you data is safe again.</DIV>
<DIV> </DIV>
<DIV>If you have any specific trouble, share the details of your </DIV>
<DIV>configuration (distro/drbd/cluster stack details and versions). Config </DIV>
<DIV>files also help us understand your setup and thus offer better advice.</DIV>
<DIV> </DIV>
<DIV>good luck!</DIV>
<DIV> </DIV>
<DIV>PS - If you're concerned about the process, create a few VMs and </DIV>
<DIV>replicate the current state (create two VMs, set them us as you had </DIV>
<DIV>before, delete one of the VMs, create a new VM and walk through the </DIV>
<DIV>process of adding it to the previous VM). It's _always_ better to test </DIV>
<DIV>before trying anything on production systems.</DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Digimer</DIV>
<DIV>Papers and Projects: https://alteeve.ca/w/</DIV>
<DIV>What if the cure for cancer is trapped in the mind of a person without </DIV>
<DIV>access to education?</DIV></DIV></BODY></HTML>