|
|
HP-UX Reference > Ppvcreate(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEpvcreate — create physical volume for use in LVM volume group DESCRIPTIONThe pvcreate command initializes a direct access storage device (a raw disk device) for use as a physical volume in a volume group. If pv_path contains a file system and the -f option is not specified, pvcreate asks for confirmation. The request for confirmation avoids accidentally deleting a file system. Furthermore, when the -f option is not specified, the operation is denied if pv_path already belongs to another volume group, or the pv_path refers to a disk device under the control of the VERITAS Volume Manager. After using pvcreate to create a physical volume, use vgcreate to add it to a new volume group or vgextend to add it to an existing volume group (see vgcreate(1M) and vgextend(1M)). Disks cannot be added to a volume group until they are properly initialized by pvcreate. pv_path can be made into a bootable disk by specifying the -B option, which reserves space on the physical volume for boot-related data. This is a prerequisite for creating root volumes on logical volumes. Refer to mkboot(1M) and lif(4) for more information. Options and Argumentspvcreate recognizes the following options and arguments:
EXTERNAL INFLUENCESEnvironment VariablesLANG determines the language in which messages are displayed. If LANG is not specified or is null, it defaults to "C" (see lang(5)). If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)). EXAMPLESCreate a physical volume on raw device /dev/rdsk/c1t0d0, and force the creation without confirmation: pvcreate -f /dev/rdsk/c1t0d0 Create a bootable physical volume for an Itanium-based system on raw device /dev/rdsk/c1t0d0s2, and force the creation without confirmation: pvcreate -fB /dev/rdsk/c1t0d0s2 Create a physical volume on raw device /dev/rdsk/c1t0d0, specifying that a bad blocks list (7, 13, 95, and 133) must be read from standard input: echo 7 13 95 133 | pvcreate -b /dev/rdsk/c1t0d0 WARNINGSCheck the manufacturer's listing or run diagnostics testing for bad blocks on the device prior to creating a physical volume. If bad blocks are present, use the -b option when creating the physical volume. Itanium(R)-based System WarningIf you are using pvcreate on an Itanium-based system boot disk, ensure that the device file specifies the EFI partition number. For example, pvcreate /dev/rdsk/c1t1d0s1 pvcreate initializes only the first 2,147,483,647 Kilobytes (2TB - 1KB) of disk space when the disk size exceeds this value. Disk space beyond this point will not be used by LVM. |
|