# vgchange

修改卷组属性

## 补充说明

**vgchange命令** 用于修改卷组的属性，经常被用来设置卷组是处于活动状态或非活动状态。处于活动状态的卷组无法被删除，必须使用vgchange命令将卷组设置为非活动状态后才能删除。

### 语法

```
vgchange(选项)(参数)
```

### 选项

```
-a：设置卷组的活动状态。
```

### 参数

卷组：指定要设置属性的卷组。

### 实例

使用vgchange命令将卷组状态改为活动的。在命令行中输入下面的命令：

```
[root@localhost ~]# vgchange -ay vg1000     #将卷组"vg1000"设置为活动状态
```

输出信息如下：

```
1 logical volume(s) in volume group "vg1000" now active
```


---

# 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/vgchange.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.
