Resizing HD after installing the proxmox package

Hi

I’m crossposting in a new thread (sorry for that) in the hope that somebody can help.
Original here: https://dietpi.com/forum/t/guide-dietpi-on-proxmox/4931/22

How can I resize (grow) the disk of an installed proxmox VM?
Followed the guide https://dietpi.com/docs/install/ and it installed an 8GB disk. I need it to be bigger. Searched and haven’t found a working solution.

Thx in advance

There is no need to raise your question twice. This will not speed up thinks :wink:

I don’t use Proxmox but you could try to add a 2nd disk and move dietpi_userdata there.

I excused myself because of this, sorry again.

  1. how do I move user data, never done that.
  2. Plex etc have all their important files in /var/lib…

dietpi_userdata can be moved using dietpi-drive_manager. There you can select the 2nd disk and check the option to move dietpi_userdata.

For Plex you usually have a library if I’m not mistaken. And there you should be free to choose where it is located. Isn’t it?

Default Plex installation installs all into /var/lib/plexmediaserver; also Emby same thing. Seems to be hardcoded.
Really need to grow the main HD… As you provide the template with 8GB there has to be a way to increase this, why hardcode it to 8GB?

I guess you are mixing thinks. Using dietpi-software, executable of Emby is installed into /opt/emby-server. But this doesn’t mean that this is the location of the media files as well. Opening Emby web page first time, you need to run an initial setup. There you could specify location of media files. And it doesn’t matter where they are located.

Similar with Plex. Don’t mix location of executable with location of media files.

Well, this might be so but doesn’t resolve my issue…

There has to be a way to increase the size of the hd. I can think of booting into Gparted after resizing the disk in proxmox…

For those who stumble on this I’ve fixed this issue being able to resize the disk:

  1. resize the disk to the value you want in proxmox
  2. download Gparted iso from https://gparted.org/ and upload it to proxmox
  3. add iso to VM and boot from it (hit esc to choose boot medium)
  4. resize disk to fill all available space
  5. reboot and done

Maybe you were looking for the resizing feature which can be found in dietpi-drive_manager?!

1 Like

I hadn’t seen this before! Might have worked. Will have to try the next time.
Thanks for pointing this out!

EDIT: Tried this on test VM. Installed the proxmox image. Increased the size and used the max disk in dietpi-drive_manager. Works!

This worked! I was trying to use parted from the command line and was completely confused as to why it wasn’t seeing more space even though I had expanded the drive from 8 to 14 GB. Running the resize option from within drive manager did the trick!

Some words about the Proxmox image size:
Proxmox only allows an increasing of the VMs disk via this dialog:

grafik

and then add the additional size in GiB (!):

grafik

Afterwards you need to use the resizing functionality of dietpi-drive_manager like mentioned above to tell DietPi to use the increased disk size.

We have chosen such a small disk size in our image because then we can implément “small” VMs with a small disk size footprint (e.g. using a VM only with an MQTT server inside, 1 CPU, 512 MB RAM). On the other hand, with resizing you get the disk size you need (e.g. using a VM with 100 GB disk as a plex server).

Reducing the size of the VM is not possible with the Proxmox built-in features, so you should take care if you increase it via the dialog shown above. It could be a safe choice to make a clone of the VM before adding extra disk size to the VM, if you mistype in the dialog with the additional size (see above) then you could roll it back with your clone. If you are sure what you do, of course this can be skipped.

4 Likes