| Sv translation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CautionThis is an advanced topic. Use at your own risk and ALWAYS backup your data before. Useful CommandsView DRBD Status - DRBD 7
View DRBD Status - DRBD 9
Reload all parameters
Disconnect the share (useful for planned maintenance)
Down the share (useful for planned maintenance)
Up the share
Set the node to primary
Connect the share
PCS Cluster Commands (CentOS 8)
Split BrainBackgroundSee also: https://docs.linbit.com/doc/users-guide-84/s-resolve-split-brain/ Symptoms - CentOS 7 and earlier
cs:StandAlone means the node is not connected. This should be visible on both sides. Symptoms - CentOS 8 and earlier
The first command shows that DRBD is active on the first node, but not active on the second node. Note: this can be due to the second node being stopped or in standby. Find out which node is active in the PCS cluster - CentOS 7
In the example above, the first node is in standby. The most important thing to check, is on which server the resources are started. In this case, the resources are started on acd-store2. This will therefore be defined as the NON BROKEN node. Find out which node is active in the PCS cluster - CentOS 8
In the example above, the second node is offline. The most important thing to check, is on which server the resources are started. In this case, the resources are started on acd-lb1. This will therefore be defined as the NON BROKEN node. Standby the broken node in the PCS cluster (if necessary)This command can be run on either machine. CentOS 7
CentOS 8
On broken nodeNote: the first command will probably throw an error. Also, the share may not be mounted. This is OK.
On the healthy node
Check re-sync activityThe re-sync might take a long time. Watch the status of this using: cat /proc/drbdExample output:
Tune the transfer (Second Node) - Only CentOS 7.xCurrently there is no procedure for tuning the transfer on CentOS 8.x If the transfer is going to take ages, then tune it on the broken node:
Put broken node back to primary - CentOS 7.x ONLY
Restart PCS node
|
...
Untune the transfer (Second Node) - CentOS 7x onlyIf the transfer was tuned, then untune it (on the broken node) |
...
. Note: it won't hurt to run this command anyway.
|
...
Check everything
| Unstandby broken node
File System CorruptSometimes, when DRBD fails, the file system will also become corrupt. In this case both nodes might be primary, however neither will have the share mounted. The command mount /srv/jtel/shared will fail. In this case, it may be necessary to repair the file system. Symptoms
RepairingOne one of the nodes (need to choose one to become primary):
This should then mount and start the resources on that node. Then proceed with the other node as "broken" in the split brain situation. Stalled ResyncIf the DRBD resync stalls - the output will be "stalled" when cat /proc/drbd is executed - then it may be necessary to restart the machine. This has been observed once, and restarting resolved the situation. However not much more is known about this state, or the cause, at this time. Failed Connect (Unrelated data, aborting)When the secondary has been told to discard it's data, and all of the commands to start the sync have been entered on both the healthy and the broken node, sometimes cat /proc/drbd will not report a connection. Check /var/log/messages If you can see output like this:
Then the metadata has become corrupt. This requires that the metadata be completely reconstructed on the bad node. Use the following commands to recreate the data on the broken node:
Then proceed with the re-sync as above (start with the part "On the broken node" with the commands to place this in secondary and discard data. Failed Connect (Unknown Connection)This produces errors something like this:
In this case, drbd might not be loaded and enabled. Execute the following code on the broken node and then proceed as above:
|
| Sv translation | ||||||
|---|---|---|---|---|---|---|
| ||||||
|