$

Proxmoxのディスクサイズ拡張

毎回忘れるので備忘

前提

Proxmox上に構築したUbuntu20.04
32GB -> 64GBにする。

Proxmox側の拡張

image

Disk Action > Resize

image

増やしたい分だけ。

Ubuntu側の拡張

$ df -h

image
色々書いてあるけど重要なのはlvなんとかのとこ。 これがLVMパーティションなので拡張する

$ sudo parted -l

このコマンドでext4であること、ディスクサイズが64GBであることが確認できる

$ growpart /dev/sda 3
$ lsblk

/dev/sda3自体は64GBになった
image

$ pvresize /dev/sda3
$ pvdisplay

物理ボリュームもリサイズ
image

$ sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
$ sudo lvdisplay

次にLVMパーティションを最大サイズに拡張
image

$ resize2fs
$ df -h

ファイルシステムに反映させておわり image

Privacy Policy

This website uses Google Analytics to collect traffic information for site improvement. Google Analytics may use cookies and similar technologies to measure page views and usage patterns.

By continuing to use this site, you acknowledge that your site usage may be recorded for analytics purposes.

Disclaimer

The content published on this website is based on publicly accessible information available on the Internet and other open sources, and represents the author's personal views. Paid training materials, non-public materials, and similar sources are not used as information sources.

The content of this website does not represent the views, policies, or positions of any organization, group, company, or other third party with which the author is affiliated or has a relationship.

No warranty is made as to the accuracy, completeness, or usefulness of the information on this website. The author assumes no responsibility for any damages arising from the use of, or inability to use, the content of this website.