 |
Index for Section 8 |
|
 |
Alphabetical listing for L |
|
lvchange(8)
NAME
lvchange - Changes the characteristics of a logical volume.
SYNOPSIS
/usr/sbin/lvchange [-a Availability] [-d Schedule] [-p Permission] [-r
Relocate] [-s Strict] [-v Verify] LogicalVolumePath
Although the flags are shown as optional, you must specify at least one.
DESCRIPTION
Note
This command is no longer supported on Digital UNIX systems.
Features formerly provided by the Logical Volume Manager (LVM)
are now provided by the Logical Storage Manager (LSM). Existing
LVM volumes must be migrated to LSM, using an encapsulation
process. For information about moving LVM volumes to LSM, see the
vollvmencap(8) reference page and the manual Logical Storage
Manager.
The lvchange command changes the characteristics of a logical volume. You
include the optional command flags and parameters on the command line to
specify the type and extent of change. Each current characteristic for a
logical volume remains in effect until you explicitly change it with the
corresponding flag. All flags except the -s flag take effect immediately.
The change you make with the -s flag takes effect only when new extents are
allocated using the lvextend command. The LogicalVolumePath parameter must
be a logical volume name.
FLAGS
You must specify at least one flag with the lvchange command.
-a Availability
Sets the availability of the logical volume. The Availability
parameter is represented by one of the following:
y Makes a logical volume available; that is, an open of
the logical volume will succeed.
n Makes a logical volume temporarily unavailable; that
is, an open of the logical volume will fail.
-d Schedule
Sets the scheduling policy when a logical extent with more than
one mirror is written. The Schedule parameter is represented by
one of the following:
p Establishes a parallel scheduling policy.
s Establishes a sequential scheduling policy. Use this
value with care because, in most cases, it leads to
performance loss.
-p Permission
Sets the access permission to read-write or read-only. The
Permission parameter is represented by one of the following:
w Sets the access permission to read-write.
r Sets the access permission to read-only.
-r Relocate
Sets the bad block relocation policy. The Relocate parameter is
represented by one of the following:
y Causes bad block relocation to occur.
n Prevents bad block relocation from occurring.
-s Strict Determines the strict allocation policy. Mirrors of a logical
extent can be allocated to share or not to share the same
physical volume. This flag only make sense when the physical
volumes (of the volume group that owns the logical volume to be
changed) reside on different physical disks. The Strict parameter
is represented by one of the following:
y Sets a strict allocation policy; mirrors of a logical
extent can not share the same physical volume.
n Does not set a strict allocation policy; mirrors of a
logical extent can share the same physical volume.
-v Verify Sets the write-verify state for the logical volume. The Verify
parameter is represented by one of the following:
y Causes all writes to the logical volume to be verified
with a follow up read.
n Prevents all writes to the logical volume from being
verified with a follow up read.
EXAMPLES
1. To change the permission of logical volume lv03, enter:
lvchange -p r /dev/vg01/lv03
Logical volume lv03 now has read-only permission.
2. To change the allocation policy of logical volume lv07, enter:
lvchange -s n /dev/vg01/lv07
FILES
/usr/sbin/lvchange
Specifies the command path.
RELATED INFORMATION
Commands: lvcreate(8), lvdisplay(8), lvextend(8)