MAN PVCREATE
pvcreate - initialize a disk or partition for use by LVM/初始化磁盘或分区供LVM使用
pvcreate [-d|--debug] [-f[f]|--force [--force]] [-y|--yes] [-h|--help]
[-t|--test] [-v|--verbose]/冗长的 [--labelsector]/标签扇区 [-M|--metadatatypetype]/元数据类型 [--meta-
datacopies#copies] [--metadatasizesize] [--dataalignmentalignment]
[--restorefilefile] [--setphysicalvolumesizesize] [-u|--uuiduuid]/通用唯一标示符 [--ver-
sion] [-Z|--zeroy|n] PhysicalVolume [PhysicalVolume...]/物理体积
pvcreate initializes PhysicalVolume for later use by the Logical Volume Man-
ager (LVM). Each PhysicalVolume can be a disk partition, whole disk, meta
device, or loopback file. For DOS disk partitions, the partition id should
be set to 0x8e using fdisk(8), cfdisk(8), or a equivalent. For whole disk
devices only the partition table must be erased, which will effectively
destroy all data on that disk. This can be done by zeroing the first sector
with:
pvcreate初始化physicalvolume以供逻辑卷管理器(lvm)稍后使用。
每个物理卷可以是一个磁盘分区、整个磁盘、元设备或环回文件。
对于DOS磁盘分区,应使用fdisk(8)、cfdisk(8)或等效工具将分区ID设置为0x8e。
对于整个磁盘设备,只有分区表必须清除,这将有效地销毁该磁盘上的所有数据。
这可以通过使用以下命令将第一个扇区归零来完成:
vgextend(8) to add PhysicalVolume to an existing volume group.
继续使用vgcreate(8)在physicalvolume上创建新卷组,
或使用vgextend(8)将physicalvolume添加到现有卷组。
See lvm(8) for common options./常见选项见LVM(8)。
Force the creation without any confirmation. You can not recreate
(reinitialize) a physical volume belonging to an existing volume
group. In an emergency you can override this behaviour with -ff.
强制创建而不进行任何确认。
不能重新创建(重新初始化)属于现有卷组的物理卷。
在紧急情况下,您可以使用-ff覆盖此行为。
Specify the uuid for the device. Without this option, pvcreate gen-
erates a random uuid. All of your physical volumes must have unique
uuids. You need to use this option before restoring a backup of LVM
metadata onto a replacement device - see vgcfgrestore(8).
specify UUID的装置。
没有这个选项,pvcreate generates A随机的UUID。
你所有的物理volumes必须有独特的UUID。
你需要使用这两个选项恢复备份之前的一部onto LVM元数据(见vgcfgrestore置换装置(8)。
Answer yes to all questions.
对所有问题回答“是”。
Whether or not the first 4 sectors (2048 bytes) of the device should
be wiped. If this option is not given, the default is to wipe these
sectors unless either or both of the --restorefile or --uuid options
were specified.
是否应擦除设备的前4个扇区(2048字节)。
如果不提供此选项,则默认情况下将擦除这些扇区,
除非指定了--restorefile或--uuid选项中的一个或两个。
LVM2 introduces a new format for storing metadata on disk. This new format
is more efficient and resilient than the format the original version of LVM
used and offers the advanced user greater flexibility and control.
lvm2引入了一种在磁盘上存储元数据的新格式。
这种新的格式比原来使用的LVM版本的格式更高效、更具弹性,
并且为高级用户提供了更大的灵活性和控制能力。
format = "lvm2" in the global section of lvm.conf. Each physical volume in
the same volume group must use the same format, but different volume groups
on a machine may use different formats simultaneously: the tools can handle
both formats. Additional formats can be added as shared libraries.
可以在命令行上使用-m2或在lvm.conf的global部分中设置format=“lvm2”来选择新格式。
同一卷组中的每个物理卷必须使用相同的格式,
但计算机上的不同卷组可能同时使用不同的格式:
工具可以处理这两种格式。其他格式可以作为共享库添加。
will be written in due course. Use the verbose/debug options on the tools
to see where the metadata areas are placed.
将在适当的时候编写用于操作元数据区域的位置和大小的其他工具。
使用工具上的verbose/debug选项查看元数据区域的位置。
The approximate amount of space to be set aside for each metadata
area. (The size you specify may get rounded.)
为每个元数据区域留出的大致空间量。
(您指定的大小可能会四舍五入。)
Align the offset of the start of the data to a multiple of this num-
ber. You should also specify an appropriate PhysicalExtentSize when
creating the Volume Group with vgcreate.
将数据开头的偏移量与此数字的倍数对齐。
使用vgcreate创建卷组时,还应指定适当的physicalzentsize。
ical Volume use pvs -o +pe_start . It will be a multiple of the
requested data_alignment.
要查看现有物理卷的第一个物理范围的位置,
请使用pvs -o +pe_start。它将是所请求数据对齐的倍数。
The number of metadata areas to set aside on each PV. Currently this
can be 0, 1 or 2. If set to 2, two copies of the volume group meta-
data are held on the PV, one at the front of the PV and one at the
end. If set to 1 (the default), one copy is kept at the front of the
PV (starting in the 5th sector). If set to 0, no copies are kept on
this PV - you might wish to use this with VGs containing large num-
bers of PVs. But if you do this and then later use vgsplit you must
ensure that each VG is still going to have a suitable number of
copies of the metadata after the split!
要在每个pv上预留的元数据区域数。当前可以是0、1或2。如果设置为2,
卷组元数据的两个副本将保存在pv上,一个在pv前面,一个在末尾。
如果设置为1(默认值),一个副本将保存在PV的前面(从第5个扇区开始)。
如果设置为0,则此pv上不保留任何副本-您可能希望将此设置与包含大量pv的vg一起使用。
但是,如果您这样做,然后再使用vgspit,那么您必须确保每个vg在分割之后仍然有适当数量的元数据副本!
In conjunction with --uuid, this extracts the location and size of
the data on the PV from the file (produced by vgcfgbackup) and
ensures that the metadata that the program produces is consistent
with the contents of the file i.e. the physical extents will be in
the same place and not get overwritten by new metadata. This pro-
vides a mechanism to upgrade the metadata format or to add/remove
metadata areas. Use with care. See also vgconvert(8).
结合--uuid,这将从文件(由vgcfgbackup生成)中提取pv上数据的位置和大小,
并确保程序生成的元数据与文件的内容一致,即物理数据块将在同一位置,
而不会被新的元数据覆盖。这提供了一种机制来升级元数据格式或添加/删除元数据区域。
小心使用。另请参见vgconvert(8)。
By default the PV is labelled with an LVM2 identifier in its second
sector (sector 1). This lets you use a different sector near the
start of the disk (between 0 and 3 inclusive - see LABEL_SCAN_SECTORS
in the source). Use with care.
默认情况下,PV在其第二个扇区(扇区1)中用LVM2标识符标记。
这允许您在磁盘开头附近使用不同的扇区(介于0到3之间,包括0到3个扇区-请参见源文件中的标签“扫描扇区”)。
小心使用。
Overrides the automatically-detected size of the PV. Use with care.
覆盖自动检测到的PV大小。小心使用。
Initialize partition #4 on the third SCSI disk and the entire fifth SCSI
disk for later use by LVM:
初始化第三个SCSI磁盘和整个第五个SCSI磁盘上的分区4,供LVM以后使用:
lvm(8), vgcreate(8), vgextend(8), lvcreate(8), cfdisk(8), fdisk(8), los-
etup(8), mdadm(8), vgcfgrestore(8), vgconvert(8)
转载于:https://www.cnblogs.com/niaocaizhou/p/10874735.html
MAN PVCREATE相关推荐
- 【Linux逻辑卷管理】之pvcreate、pvdisplay和pvremove
文章目录 一.逻辑卷管理(LVM)概念 1. LVM 定义 2. 物理卷(PV) 3. 卷组(VG) 4. 逻辑卷(LV) 二.创建逻辑卷 1. pvcreate命令将分区标记为物理卷,==创建物理卷 ...
- Linux之LVM管理 pvcreate,vgcreate,lvcreate命令
一.逻辑卷管理(LVM)概念 逻辑卷和逻辑卷管理有助于更加轻松地管理磁盘空间. 如果托管逻辑卷的文件系统需要更多空间可以将其卷组中的可用空间分配给逻辑卷,并且可以调整文件系统的大小. 如果磁盘开始出现 ...
- 建硬盘分区,pvcreate 报:“Can topen /dev/sdb1 exclusivel...?“;磁盘分区报:设备或资源;RHEL本地存储项目二mkfs.vfat报错
建立硬盘分区,pvcreate 时报错:"Can topen /dev/sdb1 exclusively.Mounted filesystem?" dmsetup remove a ...
- pvcreate创建时报Metadata area size too small
pvcreate创建时报metadata area size too small 元数据空间不足 解决方法:pv创建的时候增加metadata 的大小 pvcreate --metadatasize ...
- pvcreate -ff -y /dev/sdb1强制修盘
有几块盘搞坏掉了,紧急修复 pvcreate [参数] 常用参数: -f 强制创建物理卷,不需要用户确认 -u 指定设备的UUID -y 所有的问题都回答yes 强制修盘 pvcreate -ff - ...
- Linux的LVM管理磁盘 pvcreate vgcreate lvcreate
安装oracle数据库时,我们一般单独挂载一块非系统磁盘,然后将磁盘使用LVM动态卷管理的方式进行配置. 本文仅记录工作中常用的操作流程及命令.非命令教学文章. 文章目录 1. 添加新磁盘 2. fd ...
- LVM pvcreate,vgcreate,lvcreate,mkfs
LVM的几个概念: 1. 物理卷Physical volume (PV):可以在上面建立卷组的媒介,可以是硬盘分区,也可以是硬盘本身或者回环文件(loopback file).物理卷包括一个特殊的he ...
- linux centos fedora 扩展硬盘分区操作命令 fdisk df lvm pvcreate vgcreate lvcreate
linux centos fedora 扩展 硬盘分区 lvm fdisk df pvcreate vgcreate lvcreate 操作 命令 一.硬盘分区 在Linux系统中一个硬盘分区上限为1 ...
- 磁盘 - 使用LVM进行磁盘扩容(fdisk, LVM, pvcreate, lvcreate, parted)
本文的所有操作届在Ubuntu 12.04 LTS上验证成功,其他发行版请自行查阅相关命令. 给某台服务器或者虚拟机VM进行LVM扩容的前提是,这台机器在安装创建的时候开启了LVM功能. 对于服务器来 ...
- Linux下非逻辑卷扩容之创建逻辑卷pvcreate是否会损坏原数据测试
导语 我们都知道使用lv逻辑卷可以方便的扩容. 但是当原盘不是逻辑卷且其上有数据的时候,如何扩容呢? 因为扩容只能是磁盘type为逻辑卷lvm才可以. 那么将有数据的盘直接pvcreate为虚拟卷lv ...
最新文章
- _cdecl和_stdcal的区别
- 由最小生成树算法改到最短路径算法代码----为了区分两者的区别
- 数据库创建联合主键(MySql)
- 速成pytorch学习——5天nn.functional 和 nn.Module
- rk3399固件烧录方法介绍
- 九月十月百度,迅雷,华为,阿里巴巴笔试面试六十题(第411~470题)
- 如何写出一份让面试官刮目相看的高质量简历
- 西数打造面向数据中心的Gold产品组合
- linux卸载杀毒软件clama,centos 6 安装clamav杀毒软件查毒
- asa清空配置_思科ASA基本配置
- 和平精英小程序服务器开小差,1个BUG存在了4年 光子通过小提示说出了无法修复的原因...
- 嵌入式车牌识别与称重系统
- Objective_C学习笔记
- maven 打包错误:Please refer to xxx\target\surefire-reports for the individual test results.
- 设计方法(原型法、敏捷开发)
- Item category 04000 is missing (obligatory in accounting transaction 1000/0)
- 消防宣传科普|消防安全知识网上答题挑战赛活动方案
- Serial Presence Detect (SPD) Table
- 成都c++语言青少年培训,成都比较有名气的少儿C++编程培训班
- byte的取值范围-128~127原理