Format a new logical volume for use.
Section: LVM Basics
Create a filesystem on an LV
bash
bash
sudo mkfs.ext4 /dev/vgdata/lvdataExplanation
Format a new logical volume for use.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing LVM Basics
Create a logical volume by size
Allocate a fixed-size LV from a volume group.
Initialize a physical volume
Prepare a partition or whole device for LVM use.
Display physical volume details
Verbose physical volume information including UUID and extents.