You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
829 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

vgchange
===
修改卷组属性
## 补充说明
**vgchange命令** 用于修改卷组的属性经常被用来设置卷组是处于活动状态或非活动状态。处于活动状态的卷组无法被删除必须使用vgchange命令将卷组设置为非活动状态后才能删除。
### 语法
```
vgchange(选项)(参数)
```
### 选项
```
-a设置卷组的活动状态。
```
### 参数
卷组:指定要设置属性的卷组。
### 实例
使用vgchange命令将卷组状态改为活动的。在命令行中输入下面的命令
```
[root@localhost ~]# vgchange -ay vg1000 #将卷组"vg1000"设置为活动状态
```
输出信息如下:
```
1 logical volume(s) in volume group "vg1000" now active
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->