安装parted
yum install parted
安装xfs
yum install xfs*
分区
# parted /dev/sda
(parted) mklabel gpt
(parted) mkpart primary 0 8T
(parted) print
格式化
[root@isensor ~]# mkfs.xfs -f /dev/sda1
meta-data=/dev/sda1 isize=256 agcount=8, agsize=268435455 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=1952970231, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@isensor ~]# mkfs.xfs -f /dev/sdb1
meta-data=/dev/sdb1 isize=256 agcount=4, agsize=244120958 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=976483831, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=476798, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
加载
# mount -t xfs /dev/sdb1 /data
#vi /etc/fstab
/dev/sdb1 /data xfs defaults 0 0