设置gpt硬盘
parted /dev/sdb
(parted) mklabel gpt
(parted) mkpart primary xfs 0 -1 (Ignore)
(parted) quit
安装xfs工具
yum install xfsprogs
格式化xfs分区
mkfs.xfs -f /dev/sdb1
查看xfs分区uuid
ls -lh /dev/disk/by-uuid
更新/etc/fstab
......
UUID=62ca3df2-4ad4-43ea-94ba-0c8999eeafd3 /data xfs defaults 1 2
......
挂载新分区
mount -a
强制卸载/data分区
mount -l /data