pvchange.1m (2012 03)
p
pvchange(1M) pvchange(1M)
• To display the -C
and -T settings for a particular PV, use pvdisplay -v. The counters associ-
ated with each threshold can also be displayed using
pvdisplay. For example:
$ pvdisplay -v /dev/disk/disk80
...
Media error threshold count 1200
Media error current count 8
Media error threshold time 14400
Media error elapsed time 3700
The above sample partial output of pvdisplay indicates that media error occurred 8 times dur-
ing past 3700 seconds on this PV. Unlike the threshold values, these counters are not permanent
across reboot.
Note that the counter
Media error elapsed time
shows the time that has elapsed since
the first media error occurrence and not since the -T threshold is set.
• The media error counters include only the failures that occur during recovery IOs, such as mirror
resync IOs and internal metadata IOs. User IO failures are not included in these counters.
• The counters shown above will be reset on any of the following conditions:
(Both counters will be reset for the first 3 cases below.)
- When either of the
-C or -T threshold is reached.
- Manual reset using
pvchange -R m.
- Deactivation of the volume group.
-When
-C or -T threshold values are set to zero, the corresponding counter will be reset.
Note: In case a bad disk has been identified and replaced before the threshold is reached, ensure
that the counters are reset manually.
CAUTION: When the PV is marked unavailable, all LV regions on this PV, having no active mirrors on
other PVs, will be inaccessible. For logical volumes that cannot tolerate unavailability, ensure that
sufficient mirror copies exist when this feature is turned on.
EXTERNAL INFLUENCES
Environment Variables
LANG 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)).
EXAMPLES
Prohibit 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
HP-UX 11i Version 3: March 2012 − 5 − Hewlett-Packard Company 5