Issue when trying to extend execute "resize2fs /dev/mapper/pve-root"

thimplicity

Member
Feb 4, 2022
73
9
8
44
Hi,
I am trying to extend the root (resulting on more space for "local") on my proxmox server. I started with this lsblk output:

1688265085682.png

I executed three commands:
Code:
growpart /dev/sda 3
pvresize /dev/sda3
lvextend -l +100%FREE /dev/pve/root

Now with the last command resize2fs /dev/mapper/pve-root I receive the following error message:
Code:
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/pve-root
Couldn't find valid filesystem superblock.

Current lsblk looks as follows:
1688265297976.png

Thanks so much for your help in advance!
 
Well in case someone else has this problem, the solution was to use xfs_growfs instead of resize2fs. One can find out which files system is used via mount | grep pve-root
 
  • Like
Reactions: Por12

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!