Skip to contentSkip to conversation

dm-0

DISCUSSION lnx dm 2 participants 2 messages Oct 27, 2006 Device mapper

lore
Share & tools
lore

lnx dm

author
#0 lore raw

will dm-0 will always point to the same device across reboots irrespective of the the order in which devices are detected ?
which is persistent /dev/dm-0 or /dev/mapper/<wwid> ?

# ls -l /dev/mpath/
lrwxrwxrwx  1 root root 7 Mar 24 01:45
3600805f300176640a435a927359c0003 -> ../dm-0

-lnxdm

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw

No, the /dev/dm* devices are recreated every reboot.
Only the wwids in /dev/mapper/ are persistant. (/dev/disk/by-name/<wwid>) Use them for mountpoint in the fstab.

/dev/disk/by-name/data1 /usr/sap reiserfs acl,user_xattr 1 2

You can alias the horrible wwid by logical names in the multipath.conf. E.g.

multipaths {
        multipath
        {
                #mountpoint /data
                wwid 360060160403219007aa7b461c917db11
                alias data
        }
}

This will create an link /dev/mapper/data1 -> /dev/dm-<actualNumber>

Take a look at the boot.multipath script.

*snip*
# Clear /dev/disk/by-name/ prior to start-up; multipath will

        # recreate them.
        rm -f /dev/disk/by-name/* 2>&1 >/dev/null
*snap*

Regards,
Manuel

Quoted 27 lines

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von lnx dm
Gesendet: Freitag, 27. Oktober 2006 09:35
An: dm
Betreff: [dm-devel] dm-0

will dm-0 will always point to the same device across reboots irrespective of the the order in which devices are detected ? which is persistent /dev/dm-0 or /dev/mapper/<wwid> ?

# ls -l /dev/mpath/
lrwxrwxrwx  1 root root 7 Mar 24 01:45
3600805f300176640a435a927359c0003 -> ../dm-0

-lnxdm

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel