Extend disk size /dev/mapper/pbs-root

ColinDexter

Member
Jul 3, 2023
44
6
8
My backup server runs on an 8G VM. Now the disk space appears to be too small and I increased it to 16G.
Just how do I add this extra 8G available to the system. I've already tried everything. I can see it now in the overview of the disk. But I think I still have to add it to /dev/mapper/pbs-root. But I can't get it added to /dev/mapper/pbs-root.

disk.JPG

fd.JPG
 
Please show the disk table, with i.g. cfdisk <device>.
If the extra space at the end of the Datastore, then you can use the lvm tools.
 
It's a lvm partition; you have to resizez the PV after resizing the partition.

pvresize /dev/sda3

with that you vg should have free space now.

verify with vgdisplay

and after that you have to extend the lv volume for the root partition

for example for adding 4Go to the partition :

lvextend -L+4G /dev/dev/mapper/pbs-root

and after that you hace to extend the file system ( xfs_growfs if xfs filesystem or resize2fs if its ext4 ..... )
 
I used the wrong command. With lvresize --extents +100%FREE --resizefs /dev/mapper/pbs-root it worked.disk.JPG
Only I still see 6G in the dashboard :-(
db.JPG
 
vgdisplay
vgdisplay.JPG

lvdisplay
lvdisplay.JPG


with lvresize --extents +100%FREE --resizefs /dev/pbs/rootI have now
lvdisplay.JPG

Thanks for your help. I was able to solve it based on your questions
 
Last edited:

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!