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

## <mark style="color:green;">**Overview**</mark> <a href="#overview" id="overview"></a>

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

## <mark style="color:green;">**Procedure**</mark> <a href="#procedure" id="procedure"></a>

**I. Pre-requisites:**

* Make sure oVDC has an available storage quota.
* Make sure you can access the node (ssh, node-shell…)

**II. Procedure:**

{% stepper %}
{% step %}
**Step 1:** Log in to HI GIO portal > Virtual Machines > Select the node you want to extend disk size > **Hard Disks** > **EDIT**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F7Ct2RAJGq3BdGEbHcJ6X%2Fimage.png?alt=media&#x26;token=209e7188-80e6-4ac6-8901-aab085f87854" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 2:** Enter new disk size >**SAVE**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FsawrU5LoiPrKXElHpNwi%2Fimage.png?alt=media&#x26;token=cfe7ac9a-1dc4-4132-a21d-21e130b5a375" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**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`

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FrI9qhHuSzX31iy3Rh2dr%2Fimage.png?alt=media&#x26;token=a806ba12-1a6d-443a-8d38-72fb5902715d" alt=""><figcaption></figcaption></figure>

* 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
```

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FfbYpoaRCLKMkOuQZlXtb%2Fimage.png?alt=media&#x26;token=cb94c3c7-62e2-40ba-af7b-8beab09a2b8a" alt=""><figcaption></figcaption></figure>

* Run command to verify disk size after expansion

<pre><code><strong>fdisk -l
</strong></code></pre>

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FtTqDgxZwm2Ocj8zvmklG%2Fimage.png?alt=media&#x26;token=d6f4caae-26b0-4b69-8ebd-dc3cf1931565" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
