Linux/XFS

From Omnia
Jump to navigation Jump to search

XFS

XFS - SGI - Developer Central Open Source - http://oss.sgi.com/projects/xfs/

"XFS: A high-performance journaling filesystem"
"XFS combines advanced journaling technology with full 64-bit addressing and scalable structures and algorithms. This combination delivers the most scalable high-performance filesystem ever conceived."

XFS - Wikipedia

"XFS is a high-performance journaling file system created by Silicon Graphics, originally for their IRIX operating system and later ported to the Linux kernel. XFS is particularly proficient at handling large files and at offering smooth data transfers."

Features

  • Quick Recovery
  • Fast Transactions
  • Massive Scalability
  • Efficient Allocations
  • Excellent Bandwidth

FAQ

XFS FAQ - http://xfs.org/index.php/XFS_FAQ

Installation

Included with CentOS Extras:

$ yum install xfsprogs xfsdump kmod-xfs

Relabel

Relabel XFS file system:

#xfs_admin -L [NEWLABEL] [DEVICE]
xfs_admin -L /newlabel /dev/sdb1

Repair

fsck for xfs:

"XFS is a journaling filesystem and performs recovery at mount(8) time if necessary" (fsck.xfs)
"If you wish to check the consistency of an XFS filesystem, or repair a damaged or corrupt XFS filesystem, see xfs_check and xfs_repair."

If you cannot mount an XFS file system, you can use the xfs_check command to check its consistency: [1]

umount /dev/md4
xfs_check /dev/md4

If you can mount the file system and you do not have a suitable backup, you can use xfsdump to attempt to back up the existing file system data [2]

xfsdump /dev/md4

You can use the xfs_repair command to attempt to repair an XFS file system specified by its device file. [3]

xfs_repair /dev/md4