How do I change the node IP of DRBD?
This is my config:
resource data {
protocol C;
on server1 {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.56.101:7788;
meta-disk internal;
}
on server2 {
device /dev/drbd0;
disk /dev/sdb1;
address 192.168.56.103:7788;
meta-disk internal;
}
}
These are the steps I took:
- stop the drbd service on server1 and server2.
- change the IP of server2.
- change the hosts file.
- change the drbd config.
- start the DRBD service on server1 and server2.
And then I got some error such as diskless. So what's the correct step to change the IP and avoid data loss?