So I can do the following:
mount /dev/datavg/datalv /mnt
mount /dev/mapper/datavg-datalv /mnt
Are these the same? Is their an advantage to one over the other? Is one better practice?
To check whether they are the same see what
As you see, there's a small difference:
Although both paths they are interchangeable in commands like
my experience is that you should use the device file in
How come I recommend this? A couple of years ago I had an issue with a server that didn't come up after a reboot and the cause was a missing device symlink for an LVM filesystem listed in
The answers above are spot-on about checking to see if they are identical. However, I have found a place where the syntax can make a difference for some flavors of Linux:
In Ubuntu 14.04, I've discovered that LVM isn't brought online automatically for mount points with a device path of /dev/VG/LV -- the device path must be in the form /dev/mapper/vg--lv before the system will bring up LVM (i.e. invoke vgscan/vgchange) at boot time.