> For the complete documentation index, see [llms.txt](https://docs.higiocloud.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.higiocloud.vn/hi-gio-kubernetes/3.-extending-disk-size-for-nodes-in-kubernetes-cluster-on-hi-gio-portal.md).

# 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&amp;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&amp;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&amp;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&amp;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&amp;token=d6f4caae-26b0-4b69-8ebd-dc3cf1931565" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
