From 7bc3323ab330db7933dcb0e4801886d914fefd85 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Tue, 14 Feb 2017 16:19:06 -0800 Subject: [PATCH] Add {% raw %} notation to a few codeblocks --- .../monitor-and-troubleshoot/troubleshoot-configurations.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot/troubleshoot-configurations.md b/datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot/troubleshoot-configurations.md index 7ed476ab0f..01a29bd7d4 100644 --- a/datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot/troubleshoot-configurations.md +++ b/datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot/troubleshoot-configurations.md @@ -88,6 +88,7 @@ The examples below assume you are logged in with ssh into a UCP manager node. ### Check the status of the database ```bash +{% raw %} # NODE_ADDRESS will be the IP address of this Docker Swarm manager node NODE_ADDRESS=$(docker info --format '{{.Swarm.NodeAddr}}') # VERSION will be your most recent version of the docker/ucp-auth image @@ -95,11 +96,13 @@ VERSION=$(docker image ls --format '{{.Tag}}' docker/ucp-auth | head -n 1) # This command will output detailed status of all servers and database tables # in the RethinkDB cluster. docker run --rm -v ucp-auth-store-certs:/tls docker/ucp-auth:${VERSION} --db-addr=${NODE_ADDRESS}:12383 db-status +{% endraw %} ``` ### Manually reconfigure database replication ```bash +{% raw %} # NODE_ADDRESS will be the IP address of this Docker Swarm manager node NODE_ADDRESS=$(docker info --format '{{.Swarm.NodeAddr}}') # NUM_MANAGERS will be the current number of manager nodes in the cluster @@ -109,6 +112,7 @@ VERSION=$(docker image ls --format '{{.Tag}}' docker/ucp-auth | head -n 1) # This reconfigure-db command will repair the RethinkDB cluster to have a # number of replicas equal to the number of manager nodes in the cluster. docker run --rm -v ucp-auth-store-certs:/tls docker/ucp-auth:${VERSION} --db-addr=${NODE_ADDRESS}:12383 --debug reconfigure-db --num-replicas ${NUM_MANAGERS} --emergency-repair +{% endraw %} ``` ## Where to go next