DRBD HA between 2 VM guests, between 2 vSphere nodes.
Posted on 2016-09-01
I've recently set up drbd to replicate logical volumes between two VM's. Machine 1 comes out of the box and installs around 5GB, even though max size is around 50GB for the logvols. When the 2nd VM comes on line, it syncs the data, whitespace and all, of the DRBD volumes even though thin disk provisioning is enabled. It makes sense as DRBD is writing empty blocks to VM2, whereas out of the box, the volumes only contain filled space. My question can be answered in two ways. Is there a way to make vSphere recognize the white space on VM2 and shrink the volume or is there a way to tell DRBD to ignore white space (thin provisioning on the linux DRBD volume level)?
VM1 - 5GB
VM2 - 50GB
Both have the same file system and contents, VM1 has the mounted file systems.
Thanks in advance!