...
Code Block |
---|
title | /etc/drbd.d/jtelshared.res |
---|
|
cat <<EOFF > /etc/drbd.d/jtelshared.res
resource jtelshared {
protocol C;
meta-disk internal;
device /dev/drbd1;
syncer {
verify-alg sha1;
}
net {
allow-two-primaries;
}
on acd-store1 {
disk /dev/sdb1;
address 10.4.8.71:7789;
}
on acd-store2 {
disk /dev/sdb1;
address 10.4.8.171:7789;
}
startup {
become-primary-on both;
}
}
EOFF |
Modify drbd options file
Edit /etc/drbd.d/global_common.conf and add the following option (caution, this section already exists):
Code Block |
---|
title | /etc/drbd.d/global_common.conf |
---|
|
options {
auto-promote yes;
} |
Create Metadata and start (Both Nodes)
...