Live GPT partition expansion

22 views
Skip to first unread message

Alex Wanderley

unread,
Feb 14, 2022, 1:21:33 PM2/14/22
to ansible...@googlegroups.com
Hello,

Has anybody worked on expanding GPT partitions live, without unmounting the associated xfs or ext4 filesystem? (We don't use LVM, by the way.)

I have a working playbook that does that during VM deployments using the parted module; but because that playbook runs for new servers, I can unmount the FS no problem (parted requires FS to be unmounted) and proceed with the partition/FS expansion.
But for this project, I need to do that for existing servers which can't afford unmounting their FS...

Shall I have to resource to calling a shell script?
(We've been successfully using "fdisk" to do that already, from the command line.)

Any tip/input would be truly appreciated...

Regards,

Alex

--

 

Edmonton_sig_RGB_S.jpg

Alex Wanderley

Application and Infrastructure Analyst II
Acting Team Lead Storage and Backup Solutions

Financial and Corporate Services | Open City and Technology  

 

780-496-4156  Office

780-819-0273  Mobile

 

City of Edmonton

Century Place, 19th Floor

9803 102A Avenue NW

Edmonton AB, T5J 3A3

 

All information contained in this email post is proprietary to the City of Edmonton, confidential and intended only for the addressed recipient. If you have received this post in error, please disregard the contents, inform the sender of the misdirection, and remove it from your system. The copying, dissemination or distribution of this email, if misdirected, is strictly prohibited.


The contents of this message and any attachment(s) are confidential, proprietary to the City of Edmonton, and are intended only for the addressed recipient. If you have received this in error, please disregard the contents, inform the sender of the misdirection, and remove it from your system. The copying, dissemination, or distribution of this message, if misdirected, is strictly prohibited.

Stephen Maher

unread,
Feb 15, 2022, 4:19:13 AM2/15/22
to ansible...@googlegroups.com
Hi Alex, sounds similar to something we have done for a client, I can't share the role but this link is pretty much what you need to do. I did find some older systems did not always pick up the new partition sizes when partprobe was run  and they have reboot task to remedy this but it would be done under a change window.

https://superuser.com/questions/660309/live-resize-of-a-gpt-partition-on-linux

Cheers.
Reply all
Reply to author
Forward
0 new messages