Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

4 Answers 4

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
add comment

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
1  
Bah, comments. Who reads those? –  Michael Hampton Aug 18 '13 at 22:31
add comment

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
/lib/modules/2.6.32-358.14.1.el6.x86_64/kernel/fs/xfs
/lib/modules/2.6.32-358.14.1.el6.x86_64/kernel/fs/xfs/xfs.ko
[root@main ~]# cat /etc/centos-release 
CentOS release 6.4 (Final)
share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.