#fdisk -l
#fdisk /dev/sdb5
n ---- l ---- + 1G ---- t ----5 -----8e -----w
#partprobe
#pvcreate /dev/sdb5
#vgcreate -s 8 hong /dev/sdb5
#lvcreate -n hyj -l 10 /dev/hong
#mkfs -t xfs /dev/hong/hyj
#mkdir -p /hong/hyj
#mount /dev/hong/hyj /hong/hyj
#blkid /dev/hong/hyj 查看UUID的
#vim /etc/fstab
UUID=”。。。。。。” /hong/hyj/ xfs defaults 0 0
#mount -av
来源:oschina
链接:https://my.oschina.net/u/4409634/blog/4333607