Jump to content

Obsolete:Portal:Data Services/Admin/Runbooks/DRBDConnectedAndUpToDate

From Wikitech
The procedures in this runbook require admin permissions to complete.

Error / Incident

This means that one or more of the DRBD hosts is not connected, or they are not up to date with the other one (there's lag on the replication).

This means that the secondary will not be able to replace the primary and we will lose data if the primary goes away.

Debugging

You can go to both of the nodes and see the current drbd status by running:

root@labstore1005:~# cat /proc/drbd
version: 8.4.7 (api:1/proto:86-101)
srcversion: F7D2F0C9036CD0E796D5958

1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate B r-----
   ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0

3: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate B r-----
   ns:0 nr:385762660 dw:385762660 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
4: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate B r-----
   ns:0 nr:1229421488 dw:1229421488 dr:1471404 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0

This is how it should look if it runs ok, you can see that there's 3 drbd resources, all connected, for with this node is Secondary and the remote node is Primary, and both of them are UpToDate.

For more info check Portal:Data_Services/Admin/Shared_storage#DRBD

Common issues

Add here any issues you might encounter.

Support contacts

Communication and support

Support and administration of the WMCS resources is provided by the Wikimedia Foundation Cloud Services team and Wikimedia movement volunteers. Please reach out with questions and join the conversation:

Discuss and receive general support
Stay aware of critical changes and plans
Track work tasks and report bugs

Use a subproject of the #Cloud-Services Phabricator project to track confirmed bug reports and feature requests about the Cloud Services infrastructure itself

Read stories and WMCS blog posts

Read the Cloud Services Blog (for the broader Wikimedia movement, see the Wikimedia Technical Blog)

Old incidents

Add here any phabricator tickets to incidents you might have.