[DRBD-user] Changing server's IP's

Marcelo Pereira marcelops at gmail.com
Fri Mar 9 17:37:23 CET 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello guys,

I have been facing a problem with a server who can't sync at all due to
network issues. The NIC (two Intel e1000e) is showing several errors and is
being dropped off. Sometimes at the primary node, sometimes at the
secondary. It will not sync.

I have an unused NIC on both servers, and I would like to use them instead.
What should I do to move the configuration from one set of IP's to another??

So, that is my current /etc/drbd.conf:

global { usage-count no; }
resource pdc0 {
  protocol C;
  startup { wfc-timeout 0; degr-wfc-timeout 120; }
  disk { on-io-error detach; } # ACK!
  net { cram-hmac-alg "sha1"; shared-secret "xxxxxxx"; }
  syncer { rate 10M; verify-alg sha1; }
  on node0 {
    device /dev/drbd0;
    disk /dev/sdb;
    address *192.168.69.1*:7788;
    meta-disk internal;
  }
  on node1 {
    device /dev/drbd0;
    disk /dev/sdc;
    address *192.168.69.2*:7788;
    meta-disk internal;
  }
}

And that is what it should be after:

global { usage-count no; }
resource pdc0 {
  protocol C;
  startup { wfc-timeout 0; degr-wfc-timeout 120; }
  disk { on-io-error detach; } # ACK!
  net { cram-hmac-alg "sha1"; shared-secret "xxxxxxx"; }
  syncer { rate 10M; verify-alg sha1; }
  on node0 {
    device /dev/drbd0;
    disk /dev/sdb;
    address *10.0.0.1*:7788;
    meta-disk internal;
  }
  on node1 {
    device /dev/drbd0;
    disk /dev/sdc;
    address *10.0.0.2*:7788;
    meta-disk internal;
  }
}

Is it enough to just change the /etc/drbd.conf on both servers? What is the
exact procedure? I'm using DRBD v8.2.6.

Thanks,
Marcelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20120309/80714fc9/attachment.htm>


More information about the drbd-user mailing list