pvchange

Modify physical volume attributes

Supplementary instructions

pvchange command allows administrators to change the allocation permissions of physical volumes. If a physical volume fails, you can use the pvchange command to disable the allocation of PE on the physical volume.

grammar

pvchange(options)(parameters)

Options

-u: Generate a new UUID;
-x: Whether to allow allocation of PE.

Parameters

Physical volume: Specify the device file corresponding to the physical volume whose attributes you want to modify.

Example

Use the pvchange command to disable allocation of PE on the specified physical volume. Enter the following command at the command line:

pvchange -x n /dev/sdb1 #Prohibit allocation of PE on "/dev/sdb1"

The output information is as follows:

Physical volume "/dev/sdb1" changed
1 physical volume changed / 0 physical volume not changed