DRBD: Difference between revisions

From DWIKI
No edit summary
Line 5: Line 5:
*[http://www.drbd.org/ Homepage]
*[http://www.drbd.org/ Homepage]
*[https://www.canarytek.com/2017/09/06/DRBD_NFS_Cluster.html DRBD + pacemaker + NFS, pretty good doc]
*[https://www.canarytek.com/2017/09/06/DRBD_NFS_Cluster.html DRBD + pacemaker + NFS, pretty good doc]
*http://www.securityandit.com/system/pacemaker-cluster-with-nfs-and-drbd/
*[https://docs.linbit.com/doc/users-guide-83/ch-pacemaker/ Integrating DRBD with Pacemaker clusters]
*[https://docs.linbit.com/doc/users-guide-83/ch-pacemaker/ Integrating DRBD with Pacemaker clusters]
*https://www.sebastien-han.fr/blog/2012/08/01/corosync-rrp-configuration/
*https://www.sebastien-han.fr/blog/2012/08/01/corosync-rrp-configuration/

Revision as of 09:01, 14 June 2018

Distributed Replicated Block Device


Links

See also: http://www.gluster.org/ and http://ceph.com/

Support

Tools

drbdadm

drbd-overview

drbdsetup

Docs

Recovery

GFS on DRBD


Cheatsheet

Make device primary

drbdadm primary yourdeviceID

or

drbdsetup /dev/drbdX primary -o

FAQ

resolving split brain issues

https://docs.linbit.com/doc/users-guide-83/s-resolve-split-brain/ https://www.sebastien-han.fr/blog/2012/04/25/DRBD-split-brain/

diskless

You might try

drbdadm attach drbd0


sync is slow

show configuration

drbdsetup show


update network settings

drbdsetup net-options 10.0.0.1 10.0.0.2  --sndbuf-size=2M


mount: unknown filesystem type 'drbd'

Usually means your node is not primary. If you're sure you know what you're doing you can use

mount -t ext4 /dev/drbd1 /drbdmount

reload configuration

drbdadm adjust all


show configuration of resource

drbdsetup /dev/drbd0 show


resource unknown

First try

drbdadm up resourcename

Command 'drbdmeta 1 v08 /dev/drbd0 internal apply-al' terminated with exit code 20

Most likely split brain issue, check dmesg etc