NS8 Nextcloud update

@mrmarkuz
Thank you again for your help.

It was relatively easy to increase the size of the disk. Shortly.

Download the gparted iso file and upload it to local (pve1) ISO images

On the VM console, do the following:

  • swapoff -a
  • Comment out the swap line in /etc/fstab
  • shutdown -h now

Increase disk size in Proxmox

  • Hardware, Select Hard Disk, Disk Action, +Resize setup increasing the size of the disk

Prepare to add VM disk size to Debian root partition

  • In the CD/DVD Drive, select the gparted iso
  • Set the boot order in Options Boot Order, placing the CD/DVD drive first.
  • Start the VM (it will boot from the gparted iso)
  • Start the gparted iso with the default graphical interface
  • Run the gparted program
  • Delete the swap and the extended partition that contains it
  • Then expand the root partition by -1GB before the end of free space
  • Create an extended partition on the remaining 1GB, then swap there
  • Shut down the VM (gparted iso)
  • Restore the original boot order
  • Remove the gparted iso from the CD/DVD Drive (restore the installation iso)

Let’s set up the Debian VM

  • Let’s start the Debian VM
  • Query the UUID of the swap disk
    sudo blkid /dev/sda5
  • Enter the resulting UUID into /etc/fstab in accordance with the previous swap analogy.
  • Enable swap
    swapon -a
  • Let’s check how the swap works
    swapon -s

I hope this short description can help others…

After increasing the disk size, Nextcloud was successfully updated. I still need to test if everything is working properly but I haven’t found any errors so far.

Thanks again for your help @mrmarkuz

1 Like