← 返回命令列表

Linux command

pvchange 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Allow

sudo pvchange -x y /dev/sdXN

Disallow

sudo pvchange -x n /dev/sdXN

Ignore

sudo pvchange --metadataignore y /dev/sdXN

Stop ignoring

sudo pvchange --metadataignore n /dev/sdXN

Add tag

sudo pvchange --addtag mytag /dev/sdXN

Example

sudo pvchange --uuid /dev/sdXN

Example

sudo pvchange -a -x y

说明

pvchange changes the attributes of a physical volume in LVM. It can control allocation, metadata handling, tagging, and UUID generation for physical volumes.

参数

-x, --allocatable {y|n}
Allow or disallow allocation of physical extents on this volume
--metadataignore {y|n}
Ignore or use metadata areas on this physical volume
--addtag TAG
Add a tag to the physical volume
--deltag TAG
Remove a tag from the physical volume
--uuid
Generate a new UUID for the physical volume
-a, --all
Change all visible physical volumes
-f, --force
Force operation
-v, --verbose
Verbose mode

FAQ

What is the pvchange command used for?

pvchange changes the attributes of a physical volume in LVM. It can control allocation, metadata handling, tagging, and UUID generation for physical volumes.

How do I run a basic pvchange example?

Run `sudo pvchange -x y /dev/sdXN` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -x, --allocatable {y|n} do in pvchange?

Allow or disallow allocation of physical extents on this volume