Solved

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

Posted on 2016-09-01
4
78 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
  • 2
  • 2
4 Comments
 
LVL 77

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 77

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

947 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now