How to Extend parttion/Disk

I created my Nextcloud server on Hypver-V server and set the disk size to 100 GB.

  1. I can see now that my disk size on the GUI is just 49 GB .how do I extend the disk size to be a 100 GB?
    2.What do I need to do if I
    want to add more space to this disk above 100 GB after I add it on the hyper-V server?


As long as the file system is not ZFS, boot from a gparted ISO and expand it…

Thanks for your quick reply.
I boot from GParted ISO and I can see that all the 100 GB is allocated to this partition but still in the nextcloud server GUI under “Setting” I see just 49 GB

Can’t help, never used Hyper-V…

I Found the commands:

  1. sudo lvextend -l 100%FREE /dev/mapper/ubuntu–vg-ubuntu–lv - for extent all the free space
    sudo lvextend -L +10G /dev/mapper/ubuntu–vg-ubuntu–lv -for extend at specific size
  2. resize2fs /dev/mapper/ubuntu–vg-ubuntu–lv