EBS volume was attached as ext4
on /opt/apps
. There are currently no data on it. How to change filesystem type to xfs
and assign a new mount point to /data
?
[centos@ip-10-24-xx-xxx ~]$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/xvda1 xfs 8.0G 1.4G 6.7G 17% /
devtmpfs devtmpfs 7.3G 0 7.3G 0% /dev
tmpfs tmpfs 7.2G 0 7.2G 0% /dev/shm
tmpfs tmpfs 7.2G 17M 7.2G 1% /run
tmpfs tmpfs 7.2G 0 7.2G 0% /sys/fs/cgroup
/dev/xvdb ext4 99G 61M 94G 1% /opt/apps
tmpfs tmpfs 1.5G 0 1.5G 0% /run/user/1000
This is not specific to AWS EBS. Amazon gives you a "disk" called EBS, attached to /dev/xvdb. Then, feel free to mount it anywhere (/opt/apps, or /data) and format it with the filesystem you want.
This page can help you http://ask.xmodulo.com/create-mount-xfs-file-system-linux.html