Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
466 views
in Technique[技术] by (71.8m points)

azure - parted directive in Ansible start with first free location on disk when creating partition

I'm using Ansible to configure a RHEL VM on Azure, which is being created from a Marketplace image. I'm creating the VM with a larger OS disk (128GB vs. what I believe is the default of 64GB for the image), and want to create a new partition from the unused part of the disk. When using the parted directive in Ansible, I can use '100%' as the part_end parameter to tell it to make the new partition extend to the end, but is there a way to tell it to start the new partition at the next unallocated "spot" on the disk (or do I need to figure out what that is on my own and pass it in)?

question from:https://stackoverflow.com/questions/65893034/parted-directive-in-ansible-start-with-first-free-location-on-disk-when-creating

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...