February 2020
Intermediate to advanced
734 pages
38h 13m
English
For the purposes of this recipe, we will assume that the /dev/VG_DRBD/LV_DATA device already exists. The two PostgreSQL nodes for this example are named pg1 and pg2 and are located on the 10.0.30.0 subnet. Follow these steps as the root user on each server to add DRBD:
resource pg {
device minor 0;
disk /dev/VG_DRBD/LV_DATA;
meta-disk internal;
on pg1 {
address 10.0.30.101:7788;
}
on pg2 {
address 10.0.30.102:7788;
}
}
drbdadm create-md pg
systemctl enable drbd systemctl start drbd
drbdadm invalidate-remote pg
Read now
Unlock full access