SYMLINKS are being used in fstab file instead of block device names for device-name field.

Solution Verified - Updated -

Issue

  • SYMLINKS are being used in /etc/fstab file instead of block device names for device-name field.
  • Device name to be mounted in /etc/fstab files are SYMLINKS to /dev/dm-* devices. In earlier versions of RHEL, block devices were being used as device names in fstab file.
#
# /etc/fstab
# Created by anaconda on Sat Apr 11 02:35:06 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_dhcp23435-lv_root /                       ext4    defaults        1 1
UUID=34d190bb-2b02-4c72-b64f-0dd8571c463e /boot                   ext4    defaults        1 2
/dev/mapper/vg_dhcp23435-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0


# ls -l /dev/dm-*
brw-rw----. 1 root disk 253, 0 Apr 11 02:42 /dev/dm-0
brw-rw----. 1 root disk 253, 1 Apr 11 02:42 /dev/dm-1

# ls -l /dev/mapper/vg_dhcp23435-lv_swap 
lrwxrwxrwx. 1 root root 7 Apr 11 02:42 /dev/mapper/vg_dhcp23435-lv_swap -> ../dm-1

# ls -l /dev/vg_dhcp23435/lv_swap 
lrwxrwxrwx. 1 root root 7 Apr 11 02:42 /dev/vg_dhcp23435/lv_swap -> ../dm-1

Here /dev/mapper/vg_dhcp23435-lv_swap is SYMLINK to /dev/dm-1 which is being used as device name in /etc/fstab file.

Environment

  • Red Hat Enterprise Linux 5, 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.