You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Portal:Cloud VPS/Admin/Runbooks/DRBDConnectedAndUpToDate

From Wikitech-static
< Portal:Cloud VPS‎ | Admin‎ | Runbooks
Revision as of 11:04, 19 July 2022 by imported>David Caro (Created page with "{{Cloud VPS nav}} = Overview = {{Remark|The procedures in this runbook require admin permissions to complete.|reminder}} = 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 curren...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

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.

Related information

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
Receive mail announcements about critical changes
Subscribe to the cloud-announce@ mailing list (all messages are also mirrored to the cloud@ list)
Track work tasks and report bugs
Use the Phabricator workboard #Cloud-Services for bug reports and feature requests about the Cloud VPS infrastructure itself
Learn about major near-term plans
Read the News wiki page
Read news and stories about Wikimedia Cloud Services
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.