-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from appuio/doc/resize_node_disk
Document procedure to resize OCP4 worker nodes on cloudscale.ch
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
docs/modules/ROOT/pages/how-tos/cloudscale/increase-worker-node-disk.adoc
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,41 @@ | ||
= Increase disk of worker nodes | ||
|
||
|
||
|
||
[abstract] | ||
-- | ||
Steps to increase the disk of worker nodes on an OpenShift 4 cluster on https://www.cloudscale.ch/[cloudscale.ch]. | ||
-- | ||
|
||
== Starting situtation | ||
|
||
* You already have an OpenShift 4 cluster on cloudscale.ch | ||
* You have admin-level access to the cluster | ||
* You want to increase the disk space on worker nodes. | ||
|
||
== Prerequisites | ||
|
||
The following CLI utilities need to be available locally: | ||
|
||
* `commodore`, see https://syn.tools/commodore/running-commodore.html[Running Commodore] | ||
* `oc` | ||
|
||
== Increase node disk via terraform | ||
|
||
. In the tenant repo, set the parameter `openshift4_terraform.terraform_variables.worker_volume_size_gb` to the desired value. | ||
. Run Commodore to compile the Terraform manifests (should be done automatically via CI pipeline) | ||
. Run Terraform on the updated Terraform manifests (should be done automatically via CI pipeline, the apply stage may be triggered manually) | ||
|
||
|
||
== Increase the partition and filesystem on the worker nodes | ||
|
||
Once the Terraform pipeline ran through, the worker nodes should have the new disk size. | ||
However the partition and filesystem on the worker nodes need to be resized manually: | ||
|
||
For each worker node run the following commands: | ||
|
||
. `oc --as=cluster-admin -n syn-debug-nodes debug "node/<worker_node_name>"` | ||
. `chroot /host` | ||
. `lsblk` # Check which partition contains the `/sysroot` mountpoint. Usually this is `/dev/sda4` | ||
. `growpart /dev/sda 4` | ||
. `xfs_growfs /dev/sda4` |
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