HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
p
pvchange(1M) pvchange(1M)
path is the primary path to the device, LVM will begin using the best
alternate path to the device that is available. When the only path to a
device is detached, the associate physical volume will be unavailable
to the volume group. The path remains part of the volume group but
no I/O is queued to it and the path will remain unused by LVM until it
is reattached. Detaching one or more paths to a particular physical
volume will not necessarily cause LVM to stop using the physical
volume entirely. LVM will only stop using the physical volume when
all the paths to the physical volume are detached. Individually
detaching all the paths to a physical volume has the same conse-
quences as detaching the physical volume entirely using the -a N
option. The system administrator may safely diagnose or replace
hardware along the path detached, but care should be taken to avoid
disturbing the PV, if it is still being accessed via other active paths to
it.
N Detach the given path and all other paths to the physical volume.
LVM closes all the paths to the PV and no longer directs any I/O
operations to the PV. If a suitable spare PV is available in the volume
group, LVM will use it to reconstruct the detached disk. Prior to
replacing or repairing any disk belonging to an activated volume
group, the administrator must first use the pvchange(1M) command to
detach the PV. The given path must be an attached path to the PV,
otherwise, the command will fail and display an error message indi-
cating the problem. If there are no attached paths for the physical
volume, the physical volume may be completely disassociated from the
volume group by individually detaching each of the paths to the the
physical volume using the -a noption.
-s Immediately begin accessing the associated physical volume named by pv_path.
-S autoswitch This option specifies the autoswitch behavior for multiported physical volumes
accessed via multiple paths. It has no effect for physical volumes without alter-
nate paths. autoswitch option may be set to one of the following values:
y LVM is directed to automatically switch from the path it is using
whenever a better path to the physical volume is available. LVM will
switch paths when a better path recovers (after it had failed earlier),
or if the current path fails and another path is available. This is the
default.
n LVM is directed to automatically switch to using the best available
path only when the path currently in use is unavailable. LVM will
continue using a specific path for the physical volume as long as it
works, regardless of whether another better path recovers from a
failure.
-x extensibility Set the allocation permission to add physical extents to the physical volume
pv_path. extensibility can have the following values:
y Allow allocation of additional physical extents on the physical volume.
This is the default.
n Prohibit allocation of additional physical extents on the physical
volume. However, logical volumes residing on the physical volume
are accessible.
-t IO_timeout Set IO_timeout for the physical volume to the number of seconds indicated. An
IO_timeout value of zero (0) causes the system to use the default value supplied
by the device driver associated with the physical device. IO_timeout is used by
the device driver to determine how long to wait for disk transactions to complete
before concluding that an IO request can not be completed (and the device is
offline or unavailable).
-z sparepv This option requires the installation of the optional HP MirrorDisk/UX software.
It 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
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1M−−693