Use it to create or inspect LVM volumes.
Logical Volume (LV)
A logical volume (LV) is a block device carved from a VG (/dev/<vg>/<lv>), holding a filesystem or swap. LVs can be resized, moved between PVs and snapshotted.
1. lvs — LV size and attributes.
2. Create: lvcreate -n data -L 50G <vg>.
3. Filesystem: mkfs.xfs /dev/<vg>/data.
4. Mount and add to fstab by UUID.
5. lsblk to confirm.
VG free space → lvcreate → device-mapper device → filesystem → mount
For LVM → Logical Volume (LV), continue with the first unproven Topic check: Capture LV UUID, size, segment type, devices/extents and activation state. If that boundary is healthy, advance to the adjacent check: Resolve device-mapper mapping down to expected PVs and identify snapshot/thin dependencies. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lvsVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
VG extents → LV segment map → device-mapper target → /dev mapper path → filesystem/raw consumer → workload
Healthy evidence: the LV maps to expected extents/devices, is fully active at intended size, has no missing dependencies and its consumer sees consistent capacity.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture LV UUID, size, segment type, devices/extents and activation state.
- Resolve device-mapper mapping down to expected PVs and identify snapshot/thin dependencies.
- Compare LV size with filesystem or raw-consumer expectations.
- After change, verify mapping, upper-layer size and representative workload I/O.
Verification chain. VG extents → LV segment map → device-mapper target → /dev mapper path → filesystem/raw consumer → workload
Step 3 Commands Verify boundary
lvcreate -n data -L 50G vg0
lvs
mkfs.xfs /dev/vg0/data
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: partial mappings, unexpected segment dependencies, inactive LV, mismatched upper-layer size or missing PV extents point to a logical-volume boundary issue.
Step 5 Common mistakes Narrow the fault
- Using 100% of the VG, leaving no room for snapshots.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Create with lvcreate -n <name> -L <size> <vg> (or -l 100%FREE), then make a filesystem. Use the /dev/mapper or /dev/<vg>/<lv> path, or UUID, in fstab.
pvs— physical volumesvgs— volume groups and free spacelvs -a -o +devices— logical volumes and their deviceslsblk— stack view
ReferenceWhat it is1 section · depth on demand
Core model
Identify the LV by VG/LV UUID/name and inspect its segment layout, size and activation state. Separate the logical block-device size from any filesystem size inside it. Thin, striped, mirrored or snapshot segment types have additional dependencies that must be included in the mapping.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
LV evidence shows logical device mapping and size, not underlying media health or upper filesystem/application correctness.
In depth
Logical volumes: creating and inspecting
A logical volume is the block device that you format and mount. The lvcreate(8) manual page describes how they're created:
-Lgives a size, and-lgives a number of extents or a percentage:%VG,%FREE,%PVSand, for snapshots,%ORIGIN.-nsets the name.--typecan be linear, striped, raid, mirror, thin, thin-pool, cache, vdo, snapshot and more. The manual warns that inferred types can lead to unexpected results.-iand-Iset the number of stripes and the stripe size.--type raid1 -m1creates a mirrored LV.
LV types in practice
| Type | Command | Use |
|---|---|---|
| Linear (default) | lvcreate -L 50G -n app vg1 | Most volumes |
| Striped | lvcreate -i 2 -I 64k -L 100G -n fast vg1 | Throughput across PVs; no redundancy |
| RAID1 | lvcreate --type raid1 -m1 -L 50G -n db vg1 | Mirror across two PVs |
| Thin pool + thin LV | lvcreate --type thin-pool -L 500G -n pool vg1; lvcreate -V 1T -T vg1/pool -n vm01 | Overcommitted space, cheap snapshots |
| Cache | lvconvert --type cache ... | SSD cache in front of an HDD LV |
Device paths
| Path | Notes |
|---|---|
/dev/vg1/app | Symlink; readable and the usual choice |
/dev/mapper/vg1-app | The device-mapper name (a dash in a name is doubled: vg1-my--lv) |
/dev/dm-3 | Kernel name; changes between boots |
A volume from creation to mount
host$ sudo lvcreate -L 50G -n app vg1
Logical volume "app" created.
host$ sudo mkfs.xfs -L app /dev/vg1/app
host$ sudo mkdir -p /srv/app && echo '/dev/vg1/app /srv/app xfs defaults 0 0' | sudo tee -a /etc/fstab
host$ sudo systemctl daemon-reload && sudo mount /srv/app
host$ sudo lvs -a -o lv_name,lv_size,segtype,lv_attr,data_percent,devices vg1
LV LSize Type Attr Data% Devices
app 50.00g linear -wi-ao---- /dev/sdc(0)
db 50.00g raid1 rwi-aor--- db_rimage_0(0),db_rimage_1(0)
[db_rimage_0] 50.00g linear iwi-aor--- /dev/sdc(12800)
[db_rimage_1] 50.00g linear iwi-aor--- /dev/sde(1)
host$ sudo lvs -o lv_name,copy_percent,lv_health_status vg1/db
Reading lv_attr
-wi-ao---- means writable, inherited allocation, active (a) and open (o, mounted or in use). For RAID LVs, the hidden rimage sub-volumes show which PVs hold each copy. copy_percent and lv_health_status show the sync progress and whether a leg has failed.
Documented example, not captured output.
How it works at runtime
Logical Volume (LV) is part of LVM → Logical Volume (LV). An LVM Logical Volume is a device-mapper mapping assembled from Volume Group extents and exposed as a block device for filesystems, swap, databases or other consumers.
Topic-specific state model. An LVM Logical Volume is a device-mapper mapping assembled from Volume Group extents and exposed as a block device for filesystems, swap, databases or other consumers.
Interpretation rule. - LV active ≠ filesystem mounted or healthy.
- LV size ≠ filesystem usable size.
- LV path exists ≠ all underlying segments/PVs are healthy.
- Changing LV size ≠ upper consumer changed automatically unless explicitly integrated.
Quick reference
Logical volumes are carved from a VG.
lvcreate -n lv_app -L 100G vg_data
lvcreate -n lv_db -l 100%FREE vg_data
lvcreate --type raid1 -m 1 -n lv_mirror -L 50G vg_data
lvcreate -i 2 -I 64k -n lv_striped -L 200G vg_data
lvs -a -o lv_name,vg_name,lv_size,segtype,devices,lv_attr
lvrename vg_data lv_app lv_web
lvremove vg_data/lv_old
The lv_attr string encodes type and state (e.g. -wi-ao----: writable, inherit, active, open). Paths: /dev/vg_data/lv_app = /dev/mapper/vg_data-lv_app.
Limits and how it fails
Primary failure point. LV evidence shows logical device mapping and size, not underlying media health or upper filesystem/application correctness.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Logical Volume owns LVM logical mappings and activation. Resize Filesystem owns upper filesystem size changes; PV/VG own lower allocation.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in LVM → Logical Volume (LV). Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Logical Volume (LV) operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Logical Volume (LV).
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | An LVM Logical Volume is a device-mapper mapping assembled from Volume Group extents and exposed as a block device for filesystems, swap, databases or other consumers. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | VG extents → LV segment map → device-mapper target → /dev mapper path → filesystem/raw consumer → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | LV evidence proves logical device mapping and size, not underlying media health or upper filesystem/application correctness. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: VG extents → LV segment map → device-mapper target → /dev mapper path → filesystem/raw consumer → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. LV evidence proves logical device mapping and size, not underlying media health or upper filesystem/application correctness. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
Logical Volume (LV) · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Logical Volume (LV) |
|---|---|
| Topic path | LVM → Logical Volume (LV) |
| Runtime state | An LVM Logical Volume is a device-mapper mapping assembled from Volume Group extents and exposed as a block device for filesystems, swap, databases or other consumers. |
| Fast checks | - Capture LV UUID, size, segment type, devices/extents and activation state. - Resolve device-mapper mapping down to expected PVs and identify snapshot/thin dependencies. - Compare LV size with filesystem or raw-consumer expectations. - After change, verify mapping, upper-layer size and representative workload I/O. |
| Verification chain | VG extents → LV segment map → device-mapper target → /dev mapper path → filesystem/raw consumer → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | LV evidence proves logical device mapping and size, not underlying media health or upper filesystem/application correctness. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |