Sitemap

Member-only story

LVM & RAID in Linux

5 min readApr 15, 2024

--

LVM or Logical Volume Manager is mainly used to convert default static disk to dynamic and also to convert multiple disks into a single larger size disk. LVM applies RAID 0 (data will be equally sent to all disks, if one disk fails than all data lost)

static partition :

Fixed size and blocks allocated from starting point to ending point

dyanmic partition :

Fixed size but blocks may shift their starting and ending point

dynamic partitioning can increase the disk speed and we can user multiple disks together

Press enter or click to view image in full size

The stages of dynamic partitioning ->

  1. Create partitions
  2. Convert it into PV (Physical Volumes)
  3. Create VG (Volume Groups)
  4. Create LV (Logical Volumes)

Than mount LV’s and use

Step by Step conversion to dynamic partitions

1) Install LVM

yum install lvm2

2) Create Physical Volume

To create physical volume

pvcreate <partition-location>

To see physical volumes

pvdisplay

--

--