mount
创建文件系统
mkfs -t xfs /dev/vdb
file -s /dev/vdb # /dev/vdb: SGI XFS filesystem
挂载:mount /dev/vdb /mnt/
设置自动挂载云盘
blkid
vim /etc/fstab
reboot
检查挂载情况:df -h 或 lsblk
[root@ekyc-worker2 ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Thu Feb 14 22:55:40 2019 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=3a7eae0a-b311-423d-a2ff-a361515aa2c4 / xfs defaults 0 0 UUID=c4d459f1-7c8d-44ba-95d1-d1caa0e569f2 /export xfs defaults 0 0 [root@ekyc-worker2 ~]# [root@ekyc-worker2 ~]# blkid /dev/vda3: LABEL="boot924" UUID="3a7eae0a-b311-423d-a2ff-a361515aa2c4" TYPE="xfs" PARTLABEL="Linux root filesystem @!" PARTUUID="b3be082f-3453-4709-885f-1801586c17f7" /dev/vda1: PARTLABEL="BIOS boot partition @!" PARTUUID="6e61273f-cd74-48b6-904c-9683b6b6e231" /dev/vda2: UUID="D13B-82B0" TYPE="vfat" PARTLABEL="EFI System @!" PARTUUID="0de00869-c075-4c8a-b085-56481daf4a84" /dev/vdb: UUID="c4d459f1-7c8d-44ba-95d1-d1caa0e569f2" TYPE="xfs"
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Feb 14 22:55:40 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=3a7eae0a-b311-423d-a2ff-a361515aa2c4 / xfs defaults 0 0
/dev/vdb /export xfs defaults 0 0