pvchange.1m (2010 09)

p
pvchange(1M) pvchange(1M)
-z sparepv This option is only applicable for physical volumes belonging to volume groups
version 1.0. Sparing is not supported for physical volumes belonging to
volume groups version 2.0 or higher. This option requires the installation of
the optional HP MirrorDisk/UX software.
This option allows you to change the physical volume specified by pv_path into
a spare physical volume for its volume group, or change the specified spare
physical volume back into a regular physical volume for this volume group.
No physical extents from a spare physical volume will be available as part of
the "free" pool of extents in the volume group. A spare physical volume will
only be used in the event that another physical volume within this volume
group becomes unavailable (fails). sparepv can have one of the following
values:
y Change the specified physical volume to be a "stand-by" spare for its
volume group. The specified physical volume must not have extents allo-
cated on it (i.e., no logical volumes residing on it) at the time this com-
mand is issued. A stand-by spare physical volume will only be used in
the event of a failure of another physical volume -- prior to such a
failure, no logical volume is allowed to reside on it.
n Change the specified spare physical volume back into a regular physical
volume. If the physical volume was a stand-by spare, then all of the disk
space associated with it will be immediately available for use by logical
volumes. If the physical volume is an "active" spare, that is, it was previ-
ously a stand-by spare but then took over for a failed physical volume, it
will simply mark the physical volume as a regular member of its volume
group and the logical volumes residing on it will remain unchanged.
-p proactivepolling (See WARNINGS section). This option specifies LVM’s proactive polling
behavior on alternate links. proactivepolling can have one of the following
values:
y Enable LVM’s proactive polling for alternate links of a physical volume.
LVM will periodically test alternate links. This is the default.
n Disable LVM’s proactive polling for alternate links of a physical volume.
LVM will not periodically test alternate links.
Attaching and Detaching Physical Volumes
Detaching a physical volume makes the data on that disk unavailable. LVM will not write or read any
user data or LVM metadata to the disk while it is detached. Consequently, it is important for the
administrator to ensure that the data on the disk is sufficiently mirrored to satisfy availability require-
ments prior to making the device unavailable by detaching it.
Although detaching a path or physical volume ensures it is unavailable to LVM, attaching a path or phy-
sical volume will not necessarily make the path or physical volume available again. Attaching a path or
physical volume only makes it available for LVM to use once the disk is working. For instance, if a disk is
spinning up, LVM will successfully attach the disk, but the disk will not be available until it is ready.
Detaching a physical volume or path only temporarily changes the status of the indicated path or physical
volume. However, it does not change the volume group configuration. When a physical volume is
detached, it will automatically be attached again the next time the volume group is activated using the
vgchange command (see vgchange (1M)). If the objective is to permanently add or remove a path or
physical volume from the volume group, the vgextend or vgreduce commands (see vgextend (1M), and
vgreduce (1M)) should instead be used.
Warning: Detaching any physical volume or path using the
-a N or -a n options also disables
automatically attaching any paths to any of the physical volumes in the volume group. LVM will no
longer attempt to automatically recover any unattached physical volumes in the volume group, not just
the ones explicitly detached. To cause LVM to once again automatically attach devices in the volume
group use the -a y options of vgchange command.
Attaching or Detaching Physical Volumes in Shared Volume Groups
The scope of the
pvchange command is limited to the specific node on which it runs. Systems that are
part of a Serviceguard cluster operate independently. To replace disks that are part of a volume group
shared by a Serviceguard cluster, the physical volume must be detached and attached independently on
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3