Solved

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

Posted on 2016-09-01
4
57 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 76

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 76

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
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…
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…

705 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

12 Experts available now in Live!

Get 1:1 Help Now