Score:6

Force one drbd node to StandAlone

bd flag

I need to take a box that is part of 2-node DRBD cluster offline for hardware servicing.

How do I force the primary (the other?) DRBD node to StandAlone so that I can turn the other node down?

Just turn it off? Is it safe to do that?

Score:5
kz flag
  1. Stop DRBD

$drbd -stop

  1. Gracefully shutdown Linux

$shutdown -h now

bd flag
Thank you, but I left one thing out of the question - can I take the other node offline *without* stopping entire drbd resource? I mean, if a node fails physically, that's just what happens, so DRBD has to have some way of making that happen?
Score:0
jm flag
Dok

Just turning it off is perfectly safe. Depending upon how things are setup it should be gracefully stopped (including a disconnect) either via a cluster resource manager, or a systemd unit, init script, etc.

If you do truly want to disconnect it before powering it off just issue a drbdadm disconnect <resource> to instruct DRBD to stop the connection and listener.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.