Skip to content

Instantly share code, notes, and snippets.

@lmarcondes
Created May 28, 2024 16:09
Show Gist options
  • Save lmarcondes/a57ca78a7d86959256059f9691bedd9d to your computer and use it in GitHub Desktop.
Save lmarcondes/a57ca78a7d86959256059f9691bedd9d to your computer and use it in GitHub Desktop.
mdadm --add /<dev>
mdadm --grow --raid-devices=n <raid-device>
# Growpart will make the partition occuppy all the space
# on the device. This is very fast in XFS or RAID
growpart <partition>
# xfs_growfs will grow the filesystem to the max partition size
xfs_growfs -d <mountpoint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment