How To Install Lvcreate In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Lvcreate In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

lvcreate

Creates a logical volume in an existing volume group.
A volume group is a collection of logical and physical volumes.

Maintainer: Debian LVM Team



Section: admin

Install lvcreate

  • Debian apt-get install lvm2 Click to copy
  • Ubuntu apt-get install lvm2 Click to copy
  • Alpine OS apk add lvm2 Click to copy
  • Arch Linux pacman -S lvm2 Click to copy
  • Kali Linux apt-get install lvm2 Click to copy
  • CentOS yum install lvm2 Click to copy
  • Fedora dnf install lvm2 Click to copy
  • Raspbian apt-get install lvm2 Click to copy

Creates a logical volume in an existing volume group. A volume group is a collection of logical and physical volumes.

How to use lvcreate?

Below are few example commands for lvcreate that you can use in the terminal.

Create a logical volume of 10 gigabytes in the volume group vg1:
lvcreate -L 10G vg1Click to copy
Create a 1500 megabyte linear logical volume named mylv in the volume group vg1:
lvcreate -L 1500 -n mylv vg1Click to copy
Create a logical volume called mylv that uses 60% of the total space in volume group vg1:
lvcreate -l 60%VG -n mylv vg1Click to copy
Create a logical volume called mylv that uses all of the unallocated space in the volume group vg1:
lvcreate -l 100%FREE -n mylv vg1Click to copy
Installation of latest lvcreate command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.