Content-type: text/html
/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.
You must specify at least one flag with the lvchange command. Sets the availability of the logical volume. The Availability parameter is represented by one of the following: Makes a logical volume available; that is, an open of the logical volume will succeed. Makes a logical volume temporarily unavailable; that is, an open of the logical volume will fail. 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: Establishes a parallel scheduling policy. Establishes a sequential scheduling policy. Use this value with care because, in most cases, it leads to performance loss. Sets the access permission to read-write or read-only. The Permission parameter is represented by one of the following: Sets the access permission to read-write. Sets the access permission to read-only. Sets the bad block relocation policy. The Relocate parameter is represented by one of the following: Causes bad block relocation to occur. Prevents bad block relocation from occurring. 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: Sets a strict allocation policy; mirrors of a logical extent can not share the same physical volume. Does not set a strict allocation policy; mirrors of a logical extent can share the same physical volume. Sets the write-verify state for the logical volume. The Verify parameter is represented by one of the following: Causes all writes to the logical volume to be verified with a follow up read. Prevents all writes to the logical volume from being verified with a follow up read.
To change the permission of logical volume lv03, enter: lvchange -p r /dev/vg01/lv03 Logical volume lv03 now has read-only permission. To change the allocation policy of logical volume lv07, enter: lvchange -s n /dev/vg01/lv07
Commands: lvcreate(8), lvdisplay(8), lvextend(8) delim off