Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
added lab for resetting node
Browse files Browse the repository at this point in the history
  • Loading branch information
Developer committed May 27, 2018
1 parent 73c7b05 commit f3a42f5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
29 changes: 29 additions & 0 deletions reset_node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Removing a node
In this lab you will reset a node in the Openshift Cluster.

## Run the following command to mark the node as unschedulable:
$ oc adm manage-node <node> --schedulable=false

## Run the following command to shut down Docker and the atomic-openshift-node service:
$ systemctl stop docker atomic-openshift-node

## Run the following command to remove the local volume directory:
$ rm -rf /var/lib/origin/openshift.local.volumes

## Remove the /var/lib/docker directory:
$ rm -rf /var/lib/docker

## Run the following command to reset the Docker storage:
$ docker-storage-setup --reset

## Run the following command to recreate the Docker storage:
$ docker-storage-setup

## Recreate the /var/lib/docker directory:
$ mkdir /var/lib/docker

## Run the following command to restart Docker and the atomic-openshift-node service:
$ systemctl start docker atomic-openshift-node

## Run the following command to mark the node as schedulable:
$ oc adm manage-node <node> --schedulable=true

0 comments on commit f3a42f5

Please sign in to comment.