Linux pvchange命令:更改物理卷属性。
Linux pvchange命令 功能描述
使用pvchange命令可以更改一个或多个物理卷的属性,比如分配权限。
Linux pvchange命令 语法
pvchange [选项] [物理卷路径]
命令中各选项的含义如表所示。
Linux pvchange命令 示例
禁用物理卷/dev/sda5上的物理盘区的分配
[root@rhel ~]# pvchange -x n /dev/sda5
Physical volume ''/dev/sda5'' changed
1 physical volume changed / 0 physical volumes not changed
禁用所有物理卷上的物理盘区的分配
[root@rhel ~]# pvchange -x n -a
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
connect() failed on local socket: 没有那个文件或目录
Internal cluster locking initialisation failed.
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.
Physical volume ''/dev/sda7'' changed
Physical volume ''/dev/sda5'' changed
Physical volume ''/dev/sda6'' changed
3 physical volumes changed / 0 physical volumes not changed