Quantcast
Channel: How do I check whether I am using LVM? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 5

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

$
0
0

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 all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>