expanding an xfs volume

a little while back i was experimenting with expanding an xfs volume in linux and found that there’s a native utility to accomplish this called xfs_growfs. i read the man pages about it and it seemed pretty self explanatory and i tried it…and it didn’t work.

lots of googling later i finally found the solution on this blog:
http://mdesbo.wordpress.com/2010/07/15/expanding-the-array

basically, it boils down to having to delete the xfs partition and then recreate it with the desired size of what you wish to expand it to. then running the xfs_growfs utility on that partition.

the parted commands from the blog above (unmount partition first):
parted <partition>
print
mkpart primary xfs 0 -0
quit

…. then … use xfs_growfs

that’s the bare essentials of it….lots more details on the linked blog.

This entry was written by resinblade , posted on Saturday December 04 2010at 07:12 pm , filed under IT . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

You must be logged in to post a comment.