jump to content
Snippets and tips
  1. Home
  2. Holiday
  3. Posts
  4. Tools
  5. Tags
  6. Categories

Lvm2

Cheatsheet for ordinary use of LVM2

Common lvm2 commands

The commands i use for administration of my little server.

More on lvm2 #

Learn more about LVM2 from wikipedia.

There are of course man pages for those commands.

Commands #

command explanation
vgdisplay / lvdisplay displays the volume groups or the logical volumes
lvcreate -L 30G -n livesystem vg0 creates a 30G volume with name livesystem on the volume group vg0
mkfs.ext4 -v /dev/vg0/livesystem creates an ext4 filesystem on that volume