To keep things simple, we will assume that each server we prepare has a device named /dev/sdb for database storage. Follow these steps as root:
- Install the xfsprogs package with apt-get or yum.
- Install drbd-utils with apt-get on Debian-based systems, or drbd with yum on Red Hat derivatives.
- In the devices section of /etc/lvm/lvm.conf, change the filter setting so that it reads like so:
filter = [ "a|/dev/sd.*|", "a|/dev/drbd.*|", "r|.*|" ]
- In the devices section of /etc/lvm/lvm.conf, set this parameter to disable the caching of the write state:
write_cache_state = 0
- In the global section of /etc/lvm/lvm.conf, set this parameter to disable the caching of device metadata:
use_lvmetad = 0
- Remove the existing LVM cache ...