zoukankan      html  css  js  c++  java
  • lvcreate命令

    lvcreate Command Examples on Linux :

    1. The following command creates a logical volume 15 gigabytes in size in the volume group vg_newlvm :

    [root@centos7 ~]# lvcreate -L 15G vg_newlvm
    

    2. The following command creates a 2500 MB linear logical volume named centos7_newvol in the volume group
    vg_newlvm, creating the block device /dev/vg_newlvm/centos7_newvol :

    [root@centos7 ~]# lvcreate -L 2500 -n centos7_newvol vg_newlvm
    

    3. You can use the -l argument of the lvcreate command to specify the size of the logical volume in extents. You can also use this argument to specify the percentage of the volume group to use for the logical volume. The following command creates a logical volume called centos7_newvol that uses 50% of the total space in volume group vg_newlvm :

    [root@centos7 ~]# lvcreate -l 50%VG -n centos7_newvol vg_newlvm
    

    4. The following command creates a logical volume called centos7_newvol that uses all of the unallocated space in the volume group vg_newlvm :

    [root@centos7 ~]# lvcreate --name centos7_newvol -l 100%FREE vg_newlvm
  • 相关阅读:
    团队冲刺第四天
    团队冲刺第三天
    团队冲刺第二天
    团队冲刺第一天
    全球疫情地图显示
    团队博客——keep running视频+PPT介绍
    周总结7
    人月神话阅读笔记03
    Java枚举类型的使用,数值的二进制表示
    四则运算器
  • 原文地址:https://www.cnblogs.com/zx3212/p/7064561.html
Copyright © 2011-2022 走看看