Warning: before you proceed, be sure to backup everything!

Creating a new volume on a existing lvm group is easy.

Check free blocks / space on lvm group

vgdisplay vg1|grep "Free  PE"
Free  PE / Size       29828 / 116.52 GiB

In my case 116 GB were unallocated.

Create the new logical volume

Assume you want to create a new lv “hugo” with 100 GB on lv vg1:

lvcreate -L100G -nhugo vg1

Create a ext4 filesystem on the logical “hugo” volume

mkfs.ext4 /dev/vg1/hugo

Wasn’t that easy :-)?

Benjamin Wiedmann

Benjamin Wiedmann is an IT Professional, Software Developer, Photograph and Musician. Read more...

More Posts - Website

Follow Me:
TwitterLinkedInGoogle Plus

Categories: LinuxLVMRAID

Benjamin Wiedmann

Benjamin Wiedmann is an IT Professional, Software Developer, Photograph and Musician. Read more...

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.