how to resize local storage

Janvier Rwakagabo

New Member
Jul 1, 2020
1
1
1
40
Hello,

How can i resize my local storage of pve (root), to a bigger size.
From attached screenshot, i want to add space on local (pve-01), which has a space of 109.74GiB and increase to a higher space.


Regards,

Janvier R.
 

Attachments

  • picturemessage_jghvd4oj.wre.png
    picturemessage_jghvd4oj.wre.png
    27.4 KB · Views: 597
Last edited:
  • Like
Reactions: tiktoksss
Hi,
before you start, I recommend having a working backup available (just in case).

Note that the local storage by default is just a directory storage. So if you resize the root filesystem, that directory will have more space available as well. The root filesystem resides on the logical volume pve/root. If you have free space on the volume group pve you can use lvextend pve/root -L+<SIZE><UNIT> (e.g. 100G for <SIZE><UNIT>).

You'll also have to resize the filesystem itself. I'd recommend booting from a live CD to do it. Then running resize2fs /dev/mapper/pve-root should do the trick. If you're feeling lucky, you can also run the command without a live CD to do an online resize.
 
Interesting ... but how do i create a new volume? I have 100GB on pve/root and i think that the rest of 900GB are not used at all.

root@proxmox:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.3M 3.2G 1% /run
/dev/mapper/pve-root 94G 66G 24G 74% /
tmpfs 16G 49M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/fuse 128M 16K 128M 1% /etc/pve
tmpfs 3.2G 0 3.2G 0% /run/user/0

Thank you.
 
My guess would be you are using the defaults where nearly all of the 900GB are used for your "data" LV thin-pool aka "local-lvm" storage. Check with the vgs and lvs commands whats going on with your LVM.
 
Last edited:
Hello, having the same question. The local directory in root lv has just 96g and the data thin pool has over 794g free
Its a default installation for Home assistant and synology. I need at least 300g for backup these 2 VM.
How can I resice local dir please.
 

Attachments

  • 1715977728785.png
    1715977728785.png
    31.4 KB · Views: 133
  • Like
Reactions: fudger
Hello, having the same question. The local directory in root lv has just 96g and the data thin pool has over 794g free
Its a default installation for Home assistant and synology. I need at least 300g for backup these 2 VM.
How can I resice local dir please.
Hi, I'm exactly on the same situation, I've read several discussions but still haven't figured out how to expand the root lv.
I think you can take the 16GB free from the pve-vg and expand the root, but I'm not sure..
 
Hi, I'm exactly on the same situation, I've read several discussions but still haven't figured out how to expand the root lv.
I think you can take the 16GB free from the pve-vg and expand the root, but I'm not sure..
Those 16GB are free for a reason. Without them you for example won't be able to snapshot your root LV in cse you ever need to fix stuff.