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 drbd8-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 to read the following:
filter = [ "a|/dev/sd.*|", "a|/dev/drbd.*|", "r|.*|" ]
- In the devices section of /etc/lvm/lvm.conf, set these two options to completely disable any caching:
write_cache_state = 0 use_lvmetad = 0
- Remove the existing LVM cache file with the following command:
rm /etc/lvm/cache/.cache
- Execute the following command to validate our LVM ...