# 3. Mở rộng dung lượng đĩa cho các node trong Kubernetes Cluster trên HI GIO Portal

## <mark style="color:green;">**Tổng quan**</mark> <a href="#overview" id="overview"></a>

* Hướng dẫn từng bước để tăng dung lượng đĩa của mỗi node trong cluster nhằm đáp ứng nhu cầu lưu trữ ngày càng tăng.
* Không cần downtime.

## <mark style="color:green;">Quy trình</mark> <a href="#id-2.-guidance" id="id-2.-guidance"></a>

* Đảm bảo oVDC có đủ dung lượng lưu trữ khả dụng.
* Đảm bảo bạn có quyền truy cập vào node (ssh, node-shell…).

{% stepper %}
{% step %}
**Bước 1:** Đăng nhập vào HI GIO portal > **Virtual Machines** > Chọn node bạn muốn mở rộng dung lượng đĩa > **Hard Disks** > **EDIT**

<figure><img src="/files/2xCOy5IdVta95gcGRPSH" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 2:** Nhập dung lượng đĩa mới > **SAVE**

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

{% step %}
**Bước 3:** SSH vào node và thực hiện các lệnh dưới đây để mở rộng dung lượng đĩa trên hệ điều hành.

* Kiểm tra điểm mount của root:

```
df -h
```

Ví dụ `/dev/sda4`

<figure><img src="/files/cdossWOsddrfxP2aCXbl" alt=""><figcaption></figcaption></figure>

* Chạy các lệnh dưới đây để mở rộng dung lượng cho **/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>

* Chạy lệnh để xác minh dung lượng đĩa sau khi mở rộng:

<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-user-guide-vn/hi-gio-kubernetes/3.-mo-rong-dung-luong-dia-cho-cac-node-trong-kubernetes-cluster-tren-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.
