title: How do I create an XFS volume out of root volume on EC2?
body: <p>I've created a new EC2 instance and setting up a bunch of software on it. MongoDB 3.2's Production checklist suggests installing it on an XFS (or ext4) volume. How do I create a volume of, say 15 GB, out of /dev/xvda1, format is as XFS using mkfs and then mount it? Here's the output of df -h right now: </p>
  
  <pre><code>udev            492M   12K  492M   1% /dev
  tmpfs           100M  340K   99M   1% /run
  /dev/xvda1       30G  2.5G   26G   9% /
  none            4.0K     0  4.0K   0% /sys/fs/cgroup
  none            5.0M     0  5.0M   0% /run/lock
  none            497M     0  497M   0% /run/shm
  none            100M     0  100M   0% /run/user
  </code></pre>
  
  <p>OS is Ubuntu 12.04 LTS</p>