United States-English |
|
|
HP-UX Reference > Ppvchange(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEpvchange — 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 DESCRIPTIONThe pvchange command changes the characteristics and access path of a physical volume (pv_path) in a volume group. For multiported devices accessed via multiple paths, pvchange may be used to customize the circumstances 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 mirroring 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 section). Options and Argumentspvchange recognizes the following options and arguments.
Attaching and Detaching Physical VolumesDetaching 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 requirements 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 physical 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 GroupsThe 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 each of the systems in the cluster. Alternate Links (PVLINKS)In this release of HP-UX, LVM continues to support Alternate Links to a device to allow continued access to the device, if the primary link fails. This multiple link or multipath solution increases data availability, but does not allow the multiple paths to be used simultaneously. There is a new feature introduced in the Mass Storage Subsystem on this version of HP-UX that also supports multiple paths to a device and allows access to the multiple paths simultaneously. The Mass Storage Subsystem will balance the I/O load across the valid paths. This new multi-path behavior is enabled and disabled through the use of the scsimgr command. See scsimgr(1M) for details. It is no longer required or recommended to configure LVM with alternate links. However, it is possible to maintain the traditional LVM behavior. To do so, both of the following criteria must be met:
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)). EXAMPLESProhibit the allocation of additional physical extents to a physical volume: pvchange -x n /dev/dsk/c0t0d0 Allow the allocation of additional physical extents to a physical volume: pvchange -x y /dev/dsk/c0t0d0 Only switch paths when the current path is unavailable. Do not switch back to a prior path which had failed and has recovered, when the current path works: pvchange -S n /dev/dsk/c0t0d0 Switch paths whenever a better path becomes available again after a failure, even if the current path is fine: pvchange -S y /dev/dsk/c0t0d0 Manually switch a physical volume to use another controller path: pvchange -s /dev/dsk/c2t0d2 Set the IO_timeout value for a physical volume to 60 seconds: pvchange -t 60 /dev/dsk/c2t0d2 Set the IO_timeout value for a physical volume to zero (0) to use the driver default: pvchange -t 0 /dev/dsk/c2t0d2 Change the (empty) physical volume to become a stand-by spare for the volume group: pvchange -z y /dev/dsk/c2t0d2 Change the (active or stand-by) spare physical volume to become a regular member of the volume group: pvchange -z n /dev/dsk/c2t0d2 Detach a path to a physical volume pvchange -a n /dev/dsk/c2t0d2 Detach all the paths to a physical volume pvchange -a N /dev/dsk/c2t0d2 Attach a path to a physical volume pvchange -a y /dev/dsk/c2t0d2 The vgchange command may be used to attach all the physical volumes in a volume group and resume automatically attaching the failed physical volumes. vgchange -a y /dev/vg_work WARNINGSIf the Mass Storage Subsystem multipath solution is enabled, the pvchange command options that are link specific may not stop I/Os or switch links, as they did in earlier releases. This means that pvchange -a n, pvchange -s, and pvchange -S may not stop all I/Os on a given path. The scsimgr command should be used to disable the links. SEE ALSOpvdisplay(1M), scsimgr(1M), vgcfgbackup(1M), vgchange(1M). vgextend(1M), vgreduce(1M), environ(5), lang(5), intro(7), lvm(7). |
Printable version | ||
|