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

thimplicity

Member
Feb 4, 2022
89
14
13
45
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