Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to grow XFS partition automatically in CentOS #1487

Open
jgallucci32 opened this issue Mar 20, 2019 · 1 comment
Open

Add ability to grow XFS partition automatically in CentOS #1487

jgallucci32 opened this issue Mar 20, 2019 · 1 comment

Comments

@jgallucci32
Copy link

jgallucci32 commented Mar 20, 2019

One of the nice benefits of cloud-init is its ability to automatically grow an XFS filesystem upon first boot. This makes it so you can start with a small base image and deploy VMs with larger filesystems as needed.

The WALinuxAgent does not appear to support this, but these are the following steps I followed in order to grow the XFS file system of a CentOS image after growing its disk in Azure.

  1. Install growpart script for growing a partition
yum install -y cloud-utils-growpart
  1. Extend partition 1 in /dev/sda
growpart /dev/sda 1
  1. Expand /dev/sda1 to fill entire partition
xfs_growfs /dev/sda1
@garedrag
Copy link

magic

@trstringer trstringer removed their assignment Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants