Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like install centos 6.4 and use XFS as filesystem for some partitions in my configuration. But Anaconda don't propose XFS in the filesystem choice. Then I try to install in text mode but in this case I don't succeed to personalise my partition table. How can I use XFS for certain partitions, such as the one I plan to mount at /var?

share|improve this question
Do you want the entire system to be on XFS? Or do you just want part of the drive to be XFS? – longneck Aug 1 '13 at 15:04
I just want some partition in XFS, like /var – Atchoum Aug 2 '13 at 7:45

Currently basic RedHat Enterprise Linux 6/CentOS 6 doesn't support XFS as root filesystem. There is a addon-package for RHEL 6 to support it as non-root partition, after installation.

It is best not to use XFS with RHEL/CentOS 6 and wait for CentOS 7 (2014) or if you really have to use XFS, you can try Fedora for up-to-date XFS support.

share|improve this answer
atleast CentOS 6.4 has XFS module and utilities for filesystem in 64-bit environment so it available as other non-root partitions, just create partitions and use mkfs.xfs from xfsprogs -package to format the partition as XFS. Note: it is 64b only. – Jani Karlsson Aug 2 '13 at 10:22
It's available without addon-package for Centos. – GioMac Aug 18 '13 at 21:56

I wouldn't recommend using the installer to create your XFS partitions. You can't get the right types of XFS optimizations or mkfs.xfs options, and it's more flexible to run this post-installation.

Honestly, ext4 is fine for this. I only use XFS on data partitions. If you use a kickstart build, you can do this, though:

part /boot --fstype=ext4 --size=300
part / --fstype=ext4 --asprimary --size=20480
part /usr --fstype=ext4 --asprimary --size=12288    
part swap --size=8192
part /var --fstype=xfs --size=6144
part /tmp --fstype=ext4 --size=2048
share|improve this answer
Anaconda will absolutely refuse to create a root partition as XFS. Though this will be supported (and the default) in EL7. – Michael Hampton Aug 18 '13 at 22:28
The OP asked for /var. – ewwhite Aug 18 '13 at 22:30
Bah, comments. Who reads those? – Michael Hampton Aug 18 '13 at 22:31

CentOS 6.4 32-bit doesn't include XFS support, but it is included in the 64-bit version.

share|improve this answer

It is possible to do that if you'll prepare partition before installation i.e. use livecd with xfs support like partedmagic to do that. But anyway, it won't give you any advantage. Personalize your partition table/reformat/change partition and /var after installation.


QA: Can XFS be used for a root filesystem?


Q: Does Centos support it without additional package?

A: Yes for 64-bit Centos, it includes XFS support without additional package, additional package provides only tools for XFS (fsck, mkfs, debug etc):

[root@main ~]# rpm -ql kernel|grep xfs
[root@main ~]# cat /etc/centos-release 
CentOS release 6.4 (Final)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.