Solved

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

Posted on 2016-09-01
4
127 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 78

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 78

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

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

734 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