How To Create An XFS Formatted Filesystem On AWS EC2
erics, Posted October 26th, 2011 at 11:01:54am
First, use the AWS management console to create and attach a new volume. Note the device name, in our example /dev/sdf
.
1 2 3 4 5 6 7 |
# yum install xfsprogs-devel # mkfs.xfs /dev/sdf # echo "/dev/sdf /data xfs noatime 0 0" | tee -a /etc/fstab # mkdir -m 000 /data # mount /data # df -h # mount |
You now have a 10 GB (or whatever size you specified) EBS volume mounted under /data with an XFS file system, and it will be automatically mounted if the instance reboots.
Leave Your Comment
All fields marked with "*" are required.