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
-
apt-get install lvm2 - Ubuntu
-
apt-get install lvm2 -
Alpine
-
apk add lvm2 - Arch Linux
-
pacman -S lvm2 - Kali Linux
-
apt-get install lvm2 - CentOS
-
yum install lvm2 - Fedora
-
dnf install lvm2 - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install lvm2 - Raspbian
-
apt-get install lvm2 - Docker
-
docker run cmd.cat/pvcreate pvcreatepowered 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