[root@localhost lj]# mkfs.xfs /dev/sda4
mkfs.xfs: /dev/sda4 appears to contain an existing filesystem (LVM2_member).
mkfs.xfs: Use the -f option to force overwrite.
解决办法:强制执行 -f
[root@localhost lj]# mkfs.xfs -f /dev/sda4
meta-data=/dev/sda4 isize=512 agcount=4, agsize=1966080 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=7864320, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=3840, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0