LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pvchange

Modify LVM physical volume attributes

TLDR

Allow allocation on physical volume
$ sudo pvchange -x y /dev/sdXN
copy
Disallow allocation on physical volume
$ sudo pvchange -x n /dev/sdXN
copy
Ignore metadata areas
$ sudo pvchange --metadataignore y /dev/sdXN
copy
Stop ignoring metadata areas
$ sudo pvchange --metadataignore n /dev/sdXN
copy
Add tag to physical volume
$ sudo pvchange --addtag mytag /dev/sdXN
copy
Generate new UUID
$ sudo pvchange --uuid /dev/sdXN
copy
Change all visible physical volumes
$ sudo pvchange -a -x y
copy

SYNOPSIS

pvchange [options] PhysicalVolume...

DESCRIPTION

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

PARAMETERS

-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

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

CAVEATS

Use --uuid with caution as it can cause problems if the volume group is active or if backups refer to the old UUID. Disabling allocation on a PV prevents new extents from being placed on it.

HISTORY

pvchange is part of LVM2 (Logical Volume Manager), providing flexible disk management and storage virtualization for Linux systems.

SEE ALSO

pvs(8), pvdisplay(8), pvcreate(8), vgchange(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid