HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

p
pvchange(1M) pvchange(1M)
NAME
pvchange - change characteristics and access path of physical volume in LVM volume group
SYNOPSIS
/usr/sbin/pvchange
[-A autobackup] -a
availability pv_path
/usr/sbin/pvchange
[-A autobackup] -s
pv_path
/usr/sbin/pvchange
[-A autobackup] -S
autoswitch pv_path
/usr/sbin/pvchange
[-A autobackup] -x
extensibility pv_path
/usr/sbin/pvchange
[-A autobackup] -t
IO_timeout pv_path
/usr/sbin/pvchange
[-A autobackup] -z
sparepv pv_path
Remarks
Only
pvchange -a can be performed if the volume group is activated in shared mode. All other options
are not allowed for physical volumes in shared volume groups.
DESCRIPTION
The pvchange command changes the characteristics and access path of a physical volume (pv_path)ina
volume group.
For multiported devices accessed via multiple paths,
pvchange may be used to customize the cir-
cumstances that may cause LVM to automatically switch from one path to another, or when LVM will
switch back to a prior path which failed when it is available again (generally described as the physical
volume’s autoswitch behavior). pvchange also permits you to switch manually to a specific path to the
physical volume (see WARNINGS section).
pvchange sets the allocation permission to add physical extents to the physical volume.
If you have installed the optional HP MirrorDisk/UX software, you can use the
-z option to designate a
spare physical volume to be used to replace an existing physical volume within a volume group when mir-
roring is in effect, in the event the existing physical volume fails.
pvchange can also be used to attach or detach specific paths or physical volumes (see WARNINGS sec-
tion).
Options and Arguments
pvchange recognizes the following options and arguments.
pv_path The block device path name of a physical volume.
-A autobackup Set automatic backup for this invocation of this command. autobackup can have
one of the following values:
y Automatically back up configuration changes made to the logical volume.
This is the default.
After this command executes, the vgcfgbackup command (see
vgcfgbackup(1M)) is executed for the volume group to which the logical
volume belongs.
n Do not back up configuration changes this time.
-a availability Attach or detach the physical volume pv_path. availability can have the follow-
ing values:
y Attach the indicated path to the physical volume. An attached path or dev-
ice is available for LVM to use. Attaching a path makes that path available
to the volume group, if possible. LVM may begin using the path if neces-
sary to access the disk. If formerly all the paths were unavailable to a
given physical volume, making any path available will make the physical
volume available again.
n (See WARNINGS section). Detach only the indicated path to the physical
volume. A detached path is not available for LVM to use. Detaching a sin-
gle path causes LVM to close the device for that one path and to stop using
it. If the path is the primary path to the device, LVM will begin using the
best alternate path to the device that is available.
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 185