pvcreate

Initialize a disk or partition for use as a physical volume. See also: lvm. More information: <https://man7.org/linux/man-pages/man8/pvcreate.8.html>.

Install

All systems
curl cmd.cat/pvcreate.sh
Debian Debian
apt-get install lvm2
Ubuntu
apt-get install lvm2
Alpine
apk add lvm2
Arch Arch Linux
pacman -S lvm2
image/svg+xml Kali Linux
apt-get install lvm2
CentOS
yum install lvm2
Fedora
dnf install lvm2
Windows (WSL2)
sudo apt-get update sudo apt-get install lvm2
Raspbian
apt-get install lvm2
Docker
docker run cmd.cat/pvcreate pvcreate powered by Commando

Initialize a disk or partition for use as a physical volume. See also: lvm. More information: <https://man7.org/linux/man-pages/man8/pvcreate.8.html>.

  • Initialize the `/dev/sda1` volume for use by LVM:
    pvcreate /dev/sda1
  • Force the creation without any confirmation prompts:
    pvcreate --force /dev/sda1

© tl;dr; authors and contributors