发布时间: 2018-04-25 12:46:20
[root@server0 ~]# fdisk -c /dev/vdb
[root@server0 ~]# partprobe /dev/vdb
[root@server0 ~]# pvcreate /dev/vdb5
[root@server0 ~]# vgcreate -s 16M datastore /dev/vdb5
[root@server0 ~]# vgdisplay datastore
[root@server0 ~]# lvcreate -l 50 -n database datastore
[root@server0 ~]# mkfs -t xfs /dev/datastore/database
[root@server0 ~]# mkdir -p /mnt/database
[root@server0 ~]# vim /etc/fstab
[root@server0 ~]# tail -1 /etc/fstab
/dev/datastore/database /mnt/database xfs defaults 0 0
[root@server0 ~]# mount -a
[root@server0 ~]# df -T -h