对硬盘进行格式化:

# mkfs.xfs /dev/sdb1  

系统显示:

mkfs.xfs error:
command not found.

可能是系统不完全安装

运行 which mkfs 查看mkfs的命令目录

# which mkfs
/sbin/mkfs

查看目录

# ls -la /sbin/mkfs*
-rwxr-xr-x. 1 root root  10336 8月   6 2013 /sbin/mkfs
-rwxr-xr-x. 1 root root  26208 8月   6 2013 /sbin/mkfs.cramfs
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext2
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext3
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext4
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext4dev
lrwxrwxrwx. 1 root root      7 9月   2 18:06 /sbin/mkfs.msdos -> mkdosfs
lrwxrwxrwx. 1 root root      7 9月   2 18:06 /sbin/mkfs.vfat -> mkdosfs

发现没有 mkfs.xfs

需要安装 xfsprogs rpm包

#yum -y install xfsprogs

就ok了