/dev/dm-x Mounted instead /dev/mapper/vg/lv

Asked by Michael Varun

Just trying to understand was there any changes introduced to LVM2 on 14.04 in terms of mounting / FS. I am trying to figure out the reason on why / FS under LVM2 is getting mounted with block device /dev/dm-0 instead /dev/mapper/vg-name/lv despite its entry in the /etc/fstab

But i dont see the same getting applied for rest of the filesystems like /opt

Basically symlinks are being used in the /etc/fstab These symlinks are created from the UDEV rules However in mount command output i am able see /dev/mapper/vg-name/lv

Output

========
root@deadbolt:/dev/mapper# grep -i root /etc/fstab
/dev/mapper/vg00-lv_root / ext4 errors=remount-ro 0 1
root@deadbolt:/dev/mapper#

root@deadbolt:/dev/mapper# mount |grep -i root
/dev/mapper/vg00-lv_root on / type ext4 (rw,errors=remount-ro)
root@deadbolt:/dev/mapper#

root@deadbolt:/dev/mapper# df -Ph /
Filesystem Size Used Avail Use% Mounted on
/dev/dm-0 33G 1.4G 30G 5% /
root@deadbolt:/dev/mapper#

for /opt

root@deadbolt:/dev/mapper# grep -wi opt /etc/fstab
/dev/mapper/vg00-lv_opt /opt ext4 defaults 0 2
root@deadbolt:/dev/mapper#

root@deadbolt:/dev/mapper# df -Ph /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-lv_opt 33G 1.4G 30G 5% /opt
root@deadbolt:/dev/mapper#

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu lvm2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you not use UUIDs? That way it doesn't matter as the UUIDs don't change

Revision history for this message
Michael Varun (s-michaelvarun) said :
#2

Yes, we can do that but just curious to know what's causing it to be mounted as /dev/dm-x instead /dev/mapper/vg00-lv_root despite entries in /etc/fstab

Is it something to be of bug or just a generic behaviour in 14.04

Has anyone else faced the same ?

Can you help with this problem?

Provide an answer of your own, or ask Michael Varun for more information if necessary.

To post a message you must log in.