Skip to content

Commit

Permalink
Merge pull request #178 from appuio/doc/resize_node_disk
Browse files Browse the repository at this point in the history
Document procedure to resize OCP4 worker nodes on cloudscale.ch
  • Loading branch information
TheBigLee authored Jan 12, 2024
2 parents 1198e6e + 3203708 commit c8e9ab7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
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`
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
*** xref:oc4:ROOT:how-tos/cloudscale/add_node.adoc[]
*** xref:oc4:ROOT:how-tos/cloudscale/update_compute_flavors.adoc[Update compute flavors]
*** xref:oc4:ROOT:how-tos/cloudscale/remove_node.adoc[]
*** xref:oc4:ROOT:how-tos/cloudscale/increase-worker-node-disk.adoc[]
** Exoscale
*** xref:oc4:ROOT:how-tos/exoscale/remove_node.adoc[]
Expand Down

0 comments on commit c8e9ab7

Please sign in to comment.