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.
$drbd -stop
$shutdown -h now
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.