# pvchange

修改物理卷属性

## 补充说明

**pvchange命令** 允许管理员改变物理卷的分配许可。如果物理卷出现故障，可以使用pvchange命令禁止分配物理卷上的PE。

### 语法

```
pvchange(选项)(参数)
```

### 选项

```
-u：生成新的UUID；
-x：是否允许分配PE。
```

### 参数

物理卷：指定要修改属性的物理卷所对应的设备文件。

### 实例

使用pvchange命令禁止分配指定物理卷上的PE。在命令行中输入下面的命令：

```
pvchange -x n /dev/sdb1     #禁止分配"/dev/sdb1"上的PE
```

输出信息如下：

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/pvchange.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
