centos

yum -y install xfsprogs

=========xfs分区==============

fdisk -l

yum install parted -y

parted /dev/sdb

(parted) mklabel gpt 

(parted) print

(parted) mkpart primary 0% 100%

(parted) print

(parted) quit

mkfs.xfs -f /dev/sdb   (此步骤执行较慢,请等待)

mkdir -p /data/data

mount -t  xfs -o noatime,nodiratime,inode64,nobarrier /dev/sdb /data/data 

开机挂载

echo "/bin/mount -t  xfs -o noatime,nodiratime,inode64,nobarrier /dev/sdb /data/data" >> /etc/rc.local