Shrink root partition

Ilhom

New Member
May 23, 2021
4
0
1
21
Hi guys!
I tried assigning more storage to the root partition by following this Google Docs.
Well, after accidentally assigning all the storage after executing lvremove /dev/pve/data -y I am now stuck with pve-data not existing and pve-root having 103.3GB (I have a 120GB SSD).
After trying to shrink pve-root it gives me following error:

Code:
root@pve:~# resize2fs /dev/mapper/pve-root 58G

resize2fs 1.44.5 (15-Dec-2018)

Filesystem at /dev/mapper/pve-root is mounted on /; on-line resizing required

resize2fs: On-line shrinking not supported

Can anyone help me resize root?
 
Last edited:
The instructions you posted looked like you knew what you were doing. I'm sorry, I can't hold you hand on this, and I also cannot give specific instruction for you and become responsible if something goes wrong. Either boot from a LiveCD and find the right drive to perform those instruction on, or use GParted Live with a GUI to shrink pve-root.
 
ok whatever, I tried to avoid it but I just reinstalled Proxmox and set the partition sizes manually.