How to mount xfs
#Find the new disk
#Create the partition ( n,1,w)
yum install xfsprogs.x86_64 xfsdump-3.1.3-5.7.amzn1.x86_64
#Make the files system
mkfs.xfs -f /dev/xvdf
#Prepare the mountpoint
mv /opt/ /opt2/
mount -t xfs /dev/xvdf /opt
#Add line to /etc/fstab
echo “/dev/xvdf /opt xfs defaults 0 0” >> /etc/fstab
XFS is a high-performance 64-bit journaling file system created by Silicon Graphics, Inc (SGI) in 1993. It was the default file system in the SGI’s IRIX operating system starting with its version 5.3; the file system was ported to the Linux kernel in 2001. As of June 2014, XFS is supported by most Linux distributions, some of which use it as the default file system.
XFS excels in the execution of parallel input/output (I/O) operations due to its design, which is based on allocation groups (a type of subdivision of the physical volumes in which XFS is used- also shortened to AGs). Because of this, XFS enables extreme scalability of I/O threads, file system bandwidth, and size of files and of the file system itself when spanning multiple physical storage devices.
xfs_freeze – Halts new access to the filesystem and creates a stable image on disk. xfs_freeze is intended to be used with volume managers and hardware RAID devices that support the creation of snapshots.
xfs_fsr – Reorganizer that can defragment the files on a mounted and active XFS filesystem
xfs_growfs – Utility to perform online resizing of XFS file systems. XFS filesystems can be grown so long as there is remaining unallocated space on the device holding the filesyste
Native backup/restore utilities
xfsdump, xfsrestore – Utilities to aid in the backup of data stored in XFS file systems. The xfsdump utility backs up an XFS filesystem in inode order, and in contrast to traditional UNIX file systems which must be unmounted before dumping to guarantee a consistent dump image, XFS file systems can be dumped while the file system is in use. This is not the same as a snapshot, since files are not frozen during the dump
An XFS file system cannot be shrunk, which would be useful, for example, in some virtualized environments.
Metadata operations in XFS have historically been slower than with other file systems, resulting in, for example, poor performance with operations such as deletions of large numbers of files. However, a new XFS feature implemented by Dave Chinner and called delayed logging, available since version 2.6.39 of the Linux kernel mainline, is claimed to resolve this; performance benchmarks done by the developer in 2010 revealed performance levels to be similar to ext4 at low thread counts, and superior at high thread counts.
No support for transparent data compression
How to mount xfs