Info on /dev/dm files

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Info on /dev/dm files
# 1  
Old 06-27-2012
Info on /dev/dm files

Hi,

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?

Thanks.

If it helps, I use CentOS 6.2.

Last edited by prithvirao17; 06-27-2012 at 12:18 AM.. Reason: Extra info
# 2  
Old 06-27-2012
it is part of device mapper, and used by LVM among other things like storage connected via some sort of SAN.

It is used for consistent naming, rather than going to individual drives.
# 3  
Old 06-27-2012
Quote:
Originally Posted by mark54g
it is part of device mapper, and used by LVM among other things like storage connected via some sort of SAN.

It is used for consistent naming, rather than going to individual drives.
Thanks for the info. So, my assumption is these files are created when i run lvcreate. Correct me if I'm wrong.
# 4  
Old 06-29-2012
Quote:
So, my assumption is these files are created when i run lvcreate. Correct me if I'm wrong.
Yes, you are correct.

Quote:
...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.
# 5  
Old 06-30-2012
Folks, according to DM Multipath - DM Multipath Configuration and Administration https://docs.google.com/viewer?url=h...path-en-US.pdf, page 17

"Any devices of form /dev/dm-n are for internal use only and should never be used"

The manual suggest using /dev/mapper devices in LVM/Multipath setup on RHEL6

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 6  
Old 07-01-2012
@Peasant: Any clue why it /dev/dm-n files should not be used? The doc does not say much about that.
This User Gave Thanks to admin_xor For This Post:
# 7  
Old 07-02-2012
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.
These 2 Users Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Dev/urandom and dev/random missing in HP-UX

Hi, In our HP-UX B.11.11. I could not find dev/urandom and dev/random Are all pseudo-devices implemented as device drivers, or in need to run /configure some package to install the package to have dev/urandom. Please help (4 Replies)
Discussion started by: rashi
4 Replies

2. Red Hat

Changing grub from /dev/sda to /dev/sdb

Hi, Please suggest steps to change grub from /dev/sda to /dev/sdb, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

3. Solaris

Why files get created with srwxrwxrwt under /dev/?

$ uname -a SunOS myhost 5.11 11.2 sun4v sparc sun4v I see following 0 byte (regular)files getting created under /dev/mydisks directory : srwxrwxrwt 1 gusr dba 0 Sep 14 23:57 VF_10 srwxrwxrwt 1 gusr dba 0 Sep 14 23:57 DATA1 srwxrwxrwt 1 gusr dba 0 Sep 14 23:57... (8 Replies)
Discussion started by: YShivak
8 Replies

4. Shell Programming and Scripting

Automating partitioning setup of /dev/sda on /dev/sdc

Objective: To recreate the partitioning setup of /dev/sda on /dev/sdc How would I parse the below information and initialize variables (an array?) that can be used to build sgdisk commands in a script, regardless of the number of partitions? Something along the lines of: sgdisk -n... (12 Replies)
Discussion started by: RogerBaran
12 Replies

5. AIX

Problem in /dev/hd1 and /dev/hd9var

Hello AIXians, I can't boot my AIX, it hangs and stops at the code error: 0518 After searching google, I knew the problem is due to problems in File Systems. So the solution is booting from any bootable media, then run these commands in maintenance mode: #fsck -y /dev/hd4 #fsck -y... (3 Replies)
Discussion started by: Mohannad
3 Replies

6. AIX

Difference between /dev/hdisk and /dev/rhdisk

Hi, How can i check that i am using RAW devices for storage in my AIX machine... Also after adding a LUN from storage to a aix host, when i check /dev in the host, i can see both rhdisk and hdisk with same number eg: dcback1(root):/dev>ls -lrt | grep disk12 crw------- 1 root ... (4 Replies)
Discussion started by: jibujacob
4 Replies

7. Solaris

Lun remove, stuck in /dev/dsk and /dev/rdsk

So, we removed a LUN from the SAN and the system is refusing to remove the references to it in the /dev folder. I've done the following: devfsadm -Cv powermt -q luxadm -e offline <drive path> luxadm probe All those commands failed to remove the path. The drive stills shows up as <drive... (13 Replies)
Discussion started by: DustinT
13 Replies

8. UNIX for Dummies Questions & Answers

Make /dev/null all the files

How can I make /dev/null all the 8640 files that I am getting from this command. find . \( ! -name . -prune \) -type f -name "EXPORT_v1x0*" | awk -F'_' '$6<20120812' And then delete everything. If I am using this command to delete it, I am getting Disk Quota Exceeded Exception. find .... (4 Replies)
Discussion started by: raihan26
4 Replies

9. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

10. UNIX for Dummies Questions & Answers

mv files to /dev/null

im having trouble with moving files in a directory into /dev/null for file in $HOME/.trashcan/ do mv $file /dev/null done the error msg i get is: mv: /dev/null: not a directory. does anyone know how to fix this? thanks primal (16 Replies)
Discussion started by: primal
16 Replies
Login or Register to Ask a Question