• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pvchange Command Examples in Linux

by admin

pvchange command changes allocation permissions on a physical volume. You might disallow new allocations if you’re making changes on other volumes and intend to delete one immediately thereafter. The UUID of PV can be re-generated with the command pvchange. For example:

# pvchange --uuid [pv-name]

Please make sure to deactivate the VG in question vgchange -an vg-name before changing the UUID. For this we need to unmount the LVs on the VG and logical volumes too will be deactivated. Once the UUID is changed, you could activate the VG with vgchange -ay vg-name.

pvchange Command Examples

1. To ignore or un-ignore metadata areas on this physical volume:

# pvchange --metadataignore 
# pvchange --metadataignore 

2. To enable or disable allocation of physical extents on this physical volume:

# pvchange -x y /dev/sda2
# pvchange --allocatable y /dev/sda2 

3. To generate new random UUID for specified physical volumes:

# pvchange -u /dev/sda2
# pvchange --uuid /dev/sda2 

4. To do the change for all the pvchanges:

# pvchange -a x y
# pvchange --all u 

For more information on pvchange command, refere to its man page:

# man vgchange

Filed Under: Linux

Some more articles you might also be interested in …

  1. parted Command Examples in Linux
  2. fscrypt Command Examples in Linux
  3. mg Command Examples
  4. firebase – Test, manage, and deploy Firebase projects from the command-line
  5. groff Command Examples
  6. Install AzCopy on Linux – Fastest way to copy in Azure
  7. betty Command Examples (Use natural language to execute commands)
  8. findfs: command not found
  9. postfix Command Examples in Linux
  10. mkfs.btrfs Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright