Questions tagged [drbd]

DRBD is a Distributed Replicated Block Device. Developed by LinBit it is now part of the standard-linux-kernel. Regard it as RAID 1 across an IP-network using any type of block device. Normally only the "primary" side can write.

283 questions
4
votes
1 answer

DRBD LVM - backed vs. physical & LVM filter

We're experimenting with DRBD/pacemaker on top of an existing Debian 6 Encrypted RAID1 setup. We have one comparatively general and one comparatively specific question: 1) DRBD - backed vs. physical volume (general design option question) We want…
madog
  • 51
  • 2
  • 4
4
votes
5 answers

DRBD with MySQL

Question about using DRBD to provide HA for MySQL. I need to be sure that my backup MySQL instance is always going to be in a functional state when the failover occurs. What happens, for example, if the primary dies part way through committing a…
tdimmig
  • 283
  • 2
  • 6
4
votes
1 answer

Calculating DRBD Meta Size

I've read through the documentation provided at http://www.drbd.org/users-guide/ch-internals.html#s-meta-data-size to establish the DRBD meta size, but I'm struggling to correlate that to actual disk sizes and file system sizes. Is there a way that…
Fran
  • 332
  • 3
  • 8
4
votes
3 answers

Pacemaker corosync 2-node with a 3rd for quorum

I'm having trouble figuring out how to configure a 2-node setup with a third simpler one for quorum. It seems to think all the nodes have the capability to act as a full fallback node, when I only I want a quorum with STONITH working sanely for what…
Martti
  • 41
  • 1
  • 2
4
votes
2 answers

Xen DomU on DRBD device: barrier errors

I'm testing setting up a Xen DomU with a DRBD storage for easy failover. Most of the time, immediatly after booting the DomU, I get an IO error: [ 3.153370] EXT3-fs (xvda2): using internal journal [ 3.277115] ip_tables: (C) 2000-2006 Netfilter…
Halfgaar
  • 8,084
  • 6
  • 45
  • 86
4
votes
1 answer

Sync SSD to spindle drive using RAID or DRBD

I'm setting up a server with and SSD as the primary drive, and would like to duplicate the data onto a cheaper drive as a block-level backup (à la RAID1). Since I don't want to hobble the performance of the SSD I was considering setting up DRBD with…
tylerl
  • 15,055
  • 7
  • 51
  • 72
4
votes
1 answer

Ganeti and automatic failover

I'm building a simple 2-node cluster with Ganeti+DRBD... What is the recommended way to setup automatic failover? I'm used to Heartbeat, but they say it should be avoided with my setup.
Joril
  • 1,610
  • 1
  • 21
  • 28
4
votes
2 answers

SAN replication

My company has only a single storage box (SuperMicro hardware + chassis with a LSI raid card and 12 SAS 7.2k drive) in its current setup. It runs on linux and we hook it up to our fileserver via iSCSI. We can't afford a high-end SAN. While it has…
gostan
  • 53
  • 1
  • 3
4
votes
4 answers

DRBD on a disk with existing file system that takes all the place

I'm currently trying to simulate the environment via XEN. I have installed two debian systems with such FS layout: cltest1:/etc# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda2 6.0G 417M 5.2G 8% / tmpfs …
Karolis T.
  • 2,719
  • 7
  • 33
  • 45
4
votes
3 answers

Data loss due to MySQL DRBD Heartbeat failover script

Using DRBD version: 8.2.6 (api:88/proto:86-88) Here is the contents of /etc/ha.d/haresources db1 192.168.100.200/24/eth0 drbddisk::mysql Filesystem::/dev/drbd0::/drbd::ext3::defaults mysql and /etc/ha.d/ha.cf logfile …
Andy
  • 5,230
  • 1
  • 24
  • 34
4
votes
2 answers

Cannot write files into highly available NFS storage created with DRBD and Pacemake. (Permission denied error returned)

I am trying to set up a highly available NFS storage with DRBD and Pacemake (first time doing this), on 2 Fedora 38 VMs. My main guidance on this endeavor were these 2 docs: doc1 doc2 I've managed to start the pacemaker cluster and to mount the NFS…
Yonoss
  • 137
  • 5
4
votes
1 answer

Pacemaker cluster does not cleanly failover DRBD-resource (but does so manually)

I had to upgrade a cluster from Ubuntu 16.04. It did work fine on 18.04 and 20.04 but now on 22.04 it does not failover the DRBD-device. Putting the resource into maintenance mode and performing a manual drbdadm secondary/primary works instantly…
3
votes
1 answer

DRBDManage with Pacemaker on CentOS 7

I have 2 CentOS 7.6 nodes which I have configured with drbd, drbdmanage and pacemaker for active/passive failover. during a failure my vip and drbd service failover from primary to secondary the next node but I couldn't connect to drbdmanage to…
Sajirupee
  • 45
  • 1
  • 7
3
votes
0 answers

Reconnecting secondary node in shared-nothing active-passive DRBD cluster after secondary reboot

I'm using DRBD (config below) and tried to test reliability of the setup. I have rebooted secondary node (host1) and noticed it went into this state: host1: 0:r0/0 WFConnection Secondary/Unknown UpToDate/DUnknown host2: 0:r0/0 StandAlone…
LetMeSOThat4U
  • 1,371
  • 2
  • 17
  • 35
3
votes
1 answer

DRBD resources not coming back online - Pacemaker + Corosync

I am using DRBD for replication. For testing purpose I am using 2 VMs. I have noticed that if I disconnect network interface on a node then it moves to standalone, and after I reconnect it does not go back to connected or WFconnection mode. Is there…
bakasan
  • 103
  • 1
  • 11