Wednesday, December 15, 2010

xfs_growfs to dynamically grow the xfs file system

Quick Note -
Follow the procedure explained with scenario.
1) We have 90 GB of Disk available or LUN on the server
2) Create a partition on it of 80GB using parted as GPT partition
parted /dev/sdd
print
mklabel gpt
mkpart
start
end 80GB
quit
3)Format it using mkfs.xfs and copy some data into it after mounting
4)Unmount the /dev/sdd1
5)parted /dev/sdd
print
Cancel if it says for for detected GPT partition
rm 1 - to remove the partition
mkpart or type mkpart primary xfs 0 -0
primary
start - 0
end 90GB
quit
6)Just remount it
7) Then xfs_growfs -d /<> this will give message as changed blocks from x to y.
check by df -h
DONE

No comments:

Post a Comment