man VGCREATE
vgcreate - create a volume group/创建卷组
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的新卷组。
See lvm for common options./常见选项见LVM。
If clustered locking is enabled, this defaults to y indicating that this Volume Group is shared with other nodes in the cluster.
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。
如果在特定时间某个节点上的群集基础结构不可用,则仍可以使用此类卷组。
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,这消除了此限制:然后就没有限制。
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)中所述。
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.
ical volumes. However, if no extents need moving for the new value to apply, it can be altered using vgchange -s.
default of 4 MB leads to a maximum logical volume size of around 256GB.
impact on I/O performance to the logical volume. The smallest PE is 1KB.
设置此卷组的物理卷上的物理盘区大小。大小后缀(k表示千字节,t表示兆字节)是可选的,如果没有后缀,则默认为兆字节。默认值为4 MB,并且必须至少为1 KB和2的幂。
一旦设置了该值,就很难在不重新创建卷组的情况下更改该值,这将涉及备份和恢复任何逻辑卷上的数据。但是,如果不需要移动扩展数据块来应用新值,则可以使用vgchange-s对其进行更改。
如果卷组元数据使用lvm1格式,则扩展数据块的大小可以从8KB到16GB不等,并且每个逻辑卷中的扩展数据块限制为65534个。默认值为4 MB会导致最大逻辑卷大小约为256GB。
如果卷组元数据使用lvm2格式,则这些限制不适用,但具有大量扩展数据块将减慢工具速度,但不会影响逻辑卷的I/O性能。最小的PE是1KB。2.4内核的每个块设备限制为2tb。
To create a volume group named test_vg using physical volumes /dev/hdk1, and /dev/hdl1 with default physical extent size of 4MB:
要使用物理卷/dev/hdk1和/dev/hdl1(默认物理盘区大小为4MB)创建名为test_vg的卷组,请执行以下操作:
vg create test_vg/dev/sdk1/dev/sdl1
lvm(8), pvdisplay(8), pvcreate(8), vgdisplay(8), vgextend(8), vgreduce(8), lvcreate(8), lvdisplay(8), lvextend(8), lvreduce(8)
man VGCREATE的更多相关文章
- 物理卷操作命令:pvcreate,pvscan,pvdisplay.卷组操作命令:vgcreate,vgdisplay.
新硬盘创建LVM系统过程. 物理卷操作命令:pvcreate,pvscan,pvdisplay. 卷组操作命令:vgcreate,vgdisplay. 逻辑卷操作命令:lvcreate,lvdispl ...
- 物理卷操作命令:pvcreate,pvscan,pvdisplay.卷组操作命令:vgcreate,vgdisplay. (转)
新硬盘创建LVM系统过程. 物理卷操作命令:pvcreate,pvscan,pvdisplay. 卷组操作命令:vgcreate,vgdisplay. 逻辑卷操作命令:lvcreate,lvdispl ...
- LVM pvcreate,vgcreate,lvcreate,mkfs
首先介绍LVM的几个概念: 1. 物理卷Physical volume (PV):可以在上面建立卷组的媒介,可以是硬盘分区,也可以是硬盘本身或者回环文件(loopback file).物理卷包 ...
- vgcreate语法
vgcreate 用于创建LVM卷组 补充说明 vgcreate命令 用于创建LVM卷组.卷组(Volume Group)将多个物理卷组织成一个整体,屏蔽了底层物理卷细节.在卷组上创建逻辑卷时不用考虑 ...
- pvcreate vgcreate lvcreate 扩容
centos6 服务器磁盘扩容 1.创建物理卷 /dev/sdb #pvcreate /dev/sdb 参数:/dev/sdb 设备名 2.创建卷组 vg_02 #vgcreate vg_02 / ...
- LVM基本介绍与常用命令
一.LVM介绍LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制LVM - 优点:LVM通常用于装备大量磁盘的系统,但它同样适 ...
- Linux平台oracle 11g单实例 + ASM存储 安装部署 快速参考
操作环境:Citrix虚拟化环境中申请一个Linux6.4主机(模板)目标:创建单机11g + ASM存储 数据库 1. 主机准备 2. 创建ORACLE 用户和组成员 3. 创建以下目录并赋予对应权 ...
- archlinux安裝手记(Win10+Arch、GPT+UEFI、lvm)
准备工具和设置制作启动盘连接网络硬盘分区规划分区LVM方案创建文件系统分区挂载激活lvm2钩子基础安装和配置配置镜像源基础系统安装fstab进入系统initramfs引导程序网络搭建使用环境用户管理用 ...
- LVM逻辑卷管理命令
显示分区信息: [root@localhost /]# fdisk -l PV:物理硬盘格式化为物理卷(PV): [root@localhost /]# pvcreate /dev/sdb /dev/ ...
随机推荐
- 线性中继器 Linear Repeater
线性中继器(Linear Repeater,缩写L-REP) 高速信号在传输介质上传递时,信号衰减和噪声会导致有效数据信号越来越弱.L-REP就是用来再生高速信号,通过使用同等化(Equalizat ...
- 十二、python字符串方法汇总
'''1. index():检测字符串str1中是否包含字符串str2 语法:str1.index(str2,beg,end) str:指定检索的字符串:beg开始的索引,默认为0:end结束的索引, ...
- bash如何向上向下移动历史命令记录
bash如何在 历史命令记录 中上下移动? 通过bash本身的设置,就可以做到! : 用shift+up , shift+down 来上下移动 : 单纯的up/down是调用历史命令
- fatal: repository 'xxxx' not found
环境:centOS7 背景:公司代码仓库迁移,因而配置的jenkins自动打包git地址也要跟着变化. 问题描述:git clone http xxxx.git后报错: fatal: reposit ...
- Delphi XE2 之 FireMonkey 入门(16) - 滤镜: 实例测试
窗体上需要 TImage.TOpenDialog 和六个按钮. unit Unit1; interface uses System.SysUtils, System.Types, System.U ...
- Js dom 学习
节点类型 文档节点: 一棵DOM树的顶端是文档节点,它呈现为整个页面(相当于document对象),当需要访问任何元素.属性或文本节点时,都需要通过文档节点来进行导航.(document.) 元素节点 ...
- Trailing Zeroes (III) LightOJ - 1138 不找规律-理智推断-二分
其实有几个尾零代表10的几次方但是10=2*510^n=2^n*5^n2增长的远比5快,所以只用考虑N!中有几个5就行了 代码看别人的: https://blog.csdn.net/qq_422797 ...
- Java课堂笔记(三):抽象类和接口
在面向对象一文中,我们说了多态的一个功能是将“做什么”和“怎么做”分离开来,所采用的方法是将不同的具体实现放在不同的子类中,然后向接口中传入一个父类对象的引用.而本篇博客要说的内容则为接口(此处&qu ...
- SQL Server增量备份数据[转]
服务器中一个数据库DB,其中表A有几个地方要写入的,程序设定在网络不通的时候也可以用本机的数据库运行,在网络通达后,再将本机的数据写回到服务器中,经研究,增量备份有以下几种可能性: 1. ...
- Sudoku (剪枝+状态压缩+预处理)
[题目描述] In the game of Sudoku, you are given a large 9 × 9 grid divided into smaller 3 × 3 subgrids. ...