PVCREATE(8)                                                        PVCREATE(8)
NAME/名称
       pvcreate - initialize a disk or partition for use by LVM/初始化磁盘或分区供LVM使用
SYNOPSIS/简介
       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...]/物理体积
DESCRIPTION/描述
       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。
    对于整个磁盘设备,只有分区表必须清除,这将有效地销毁该磁盘上的所有数据。
    这可以通过使用以下命令将第一个扇区归零来完成:
       dd if=/dev/zero of=PhysicalVolume bs=512 count=1
       Continue with vgcreate(8) to create a new volume group on PhysicalVolume, or
       vgextend(8) to add PhysicalVolume to an existing volume group.
    继续使用vgcreate(8)在physicalvolume上创建新卷组,
    或使用vgextend(8)将physicalvolume添加到现有卷组。
OPTIONS/选项
       See lvm(8) for common options./常见选项见LVM(8)。
       -f, --force
              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覆盖此行为。
       -u, --uuid uuid
              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)。
       -y, --yes
              Answer yes to all questions.
     对所有问题回答“是”。
       -Z, --zero y|n
              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选项中的一个或两个。
NEW METADATA OPTIONS/新的元数据选项
       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版本的格式更高效、更具弹性,
    并且为高级用户提供了更大的灵活性和控制能力。
       The new format may be selected on the command line with -M2  or  by  setting
       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”来选择新格式。
    同一卷组中的每个物理卷必须使用相同的格式,
    但计算机上的不同卷组可能同时使用不同的格式:
    工具可以处理这两种格式。其他格式可以作为共享库添加。
       Additional tools for manipulating the locations and sizes of metadata  areas
       will  be  written in due course.  Use the verbose/debug options on the tools
       to see where the metadata areas are placed.
    将在适当的时候编写用于操作元数据区域的位置和大小的其他工具。
    使用工具上的verbose/debug选项查看元数据区域的位置。
       --metadatasize size/元数据大小
              The approximate amount of space to be set  aside  for  each  metadata
              area.  (The size you specify may get rounded.)
     为每个元数据区域留出的大致空间量。
     (您指定的大小可能会四舍五入。)
       --dataalignment alignment
              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。
              To see the location of the first Physical Extent of an existing Phys-
              ical Volume use pvs -o +pe_start .  It will  be  a  multiple  of  the
              requested data_alignment.
     要查看现有物理卷的第一个物理范围的位置,
     请使用pvs -o +pe_start。它将是所请求数据对齐的倍数。
       --metadatacopies copies
              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在分割之后仍然有适当数量的元数据副本!
       --restorefile file
              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)。
       --labelsector sector
              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个扇区-请参见源文件中的标签“扫描扇区”)。
     小心使用。
       --setphysicalvolumesize size
              Overrides the automatically-detected size of the PV.  Use with  care.
     覆盖自动检测到的PV大小。小心使用。
Example/例子
       Initialize  partition  #4  on  the third SCSI disk and the entire fifth SCSI
       disk for later use by LVM:
    初始化第三个SCSI磁盘和整个第五个SCSI磁盘上的分区4,供LVM以后使用:
       pvcreate /dev/sdc4 /dev/sde
SEE ALSO/参照
       lvm(8), vgcreate(8), vgextend(8),  lvcreate(8),  cfdisk(8),  fdisk(8),  los-
       etup(8), mdadm(8), vgcfgrestore(8), vgconvert(8)
Sistina Software UK/英国Sistina软件公司   LVM TOOLS 2.02.46-RHEL5 (2009-06-18)          PVCREATE(8)

MAN PVCREATE的更多相关文章

  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. pvcreate vgcreate lvcreate 扩容

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

  5. Aborted wiping of zfs_member.1 existing signature left on the device.Aborting pvcreate on /dev/sda

    看意思是有什么签名在上面,创建不了逻辑卷,确认数据备份的情况下执行对应的下面命令: wipefs --all --force /dev/sdax

  6. Linux 添加新磁盘,在线扩充空间

    CentOS 7开发环境中的home 目录空间满了,需要增加空间 到虚拟机上执行"ls /sys/class/scsi_host",然后重新扫描SCSI总线来添加设备.如右图.然后 ...

  7. linux下 lvm 磁盘扩容

    打算给系统装一个oracle,发现磁盘空间不足.在安装系统的时候我选择的是自动分区,系统就会自动以LVM的方式分区.为了保证系统后期的可用性,建议所有新系统安装都采用LVM,之后生产上的设备我也打算这 ...

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

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

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

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

随机推荐

  1. php system exexc 立即返回

    有时候会用到php调用服务器端的其它可执行文件,system和exec函数都是阻塞执行的,执行完第三方程序再返回. 如果我们需要立即返回,让第三方程序在后台继续执行,调用方式如下: linux,noh ...

  2. MySQL高可用方案 MHA之一MHA安装

    MHA0.58安装 MHA(Master High Availability)由两部分组成:MHA Manager(管理节点)和MHA Node(数据节点).管理节点mha4mysql-manager ...

  3. oracle查询语句,根据中文的拼音排序

    SELECT * FROM USER t ORDER BY nlssort(FIRSTNAME, 'NLS_SORT=SCHINESE_PINYIN_M')

  4. Linux_VMWare12 Install RHEL7

    目录 目录 前言 Install RHEL7 前言 准备考试,顺便来一波VMWare安装虚拟机的图文详解. Install RHEL7 step1. 选择自定义安装,Next step2. 版本兼容性 ...

  5. Delphi XE2 之 FireMonkey 入门(18) - TLang(多语言切换的实现)

    一个小小的 TLang 类, 实现多语言切换, 挺好的. 它的工作思路是: 1.首先通过 AddLang('语言代码') 添加语言类别, 如: AddLang('en').AddLang('cn'). ...

  6. spring boot添加logging不能启动且不报错

    1.问题: application.yml中添加logging启动失败,不报错,去除后又正常 logging: config: classpath:test-logback-spring.xml报错 ...

  7. 新手解惑:nginx&php-fpm&fastcgi 是什么关系

    首先,CGI是干嘛的?CGI是为了保证web server传递过来的数据是标准格式的,方便CGI程序的编写者.   web server(比如说nginx)只是内容的分发者.比如,如果请求/index ...

  8. 44 答疑(三)--join的写法/Simple nested loop join的性能问题/Distinct和group by的性能/备库自增主键问题

    44 答疑(三) Join的写法 35节介绍了join执行顺序,加了straight_join,两个问题: --1 如果用left join,左边的表一定是驱动表吗 --2 如果两个表的join包含多 ...

  9. c# 解决Socket问题——由于目标机器积极拒绝,无法连接

    关于单机出现这种问题不多赘述,主要阐述服务机和客户机出现这种问题的解决办法. 1.检查防火墙 这种问题出现的最多,特别是你的服务机还是买的各家的云产品,比如阿里云就是到防火墙中添加出入站规则,Azur ...

  10. Python笔记(三十)_python标准异常总结

    python标准异常总结 AssertionError 断言语句(assert)失败 AttributeError 尝试访问未知的对象属性 EOFError 用户输入文件末尾标志EOF(Ctrl+d) ...