Quantcast
Viewing latest article 1
Browse Latest Browse All 5

Answer by Jeroen Vermeulen for How do I check whether I am using LVM?

I check both /etc/fstab and the current mounts.

if  grep -Pq '/dev/(mapper/|disk/by-id/dm)' /etc/fstab  ||  mount | grep -q /dev/mapper/then    echo "LVM is in use"fi

Viewing latest article 1
Browse Latest Browse All 5

Trending Articles