My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

Checking drbd status in SOC

This document (7022374) is provided subject to the disclaimer at the end of this document.

Environment

SUSE OpenStack Cloud 6

Situation

SUSE OpenStack Cloud deployment guide suggests the following command to check whether controller node deployed with drbd is in primary role:

systemctl status drbd
However the command doesn't say anything about the role status at all:

# /bin/systemctl status drbd
drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.
   Loaded: loaded (/usr/lib/systemd/system/drbd.service; enabled)
   Active: active (exited) since Tue 2016-07-19 10:38:45 CEST; 1 day 21h ago
 Main PID: 21014 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/drbd.service

Jul 19 10:38:44 cloud001 drbd[21014]: Starting DRBD resources: [
Jul 19 10:38:44 cloud001 drbd[21014]: create res: postgresql rabbitmq
Jul 19 10:38:44 cloud001 drbd[21014]: prepare disk: postgresql rabbitmq
Jul 19 10:38:44 cloud001 drbd[21014]: adjust disk: postgresql rabbitmq
Jul 19 10:38:44 cloud001 drbd[21014]: adjust net: postgresql rabbitmq
Jul 19 10:38:44 cloud001 drbd[21014]: ]
Jul 19 10:38:45 cloud001 drbd[21014]: WARN: stdin/stdout is not a TTY; using /dev/console.
Jul 19 10:38:45 cloud001 drbd[21014]: WARN: nothing stacked for this host (lpcloudp001), nothing to do in stacked mode!
Jul 19 10:38:45 cloud001 systemd[1]: Started DRBD -- please disable. Unless you are NOT using a cluster manager..

Resolution

In SOC6 use 'cat /proc/drbd' to discover the required information:

# /proc/drbd
version: 8.4.6 (api:1/proto:86-101)
GIT-hash: 833d830e0152d1e457fa7856e71e11248ccf3f70 build by abuild@sheep14, 2016-05-09 23:14:56
 0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
    ns:57813717 nr:0 dw:57813717 dr:8271982 al:1894 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
    ns:7647 nr:0 dw:7647 dr:4682 al:7 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0


On SOC7 use commands 'drbd-overview' or 'drbdadm status':

# drbd-overview
 0:postgresql/0  Connected(2*) Primar/Second UpToDa/UpToDa /var/lib/pgsql    xfs 7.0G 209M 6.8G 3%
 1:rabbitmq/0    Connected(2*) Primar/Second UpToDa/UpToDa /var/lib/rabbitmq xfs 7.0G 36M  7.0G 1%

# drbdadm status
postgresql role:Primary
  disk:UpToDate
  d52-54-00-78-2d-2e role:Secondary
    peer-disk:UpToDate

rabbitmq role:Primary
  disk:UpToDate
  d52-54-00-78-2d-2e role:Secondary
    peer-disk:UpToDate

Cause

Bug in documentation has been reported.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022374
  • Creation Date:23-NOV-17
  • Modified Date:23-NOV-17
    • NovellSUSE OpenStack Cloud

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center