drbd9, sync new resource after node disconnection

mmenaz

Renowned Member
Jun 25, 2009
835
25
93
Northern east Italy
Hi, I've 2 nodes with drbd9 storage in a 3 node cluster, linked with a cross cable 10GB/s on nic card. I've noticed that if I disconnect the cable, and create a VM in one node, when I re-plug the cable the new "resource", i.e. "vm-106-disk-1", it's not replicated.
drbdsetup status shows it only in the first node, where has been created. Rebooting does not help.
This has become a BIG issue when I've lost the storage on node 2 and I had to remove it, recreate the lvm storage and re-add it from drdb storage, all the disk resources were not synched and, after a lot of tryies, I had to delete the vm and restore from backup.
Please help me :)
The situation was like:
Code:
root@prox01:~# drbdsetup status
.drbdctrl role:Secondary
  volume:0 disk:UpToDate
  volume:1 disk:UpToDate
  prox02 role:Secondary
  volume:0 peer-disk:UpToDate
  volume:1 peer-disk:UpToDate

vm-106-disk-1 role:Secondary
  disk:UpToDate

vm-107-disk-1 role:Secondary
  disk:UpToDate
root@prox01:~#

WHILE
root@prox02:~# drbdsetup status
.drbdctrl role:Secondary
  volume:0 disk:UpToDate
  volume:1 disk:UpToDate
  prox01 role:Secondary
  volume:0 peer-disk:UpToDate
  volume:1 peer-disk:UpToDate

root@prox02:~#
turning the VM on or manually setting the resource to "primary"
Code:
# drbdadm primary --force vm-106-disk-1
did nothing (even after some minutes)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!