zoukankan      html  css  js  c++  java
  • MAN PVCREATE

    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)
  • 相关阅读:
    用面向对象做练习题
    面向对象
    php数组
    PHP函数
    php语句函数
    mySQL函数
    mySQL相关知识
    mySQL建表及练习题(下)
    mySQL建表及练习题(上)
    HTML5 canvas画布标签
  • 原文地址:https://www.cnblogs.com/niaocaizhou/p/10874735.html
Copyright © 2011-2022 走看看