VGCREATE(8)                                                        VGCREATE(8)
NAME/名称
       vgcreate - create a volume group/创建卷组
SYNOPSIS/简介
       vgcreate  [--addtag  Tag] [--alloc AllocationPolicy] [-A|--autobackup {y|n}] [-c|--clustered {y|n}] [-d|--debug] [-h|--help] [-l|--maxlogicalvolumes MaxLogicalVol-
       umes]  [-M|--metadatatypetype]  [-p|--maxphysicalvolumes  MaxPhysicalVolumes]  [-s|--physicalextentsize  PhysicalExtentSize[kKmMgGtT]]  [-t|--test]  [-v|--verbose]
       [--version] VolumeGroupName PhysicalVolumePath [PhysicalVolumePath...]
    vgcreate[--addtag 标记] [--Alloc 分配策略] [-a--自动备份y|n][-c--群集y|n][-d|--调试] [-h|--help] [-l|--maxlogicalvolumes 最大逻辑值 ][-M|--元数据类型]  [-p|--maxphysicalvolumes
    最大物理体积]  [-s|--physicalextentsize  物理张力大小 [kKmMgGtT]][-t--测试][-v--详细][-version]卷组名称 物理溶栓 [PhysicalVolumePath...]
   
DESCRIPTION/描述
       vgcreate creates a new volume group called VolumeGroupName using the block special device PhysicalVolumePath previously configured for LVM with pvcreate(8).
    vgcreate使用先前为带有pvcreate(8)的lvm配置的块专用设备physicalvolumepath创建一个名为volumegroupname的新卷组。
OPTIONS/选项
       See lvm for common options./常见选项见LVM。
       -c, --clustered {y|n}
              If clustered locking is enabled, this defaults to y indicating that this Volume Group is shared with other nodes in the cluster.
              If the new Volume Group contains only local disks that are not visible on the other nodes, you must specify --clustered n.  If the cluster infrastructure is
              unavailable on a particular node at a particular time, you may still be able to use such Volume Groups.
    
    -c, --簇状 {y|n}           
           如果启用群集锁定,则默认值为Y,表示此卷组与群集中的其他节点共享。如果新卷组仅包含在其他节点上不可见的本地磁盘,则必须指定--clustered n。
     如果在特定时间某个节点上的群集基础结构不可用,则仍可以使用此类卷组。
       -l, --maxlogicalvolumes MaxLogicalVolumes/最大逻辑值
              Sets the maximum number of logical volumes allowed in this volume group.  The setting can be changed with vgchange.  For volume groups with metadata in lvm1
              format,  the  limit  and  default  value  is 255.  If the metadata uses lvm2 format, the default value is 0 which removes this restriction: there is then no
              limit.
     设置此卷组中允许的最大逻辑卷数。可以使用vgchange更改设置。对于元数据为lvm1格式的卷组,限制值和默认值为255。
     如果元数据使用lvm2格式,则默认值为0,这消除了此限制:然后就没有限制。
       -p, --maxphysicalvolumes MaxPhysicalVolumes/最大物理体积
              Sets the maximum number of physical volumes that can belong to this volume group.  The setting can be changed with vgchange.  For volume groups  with  meta-
              data  in lvm1 format, the limit and default value is 255.  If the metadata uses lvm2 format, the default value is 0 which removes this restriction: there is
              then no limit.  If you have a large number of physical volumes in a volume group with metadata in lvm2 format, for tool performance reasons, you should con-
              sider some use of --metadatacopies 0 as described in pvcreate(8).
     设置可以属于此卷组的物理卷的最大数量。可以使用vgchange更改设置。对于元数据为lvm1格式的卷组,限制值和默认值为255。
     如果元数据使用lvm2格式,则默认值为0,这消除了此限制:然后就没有限制。
     如果卷组中有大量物理卷,元数据为lvm2格式,出于工具性能的原因,您应该考虑使用--metadatacopies 0,如pvcreate(8)中所述。
       -s, --physicalextentsize PhysicalExtentSize[kKmMgGtT]/物理张力大小[kKmMgGtT]
              Sets the physical extent size on physical volumes of this volume group.  A size suffix (k for kilobytes up to t for terabytes) is optional, megabytes is the
              default if no suffix is present.  The default is 4 MB and it must be at least 1 KB and a power of 2.
              Once this value has been set, it is difficult to change it without recreating the volume group which would involve backing up and restoring data on any log-
              ical volumes.  However, if no extents need moving for the new value to apply, it can be altered using vgchange -s.
              If  the volume group metadata uses lvm1 format, extents can vary in size from 8KB to 16GB and there is a limit of 65534 extents in each logical volume.  The
              default of 4 MB leads to a maximum logical volume size of around 256GB.
              If the volume group metadata uses lvm2 format those restrictions do not apply, but having a large number of extents will slow down the  tools  but  have  no
              impact on I/O performance to the logical volume.  The smallest PE is 1KB.
              The 2.4 kernel has a limitation of 2TB per block device.
     设置此卷组的物理卷上的物理盘区大小。大小后缀(k表示千字节,t表示兆字节)是可选的,如果没有后缀,则默认为兆字节。默认值为4 MB,并且必须至少为1 KB和2的幂。
    
     一旦设置了该值,就很难在不重新创建卷组的情况下更改该值,这将涉及备份和恢复任何逻辑卷上的数据。但是,如果不需要移动扩展数据块来应用新值,则可以使用vgchange-s对其进行更改。
    
     如果卷组元数据使用lvm1格式,则扩展数据块的大小可以从8KB到16GB不等,并且每个逻辑卷中的扩展数据块限制为65534个。默认值为4 MB会导致最大逻辑卷大小约为256GB。
    
     如果卷组元数据使用lvm2格式,则这些限制不适用,但具有大量扩展数据块将减慢工具速度,但不会影响逻辑卷的I/O性能。最小的PE是1KB。2.4内核的每个块设备限制为2tb。
EXAMPLES/实例
       To create a volume group named test_vg using physical volumes /dev/hdk1, and /dev/hdl1 with default physical extent size of 4MB:
            vgcreate test_vg /dev/sdk1 /dev/sdl1
   
    要使用物理卷/dev/hdk1和/dev/hdl1(默认物理盘区大小为4MB)创建名为test_vg的卷组,请执行以下操作:
   
   vg create test_vg/dev/sdk1/dev/sdl1   
SEE ALSO/参照
       lvm(8), pvdisplay(8), pvcreate(8), vgdisplay(8), vgextend(8), vgreduce(8), lvcreate(8), lvdisplay(8), lvextend(8), lvreduce(8)
Sistina Software UK  LVM TOOLS 2.02.46-RHEL5 (2009-06-18)          VGCREATE(8)/Sistina Software UK LVM工具2.02.46-Rhel5(2009-06-18)vgCreate(8)

man VGCREATE的更多相关文章

  1. 物理卷操作命令:pvcreate,pvscan,pvdisplay.卷组操作命令:vgcreate,vgdisplay.

    新硬盘创建LVM系统过程. 物理卷操作命令:pvcreate,pvscan,pvdisplay. 卷组操作命令:vgcreate,vgdisplay. 逻辑卷操作命令:lvcreate,lvdispl ...

  2. 物理卷操作命令:pvcreate,pvscan,pvdisplay.卷组操作命令:vgcreate,vgdisplay. (转)

    新硬盘创建LVM系统过程. 物理卷操作命令:pvcreate,pvscan,pvdisplay. 卷组操作命令:vgcreate,vgdisplay. 逻辑卷操作命令:lvcreate,lvdispl ...

  3. LVM pvcreate,vgcreate,lvcreate,mkfs

    首先介绍LVM的几个概念:     1. 物理卷Physical volume (PV):可以在上面建立卷组的媒介,可以是硬盘分区,也可以是硬盘本身或者回环文件(loopback file).物理卷包 ...

  4. vgcreate语法

    vgcreate 用于创建LVM卷组 补充说明 vgcreate命令 用于创建LVM卷组.卷组(Volume Group)将多个物理卷组织成一个整体,屏蔽了底层物理卷细节.在卷组上创建逻辑卷时不用考虑 ...

  5. pvcreate vgcreate lvcreate 扩容

    centos6 服务器磁盘扩容 1.创建物理卷 /dev/sdb #pvcreate /dev/sdb 参数:/dev/sdb 设备名 2.创建卷组 vg_02 #vgcreate  vg_02  / ...

  6. LVM基本介绍与常用命令

    一.LVM介绍LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制LVM - 优点:LVM通常用于装备大量磁盘的系统,但它同样适 ...

  7. Linux平台oracle 11g单实例 + ASM存储 安装部署 快速参考

    操作环境:Citrix虚拟化环境中申请一个Linux6.4主机(模板)目标:创建单机11g + ASM存储 数据库 1. 主机准备 2. 创建ORACLE 用户和组成员 3. 创建以下目录并赋予对应权 ...

  8. archlinux安裝手记(Win10+Arch、GPT+UEFI、lvm)

    准备工具和设置制作启动盘连接网络硬盘分区规划分区LVM方案创建文件系统分区挂载激活lvm2钩子基础安装和配置配置镜像源基础系统安装fstab进入系统initramfs引导程序网络搭建使用环境用户管理用 ...

  9. LVM逻辑卷管理命令

    显示分区信息: [root@localhost /]# fdisk -l PV:物理硬盘格式化为物理卷(PV): [root@localhost /]# pvcreate /dev/sdb /dev/ ...

随机推荐

  1. 【C++进阶:STL常见性质】

    STL中的常用容器包括:顺序性容器(vector.deque.list).关联容器(map.set).容器适配器(queue.stac) 转载自:https://blog.csdn.net/u0134 ...

  2. 用Vue来实现音乐播放器(十七):歌手页右侧快速入口实现

    快速入口的列表是其实是之前处理的歌手的数据中的关于title的列表 shorcutList属性是计算属性   通过ret数组中的title计算到的 所以我们要在singer.vue组件中将数据传入到l ...

  3. jmeter测试jdbc、mysql

    1.打入jar包,在测试计划或者直接放在lib/ext下(第三方的包) 2.添加jdbc-connection-config,variable name 和后面的jdbc请求的参数保持一致 Datab ...

  4. 阶段1 语言基础+高级_1-3-Java语言高级_1-常用API_1_第3节 Random类_8-Random概述和基本使用

    用来产生随即数字 构造方法有一个是为空的 每次运行数值都不一样

  5. python2.7+appium环境搭建

    实现android自动化 目录 1.环境准备.安装包准备 2.安装 3.验证环境搭建成功 1.环境准备.安装包准备 第一步:环境准备: java环境 python环境 第二步:准备安装包 Node.j ...

  6. Hand on Machine Learning 第二章:端到端的机器学习

    1.import 模块 import os import tarfile from six.moves import urllib import pandas as pd pd.set_option( ...

  7. centos7安装配置jdk、tomcat

    centos7安装jdk1.8 1.新建文件夹java,上传文件jdk-8u111-linux-x64.tar.gz到java文件夹 2.解压tar包: tar -zxvf jdk-8u111-lin ...

  8. Hibernate的批量抓取

    批量抓取理解:如果我们需要查找到客户的所有联系人的话,按照正常的思路,一般是首先查询所有的客户,得到返回的客户的List集合.然后遍历List集合,得到集合中的每一个客户,在取出客户中的联系人(客户表 ...

  9. instanceof和getClass的区别

    instanceof对比getClass: instanceof 比较的是继承关系或者实现关系的类类型,子类对象或者实现类对象放在前面:而getClass得到的是确切的类型,并不考虑继承,它判断的是引 ...

  10. python 合并字典/拼接字典

    针对于python 3.5以上版本: 最好的最快的最优雅的方法是: result_dict = {**dict_1, **dict_2} 例如:( dict 代表 dictionary,也就是字典) ...