There are 2 options I use to extend a root partition:
- parted
- growpart
While former (parted) supports online resizing for a Linux system in a cloud environment, it can't be used for the same in my virtual machine in proxmox. This is from my experience. YMMV
For growpart,to my surprise, can be used to extend root partition while it is being used whether in a cloud and or in proxmox. For a critical system that downtime should be minimized, this is an excellent choice.
What do you guys use or what method do you use to extend root partition on Linux other than both above?
Note: of course i run resize2fs after running either one of those commands