首页 > 代码库 > RHCE7.0答案之创建逻辑卷

RHCE7.0答案之创建逻辑卷

创建逻辑卷配置:

  1. fdisk /dev/vdb  n,e,+200M,t,8e,p,w

  2. partprobe; ll /devvdb*

  3. pvcreate /dev/vdb5; pvscan

  4. vgcreate -s 16M datastore /dev/vdb5

  5. vgdisplay 

  6. lvcreate -l 10 -n database datastore

  7. mkfs -t ext4/xfs /dev/datastore/database

  8. mkdir /mnt/database

  9. vim /etc/fstab

    /dev/datastore/database  /mnt/database ext4 defaults 0 0(不检测,不备份)

  10. mount -a

RHCE7.0答案之创建逻辑卷