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
继续阅读

接下来你可能需要这些内容

优先推荐相关内容,同时保留你的阅读轨迹和收藏入口。