<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br>Thank you for your help , Frank. Actually, we have two drbd partition A using device /dev/vg01/share and partition B /dev/vg02/share, we also have two system Business A with partition A and Business B with partition B on the machine. In our design, we take A-A, B-B, when using this mode, config is right. But someone take A-B mode, the peer's device is wrong in configuration file. But everything is ok, A can sync to B, and with heartbeat every node can take-over, I am worrying about some risksabout drbd
in the future . (DRBD configuring is automated.) Can you explain it to me?<div>Thank you!<br><div id="divNeteaseMailCard"></div><br><pre><br>ÔÚ 2012-05-21 15:24:22£¬"Felix Frank" <ff@mpexnet.de> дµÀ£º
>Hi,
>
>On 05/21/2012 04:12 AM, ³Âéª wrote:
>> When I have not configure peer node, drbd service ask me to configure
>> peer, when I configure peer node, these keywords must be configured. I
>> think ip address meta disk of peer node is useful, but the device of
>> peer node is useless in configuration file, right?
>> [root@IVE151 ~]# service drbd start
>> /etc/drbd.d/r0.res:8: in resource r0, on IVE150 { ... }: 'disk' keyword
>> missing.
>> /etc/drbd.d/r0.res:8: in resource r0, on IVE150 { ... }: 'meta-disk'
>> keyword missing.
>> Starting DRBD resources: /etc/drbd.d/r0.res:8: in resource r0, on IVE150
>> { ... }: 'disk' keyword missing.
>> /etc/drbd.d/r0.res:8: in resource r0, on IVE150 { ... }: 'meta-disk'
>> keyword missing.
>> /etc/drbd.d/r0.res:8: in resource r0, on IVE150 { ... }: 'disk' keyword
>> missing.
>> /etc/drbd.d/r0.res:8: in resource r0, on IVE150 { ... }: 'meta-disk'
>> keyword missing.
>
>please just paste the config just as Dan specified to *both* nodes. That
>should work.
>
>The idea with the DRBD configs is to tell each node about the whole
>picture, and each node will pick the information it needs. That's why it
>can even work when each node sees a slightly different picture.
>But don't try tricking DRBD, because you will only confuse yourself.
>Just install the whole, working config on each of your nodes.
>
>HTH,
>Felix
>
>> At 2012-05-18 19:00:24,"Dan Barker" <dbarker@visioncomm.net
>> <mailto:dbarker@visioncomm.net>> wrote:
>>
>> The configurations SHOULD match to simplify maintenance, but server A
>> will completely ignore server B settings, and server B will completely
>> ignore server A settings. Your config is being read by the servers as:
>>
>>
>>
>> Host A:
>>
>> resource r0 {
>>
>> on ME {
>>
>> device /dev/drbd0;
>>
>> disk /dev/vg01/share;
>>
>> address 2.2.2.150:7788;
>>
>> meta-disk internal;
>>
>> }
>>
>> }
>>
>> and Host B is like this:
>>
>> resource r0 {
>>
>> on ME {
>>
>> device /dev/drbd0;
>>
>> disk /dev/vg02/share;
>>
>> address 2.2.2.151:7788;
>>
>> meta-disk internal;
>>
>> }
>>
>> }
>>
</pre></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>