3. Extending disk size for nodes in Kubernetes Cluster on HI GIO Portal

3. Extending disk size for nodes in Kubernetes Cluster on HI GIO Portal

Overview

  • Step-by-step guide on how to increase the disk capacity of each node in the cluster to meet growing storage needs.

  • No downtime.

Procedure

  1. Pre-requisites:

  • Make sure oVDC has an available storage quota.

  • Make sure you can access the node (ssh, node-shell…)

 

  1. Procedure:

Step 1: Log in to HI GIO portal > Virtual Machines > Select the node you want to extend disk size > Hard Disks > EDIT

image-20241206-065631.png

Step 2: Enter new disk size >SAVE

image-20241209-024055.png

Step 3: SSH to the node and run the commands below to expand the disk on the OS.

  • Check root mount point:

    df -h

eg. /dev/sda4

image-20241209-024339.png
  • Run the commands below to extend the capacity for /dev/sda4

echo 1 > /sys/block/sda/device/rescan growpart /dev/sda 4 resize2fs /dev/sda4
image-20241209-024931.png
  • Run command to verify disk size after expansion

fdisk -l
image-20241209-025104.png

 

End.