Cenos 改 xfs 速成法…

uname -r
2.6.9-55.plus.c4smp

vi /etc/yum.repos.d/CentOS-Base.repo
將 puls 的選項 enable 改為 1

[centosplus]
name=CentOS-$releasever – Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

CentOS:
yum install –enablerepo=centosplus xfsprogs xfsprogs-devel
RedHat:
rpm -Uvh xfsprogs-2.5.6-1.i386.rpm
rpm -Uvh xfsprogs-devel-2.5.6-1.i386.rpm 

yum install kernel-module-xfs
yum install xfsprogs

CENT OS更改成XFS的方法:
1. rpm -ivh kernel-module-xfs-2.6.9-67.0.1.ELsmp-0.1-1.x86_64.rpm
(Kernel 版本要對,上面的檔案在223的/usr/local/src, 如果版本不一樣,可以去http://linux.web.psi.ch/dist/scientific/42/kernel/抓)
2. /sbin/mkfs.xfs -f /dev/sdb2 再 重新 MOUNT即可,記得/etc/fstab也要改