Modify physical volume attributes
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.
pvchange(options)(parameters)
-u: Generate a new UUID;
-x: Whether to allow allocation of PE.
Physical volume: Specify the device file corresponding to the physical volume whose attributes you want to modify.
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