Storage preparation for an LVM shared storage
According to the Installing and configuring DRBD section in Chapter 4, Configuring a Proxmox VE Cluster, we have built an LVM volume with the /dev/sdc1
partition on both the Proxmox nodes to form our DRBD device. The /dev/sdc1
partition contains an LVM identifier on it as the LVM storage, and the LVM service tries to import it to the system; this might affect our DRBD mount point. It would be better to filter out this device to prevent any possible error by editing the /etc/lvm/lvm.conf
file on both cluster nodes. Before we make any change to the file, we should back up the file with the following command:
root@vmsrv01# cp /etc/lvm/lvm.conf /etc/lvm/lvm.conf.bak
Then, we can make the following changes:
Original: filter = ["a/.*/" ] New: filter = ["a|/dev/drbd1|", "r|/dev/sdc1|", "a/.*/" ]
In this example, we have defined the configuration, which is explained in the following points:
a|/dev/drbd1|
: This accepts LVM scanning on/dev/drbd1
r|/dev...