Solved

DRBD HA between 2 VM guests, between 2 vSphere nodes.

Posted on 2016-09-01
4
138 Views
Last Modified: 2016-10-14
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!
0
Comment
Question by:choward16980
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 79

Expert Comment

by:arnold
ID: 41780949
Drbd is a low level, media level replication, it copies/replicates bits it has no consept of files.
0
 
LVL 16

Author Comment

by:choward16980
ID: 41782260
Still, isn't an emtpy block predictable enough to just set a marker instead of writing that empty block?
0
 
LVL 79

Accepted Solution

by:
arnold earned 500 total points
ID: 41782317
Drbd is a mirroring/cloning mechanism. I am not sure what you are after, often VMs on the same system would not use drbd but would have access to a space served by the host.
0
 
LVL 16

Author Closing Comment

by:choward16980
ID: 41844322
There is no way to do what I've asked, so I will award points for Arnold's efforts.  The best solution is to minimize the size of the partitions and grow them accordingly.  DRBD only sees blocks, so a 20 GB partition with 1 GB of data will sync 20GB to a secondary node even if the disk is thin provisioned.  Bummer...
0

Featured Post

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A look into Log Analysis and Effective Critical Alerting.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question