FreeKB - LVM (Logical Volume Manager) pvcreate (create a physical volume)
LVM (Logical Volume Manager) - pvcreate (create a physical volume)

If LVM is not installed, you will first need to install LVM.

Before creating an LVM physical volume, the parition must first be configured with type Linux LVM. This can be accomplished with fdisk, gdisk, or parted. Here are the steps on how to set /dev/sda3 to type Linux LVM using parted.

parted -s /dev/sda set 3 lvm on

 

Let's say you have two storaged devices where /dev/sda3 and /dev/sdb1 are configured as LVM partitions.

 

The pvcreate command can be used to create LVM physical volumes. 

pvcreate /dev/sdb1

 

The following should be displayed.

Physical volume "/dev/sdb1" successfully created.

 

The pvdisplay command can be used to verify that /dev/sdb1 was added as an LVM physical volume.

--- NEW Physical volume ---
PV Name               /dev/sdb1
VG Name
PV Size               <100.00 GiB
Allocatable           NO
PE Size               0
Total PE              0
Free PE               0
Allocated PE          0
PV UUID               qIJr3I-uokW-qIRJ-Mi9a-SmIp-2DYN-XwxUDf

 

Next, create a volume group.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter b256b in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |