I was looking at my /dev directory and found some files of the pattern dm?. I searched on google and found that it is a device manager file for LVM. But nothing but that.
Can someone give me some info on when these files are created and if we can use this as instead of /dev/mapper/logvol's in the /etc/fstab?
If you do an "ls -l" on /dev/mapper/* it will tell you that those are symbolic links to the /dev/dm-* files. Files in /dev/mapper are named according to the volume groups and logical volumes lying on top of them. If you are comfortable with dm-* files and you know what volume group-logical volume they map to, you may use them in /etc/fstab file.
Here is from another document,
Device Mapper Support for the udev Device Manager :
NOTE: /dev/dm-N nodes should never be used in scripts to access the device since the N number is assigned dynamically and changes with the sequence of how devices are activated. Therefore, true names in the /dev/mapper directory should be used. This layout is to support udev requirements of how nodes/symlinks should be created.