pvchange
Change attributes of physical volume(s). tldr-pages
On Linux
Linux
Allow allocation on a physical volume
sudo pvchange --allocatable y /dev/sdXNIdentifyDisallow allocation on a physical volume
sudo pvchange --allocatable n /dev/sdXNIdentifyIgnore metadata areas on a physical volume
sudo pvchange --metadataignore y /dev/sdXNIdentifyStop ignoring metadata areas on a physical volume
sudo pvchange --metadataignore n /dev/sdXNIdentifyAdd a tag to a physical volume
sudo pvchange --addtag tag /dev/sdXNIdentifyGenerate a new UUID for a physical volume (use with care)
sudo pvchange --uuid /dev/sdXNIdentifyChange all visible physical volumes (combine with other options such as allocatable)
sudo pvchange --all --allocatable yIdentify