DRBD: Difference between revisions

From DWIKI
Line 13: Line 13:
*[https://docs.linbit.com/doc/users-guide-83/s-resizing/ Resizing resources]
*[https://docs.linbit.com/doc/users-guide-83/s-resizing/ Resizing resources]
*http://www.linux-ha.org/wiki/Main_Page
*http://www.linux-ha.org/wiki/Main_Page
*[https://www.howtoforge.com/drbd-8.3-third-node-replication-with-debian-etch DRBD 8.3 Third Node Replication (stacked)]
 
*[https://docs.linbit.com/doc/users-guide-84/s-configure-sync-rate/ Configure sync rate]
*[https://docs.linbit.com/doc/users-guide-84/s-configure-sync-rate/ Configure sync rate]
*https://serverfault.com/questions/740311/drbd-terrible-sync-performance-on-10gige
*https://serverfault.com/questions/740311/drbd-terrible-sync-performance-on-10gige
Line 22: Line 22:


*[[ Xen and DRBD ]]
*[[ Xen and DRBD ]]
=Stacked resources=
*[https://www.howtoforge.com/drbd-8.3-third-node-replication-with-debian-etch DRBD 8.3 Third Node Replication (stacked)]
*[https://www.suse.com/documentation/sle-ha-12/book_sleha/data/sec_ha_drbd_resource-stacking.html Resource stacking]


=Support=
=Support=

Revision as of 08:39, 26 April 2019

Distributed Replicated Block Device


Links

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


Stacked resources

Support

Tools

drbdadm

drbd-overview

drbdsetup

Docs

Recovery

GFS on DRBD


Cheatsheet

Make device primary

drbdadm primary yourdeviceID

or

drbdsetup /dev/drbdX primary -o


Grow resource

On both nodes:

lvextend -L+10G /dev/DRBD/myresource

On one node:

drbdadm resize myresource

FAQ

1: State change failed: (-2) Need access to UpToDate data

when you get that tryinng to make a node/resource primary, try

drbdadm primary drbdX --force


show resource sizes

lsblk

commands to show info

drbdmon
drbdtop


resolving split brain issues

diskless

You might try

drbdadm attach drbd0


sync is slow

Show current settings:

drbdsetup show


On secondary:

drbdadm disk-options --c-plan-ahead=0 --resync-rate=50M drbd0and 

and to reset after sync:

drbdadm adjust drbd0

show configuration

drbdsetup show


show more info

drbdsetup show-gi <minor-number>

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