This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Developer
committed
May 27, 2018
1 parent
73c7b05
commit f3a42f5
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |