/srv/irclogs.ubuntu.com/2022/10/24/#cloud-init.txt

GumSquareHi everyone. Is there a way to make cloud-init reseize non-root filesystems? I used growpart and resizefs modules but they only resize root partition and filesystem. Other non-root partitions get resized by growpart but their filesystems isn't resized 07:39
GumSquareWhat I have is some VMs that I need to grow their disks at run time07:40
GumSquareWe have automated tasks that resizes the disk and triggers cloud-init. It only resizes partitions and we have to manually login to the VMs and run resize2fs command on the partition we need to resize its filesystem07:42
acibaGumSquare: Hello. growpart offers the ability to specify what devices to run on but resizefs only operates over the root partition. There is a whislist bug representing that here: https://bugs.launchpad.net/cloud-init/+bug/1732064 . One way to automate your workflow using cloud-init would be to provide your resize2fs commands in the user-data under the runcmd module.07:56
-ubottu:#cloud-init- Launchpad bug 1732064 in cloud-init "growpart + resizefs doesn't support non-root partions" [Wishlist, Confirmed]07:56
GumSquareThanks a lot 07:57
acibaMy pleasure. A comment in the bug could probably help accounting for the importance of the feature request.07:59
GumSquareYeah sure08:05
GumSquarewill put a comment08:05

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!