Increasing hard disk is not reflecting

Nov 16, 2023
5
0
1
I have increased the harddisk from 160Gb to 672Gib as below. How ever changes are not reflecting the the VM.
1715853275746.png
After resize , I tried below commands also.
parted /dev/sda
(parted) print
Warning: Not all of the space available to /dev/vda appears to be used, you can
fix the GPT to use all of the space (an extra 268435456 blocks) or continue
with the current setting?
Fix/Ignore? F
(parted) resizepart 3 100%
(parted) quit

Could you please let me know what i else is to be done to make the harddisk availabe in the VM?

Df -h is showing as below.
1715853235981.png
 

Attachments

  • 1715852905139.png
    1715852905139.png
    300.8 KB · Views: 2
Did you resize the partition inside the VM as well? df will only show available space in the partition, not the physical disk.
 
Actually I did resize2fs /dev/sda3. But should i do resize2fs /dev /mapper /ubuntu--vg-ubuntu--lv or /dev /sda2 . Could you please guide me? I am beginer in Linux and Proxmox.
 
First, after you resize the disk in Proxmox GUI all other operations are run inside the VM.
In the VM you would first check "lsblk" output, then follow this or a similar guide:
https://azvise.com/2020/09/03/linux-extend-lvm-partition-after-resizing-disk/

It's hard to say what you should be resizing in the VM since you cut off half of the relevant information in your screenshot.
Please use text output the next time and encode it with CODE tags.

Note, that you should first understand what state your system is in now since you've already partially run the steps and it's unknown whether you did it in the right place.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!