HP-UX Reference (11i v1 05/09) - 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
/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.
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.
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 logi-
cal 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
device is available for LVM to use. The system administrator should
always presume that all the disks that belong to an activated volume
group are attached and may be used by LVM at any time, unless LVM
has been specifically notified to detach them. Attaching a path makes
that path available to the volume group, if possible. LVM may begin
using the path if necessary 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 Detach only the indicated path to the physical volume. A detached
path is not available for LVM to use. Detaching a single path causes
LVM to close the device for that one path and to stop using it. If the
Section 1M692 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005