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

Portal:Cloud VPS/Admin/Runbooks/DRBDOnlyOnePrimary

From Wikitech-static
< Portal:Cloud VPS‎ | Admin‎ | Runbooks
Revision as of 11:03, 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 = There seems to be 0 or more than 1 DRBD primaries, that might mean many things: * If there's 0 primaries -> the cluster is not working, and one of the nodes might have to be forced to become primary * If there's >1 primaries -> there's a split brain, one of the nodes should be stopped and rejoined as secondary = Debugging =...")
(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

There seems to be 0 or more than 1 DRBD primaries, that might mean many things:

  • If there's 0 primaries -> the cluster is not working, and one of the nodes might have to be forced to become primary
  • If there's >1 primaries -> there's a split brain, one of the nodes should be stopped and rejoined as secondary

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.