To install xfs on the server
yum -y install xfs* kmod-xfs*
That will install the following packages:
- xfsprogs-devel-2.9.4-1.el5.centos
- xfsprogs-2.9.4-1.el5.centos
- xfsdump-2.2.46-1.el5.centos
- kmod-xfs-xen-0.4-2
- kmod-xfs-0.4-2
Create your GPT partition:
parted -s /dev/sdb -- mklabel gpt mkpart primary 0 -1s
mkfs.xfs -f /dev/sdb1
Add a line to /etc/fstab:
echo -e "/dev/sdb1\t\t/local\t\t\txfs\tdefaults\t1 2" >> /etc/fstab
and mount it
mkdir /local mount -a
In case of LVM:
mkfs.xfs -f /dev/VolGroup00/local
/etc/fstab:
/dev/VolGroup00/local /local xfs defaults,nobarrier 1 2
1 comment:
Thank you very much!
You save many hour of my day :-D
Post a Comment