vgcreate

Create volume groups combining multiple mass-storage devices. See also: lvm. More information: <https://man7.org/linux/man-pages/man8/vgcreate.8.html>.

Install

All systems
curl cmd.cat/vgcreate.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/vgcreate vgcreate powered by Commando

Create volume groups combining multiple mass-storage devices. See also: lvm. More information: <https://man7.org/linux/man-pages/man8/vgcreate.8.html>.

  • Create a new volume group called vg1 using the `/dev/sda1` device:
    vgcreate vg1 /dev/sda1
  • Create a new volume group called vg1 using multiple devices:
    vgcreate vg1 /dev/sda1 /dev/sdb1 /dev/sdc1

© tl;dr; authors and contributors