It is a command for modifying the attributes of a physical volume (PV). Which can be used to change the attributes of a PV, such as its name, size or allocation policies.
- About pvchange: To change attributes of a physical volume
- Comes From: lvm2-2.02.72
- Configuration Files:
- Path: /sbin/pvchange
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 |
Related Commands: lvm, pvcreate