CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

LVM Logical Volumes

The top LVM layer and the one you actually put a filesystem on. Both ways of specifying size are used here, including the percentage forms that save arithmetic under time pressure, and the rounding LVM performs is shown announcing itself.

Local Storage Guide 34 of 67 Intermediate

A logical volume appears under two paths: /dev/<vg>/<lv> and /dev/mapper/<vg>-<lv>. Both are symlinks to the same /dev/dm-N. Either works in /etc/fstab, though a UUID is better still - see guide 35.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this for the top LVM layer, the one you actually put a filesystem on. This matters because there are two ways to state a size - and both round to whole extents, which is where the number you asked for stops matching.

Before you start

  1. Creating them

  2. Where the device appears

  3. Two ways to say how big, and the rounding

  4. Removing them

Official sources