Initializing and Managing Physical Volumes
The following example sets up /dev/sdb
,
/dev/sdc
, /dev/sdd
, and
/dev/sde
as physical volumes:
sudo pvcreate -v /dev/sd[bcde]
Set up physical volume for “/dev/sdb” with 6313482 available sectors Zeroing start of device /dev/sdb Physical volume “/dev/sdb” successfully created ...
Note:
You might see a message indicating the creation of a system file depending on whether LVM Volume Groups already exist or not.To remove a physical volume from the control of LVM, use the pvremove command:
sudo pvremove device
Other commands that are available for managing physical volumes include pvchange, pvck, pvmove, and pvresize.
For more information, see the lvm(8)
,
pvcreate(8)
, and other LVM manual pages.