<!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>&nbsp;</DIV>
<DIV>Thanks very much.&nbsp;I'm&nbsp;going&nbsp;to&nbsp;try. </DIV>
<DIV>&nbsp;</DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>Tian Zhiying</SPAN></DIV>
<DIV>&nbsp;</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>&nbsp;<A href="mailto:lists@alteeve.ca">Digimer</A></DIV>
<DIV><B>Date:</B>&nbsp;2013-12-24&nbsp;10:37</DIV>
<DIV><B>To:</B>&nbsp;<A href="mailto:tianzy1225@thundersoft.com">tianzy1225</A>; 
<A href="mailto:drbd-user@lists.linbit.com">drbd-user</A></DIV>
<DIV><B>Subject:</B>&nbsp;Re: [DRBD-user] Instead the bad drbd 
server</DIV></DIV></DIV>
<DIV>
<DIV>On&nbsp;23/12/13&nbsp;09:24&nbsp;PM,&nbsp;Tian&nbsp;Zhiying&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;Hi</DIV>
<DIV>&gt;&nbsp;Now&nbsp;I&nbsp;have&nbsp;a&nbsp;HA,the&nbsp;two&nbsp;server&nbsp;IP&nbsp;is&nbsp;:192.168.1.37&nbsp;and</DIV>
<DIV>&gt;&nbsp;192.168.1.38,Virtual&nbsp;IP&nbsp;is&nbsp;192.168.1.35,&nbsp;it&nbsp;use&nbsp;drbd&nbsp;store&nbsp;data,&nbsp;but</DIV>
<DIV>&gt;&nbsp;one&nbsp;of&nbsp;the&nbsp;server(192.168.1.38)hardware&nbsp;error,&nbsp;I&nbsp;must&nbsp;instead&nbsp;it&nbsp;from</DIV>
<DIV>&gt;&nbsp;new&nbsp;server(192.168.1.39),&nbsp;how&nbsp;can&nbsp;I&nbsp;config&nbsp;the&nbsp;new&nbsp;server's&nbsp;drbd?</DIV>
<DIV>&gt;&nbsp;Thanks.</DIV>
<DIV>&gt;&nbsp;------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;Tian&nbsp;Zhiying</DIV>
<DIV>&nbsp;</DIV>
<DIV>If&nbsp;you&nbsp;setup&nbsp;matching&nbsp;sized&nbsp;partitions&nbsp;on&nbsp;.39,&nbsp;then&nbsp;it&nbsp;should&nbsp;be&nbsp;fairly&nbsp;</DIV>
<DIV>simple.&nbsp;Update&nbsp;.37's&nbsp;resource&nbsp;configuration&nbsp;to&nbsp;point&nbsp;to&nbsp;.39&nbsp;instead&nbsp;of&nbsp;</DIV>
<DIV>.38.&nbsp;Then&nbsp;copy&nbsp;/etc/drbd*&nbsp;from&nbsp;.37&nbsp;over&nbsp;to&nbsp;.39,&nbsp;Use&nbsp;'drbdadm&nbsp;create-md&nbsp;</DIV>
<DIV>&lt;res&gt;'&nbsp;to&nbsp;setup&nbsp;the&nbsp;new&nbsp;DRBD&nbsp;resource&nbsp;backing&nbsp;device.&nbsp;Make&nbsp;sure&nbsp;that&nbsp;the&nbsp;</DIV>
<DIV>resources&nbsp;on&nbsp;.37&nbsp;are&nbsp;in&nbsp;WFConnection&nbsp;state&nbsp;('drbdadm&nbsp;attach&nbsp;&lt;res&gt;'&nbsp;if&nbsp;</DIV>
<DIV>they&nbsp;aren't)&nbsp;and&nbsp;then,&nbsp;on&nbsp;.39,&nbsp;run&nbsp;'drbdadm&nbsp;connect&nbsp;&lt;res&gt;'.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If&nbsp;it&nbsp;works&nbsp;well,&nbsp;you&nbsp;should&nbsp;be&nbsp;able&nbsp;to&nbsp;watch&nbsp;/proc/drbd&nbsp;and&nbsp;see&nbsp;that&nbsp;it&nbsp;</DIV>
<DIV>is&nbsp;sync'ing&nbsp;from&nbsp;.37&nbsp;(.37&nbsp;should&nbsp;show&nbsp;each&nbsp;resource&nbsp;in&nbsp;the&nbsp;connection&nbsp;</DIV>
<DIV>state&nbsp;"SyncSource"&nbsp;and&nbsp;the&nbsp;resource(s)&nbsp;on&nbsp;.39&nbsp;should&nbsp;be&nbsp;in&nbsp;</DIV>
<DIV>"SyncTarget").&nbsp;Once&nbsp;the&nbsp;sync&nbsp;completes,&nbsp;you&nbsp;data&nbsp;is&nbsp;safe&nbsp;again.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If&nbsp;you&nbsp;have&nbsp;any&nbsp;specific&nbsp;trouble,&nbsp;share&nbsp;the&nbsp;details&nbsp;of&nbsp;your&nbsp;</DIV>
<DIV>configuration&nbsp;(distro/drbd/cluster&nbsp;stack&nbsp;details&nbsp;and&nbsp;versions).&nbsp;Config&nbsp;</DIV>
<DIV>files&nbsp;also&nbsp;help&nbsp;us&nbsp;understand&nbsp;your&nbsp;setup&nbsp;and&nbsp;thus&nbsp;offer&nbsp;better&nbsp;advice.</DIV>
<DIV>&nbsp;</DIV>
<DIV>good&nbsp;luck!</DIV>
<DIV>&nbsp;</DIV>
<DIV>PS&nbsp;-&nbsp;If&nbsp;you're&nbsp;concerned&nbsp;about&nbsp;the&nbsp;process,&nbsp;create&nbsp;a&nbsp;few&nbsp;VMs&nbsp;and&nbsp;</DIV>
<DIV>replicate&nbsp;the&nbsp;current&nbsp;state&nbsp;(create&nbsp;two&nbsp;VMs,&nbsp;set&nbsp;them&nbsp;us&nbsp;as&nbsp;you&nbsp;had&nbsp;</DIV>
<DIV>before,&nbsp;delete&nbsp;one&nbsp;of&nbsp;the&nbsp;VMs,&nbsp;create&nbsp;a&nbsp;new&nbsp;VM&nbsp;and&nbsp;walk&nbsp;through&nbsp;the&nbsp;</DIV>
<DIV>process&nbsp;of&nbsp;adding&nbsp;it&nbsp;to&nbsp;the&nbsp;previous&nbsp;VM).&nbsp;It's&nbsp;_always_&nbsp;&nbsp;better&nbsp;to&nbsp;test&nbsp;</DIV>
<DIV>before&nbsp;trying&nbsp;anything&nbsp;on&nbsp;production&nbsp;systems.</DIV>
<DIV>&nbsp;</DIV>
<DIV>--&nbsp;</DIV>
<DIV>Digimer</DIV>
<DIV>Papers&nbsp;and&nbsp;Projects:&nbsp;https://alteeve.ca/w/</DIV>
<DIV>What&nbsp;if&nbsp;the&nbsp;cure&nbsp;for&nbsp;cancer&nbsp;is&nbsp;trapped&nbsp;in&nbsp;the&nbsp;mind&nbsp;of&nbsp;a&nbsp;person&nbsp;without&nbsp;</DIV>
<DIV>access&nbsp;to&nbsp;education?</DIV></DIV></BODY></HTML>