# 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="/files/2xCOy5IdVta95gcGRPSH" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="/files/JBlvJhucToBnJdSsDyB4" 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="/files/cdossWOsddrfxP2aCXbl" 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="/files/UUcd4ZLAbwmC9CvISFfO" alt=""><figcaption></figcaption></figure>

* Run command to verify disk size after expansion

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

<figure><img src="/files/GcbHCZNoRwUSL0tihsSZ" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.higiocloud.vn/hi-gio-kubernetes/3.-extending-disk-size-for-nodes-in-kubernetes-cluster-on-hi-gio-portal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
