Silicon's blog

Menu
  • Home
  • Kadena
  • Solana
  • Ethereum
  • Bot Automation
  • Proxmox
  • Nginx Proxy Manager
  • Others
  • Contact
Menu

How to extend Ubuntu Server 22.04 storage on your Proxmox server

Posted on May 17, 2023May 18, 2023 by Silicon
Sharing is Caring:
Twitter 0
Copy 0

 

When creating a VM on Proxmox, sometimes we may underestimate the growth of the data and chose a improper disk size.

This article will teach you how to extend the disk size of your Proxmox VM on Ubuntu Server 22.04. If you are using Ubuntu Desktop 22.04, the procedures will be slightly different. Check out the procedures for Ubuntu 22.04 Desktop.

Step 1: On your Proxmox virtual machine, select the Hard Disk under the Hardware section. Click Disk Action and press the Resize option.

Step 2: Select the disk size you want to increment.

Step 3: Check the partition of / by

sudo lsblk

In my case, it is under partition 3.

Step 4: Extend partition 3 of the disk by

sudo growpart /dev/sda 3

Step 5: Check the filesystem mount on / by

sudo df -h

In my case, it is /dev/mapper/ubuntu–vg-ubuntu–lv.

Step 6: Extend the filesystem by

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

Step 7: Resie the filesystem by

sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Step 8: Check the latest disk size by

sudo df -h

Congratulation! You have extended the disk size of your Ubuntu 22.04 server VM successfully!

Leave a Reply Cancel reply


The reCAPTCHA verification period has expired. Please reload the page.

©2024 Silicon's blog
Click to Copy