HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)

l
lvchange(1M) lvchange(1M)
See lvdisplay (1M) for display values.
-M mirror_write_cache Set the Mirror Write Cache flag. This option is allowed only when the
logical volume is not opened. mirror_write_cache can have one of the fol-
lowing values:
y Set Mirror Write Cache on. Every write to a mirror copy is
recorded in the Mirror Write Cache and written into the Mirror
Consistency Record on the disk if a cache-miss occurs. This allows
LVM to determine whether all mirror copies are identical, even
across system crashes. When the volume group is activated, the
Mirror Consistency Record is used to perform mirror consistency
recovery.
n Set Mirror Write Cache off. Mirror write does not incur an addi-
tional write to the Mirror Consistency Record on the disk.
-p permission Set the access permission. permission can have one of the following
values:
w Set the access permission to read-write.
r Set the access permission to read-only.
-r relocate Set the bad block relocation policy. relocate can have one of the following
values:
y Allow bad block relocation. Upon a media failure (detection of a
bad block of data on disk), LVM will mark the failed block in the
Bad Block Directory, and attempt to relocate the block to a new
location on disk. If relocation is successful then no error will be
returned, and future I/O requests which contain the bad block will
be directed to the new location. If relocation is unsuccessful, an I/O
error will be returned, and subsequent I/O requests containing the
bad block will again attempt relocation.
n Prevent bad block relocation. Upon a media failure, LVM will
mark the failed block as bad in the Bad Block Directory, but will
NOT attempt to relocate the bad block to a new location on disk.
Future I/O requests which contain the bad block will return with an
I/O error. No attempt will be made to access the bad block.
N Disable bad block relocation and the Bad Block Directory. Upon a
media failure, LVM will NOT attempt to relocate the bad block. In
addition it will NOT enter the block in the Bad Block Directory.
LVM will have no record of the block being bad, and will attempt to
access it on future I/O requests.
-s strict Set the strict allocation policy. Mirror copies of a logical extent can be
allocated to share or not share the same physical volume or physical
volume group. This option only makes sense when the physical volumes
of the volume group that owns the specified logical volume reside on
different physical disks. strict can have one of the following values:
y Set a strict allocation policy. Mirrors of a logical extent cannot
share the same physical volume.
g Set a PVG-strict allocation policy. Mirrors of a logical extent can-
not share the same physical volume group.
n Do not set a strict or a PVG-strict allocation policy. Mirrors of a
logical extent can share the same physical volume.
When a logical volume is mirrored, the following changes are not
allowed:
From nonstrict to strict
From nonstrict to PVG-strict
From strict to PVG-strict
Section 1M394 Hewlett-Packard Company 3 HP-UX 11i Version 2: September 2004