How do I check whether I am using LVM?

I installed Ubuntu by choosing the option "Something else" at the step called "Allocate drive space" of the installer. Then I created my own partition table.

Now that Ubuntu is installed, can I check whether I am using LVM for my volumes ? In particular, can I see it in GParted Partition Editor ?


You should see it in Gparted. You can also just check your fstab file:

cat /etc/fstab

Watch the line with your root filesystem. Three possibilities here:

  1. If the line starts with UUID=xyz, this means it's a physical partition.
  2. If the line starst with /dev/sdaX, it also means it's a physical partition.
  3. The indicator for LVM would be something with /dev/mapper/xyz.

Just wanted to leave this here for people searching in the future.

You can get LV information by using the lvdisplay command. If you have any logical volumes they will appear as such as well as additional information about that volume such as the path, logical volume name, volume group name, size, etc.

If you have not setup a an LVM then lvdisplay won't be installed or it won't be able to find lvmetad.socket