Skip to contentSkip to conversation

persistent device names on rhel4

DISCUSSION lnx dm 2 participants 2 messages Jul 18, 2006 – Aug 2, 2006 Device mapper

lore
Share & tools
lore

lnx dm

author
#0 lore raw

I am using multipathing on rhel4 u3 x86_64 with EVA4000 and HSV200 controller.

I had a few questions:

1. lsmod shows the below modules

dm_mirror              29017  0
dm_round_robin          4929  1
dm_multipath           21841  2 dm_round_robin
dm_mod                 67457  9 dm_mirror,dm_multipath

Do need to insert "multipath" module also ? If yes then what it is for ?

without using multipath module I can see multiple paths in multipath -v2 -l output

2. How do I ensure that the same device gets mounted across reboots ?
I verified that across the reboots mpath6 refers to the same device, wwid is same for mpath6 across reboots

# multipath -v2 -l
mpath6 (3600805f300176640a435a927359c0003)
[size=440 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [active]
 \_ 2:0:0:1     sdag 66:0   [active][ready]
 \_ 0:0:0:1     sda  8:0    [active][ready]

I have /dev/mapper/mpath6 in /etc/fstab and it works correctly.

# ls -l /dev/mpath/mpath6
lrwxrwxrwx  1 root root 7 Jul 18 06:13
/dev/mpath/mpath6 -> ../dm-6

What is the difference if I use /dev/dm-6 ?

which will be better ?

Thanks.

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

#1 lore raw
Quoted 7 lines · lnx dm

I am using multipathing on rhel4 u3 x86_64 with EVA4000 and HSV200 controller.

I had a few questions:

1. lsmod shows the below modules

Quoted 7 lines
dm_mirror              29017  0
dm_round_robin          4929  1
dm_multipath           21841  2 dm_round_robin
dm_mod                 67457  9 dm_mirror,dm_multipath

Do need to insert "multipath" module also ? If yes then what it is for ?

The modules that you see in the lsmod should be all you need.

Quoted 8 lines

without using multipath module I can see multiple paths in multipath -v2 -l output

2. How do I ensure that the same device gets mounted across reboots ?
I verified that across the reboots mpath6 refers to the same device, wwid is same for mpath6 across reboots

mpath6 will always point to the same device on that node. If you have multiple nodes using the same devices, and you want to make sure that they all use the same multipath names, you can just copy the /var/lib/multipath/bindings file from a node where the names are set up the way you want to the other nodes. This file holds the WWID -> user_friendly_name bindings.

Quoted 7 lines
# multipath -v2 -l
mpath6 (3600805f300176640a435a927359c0003)
[size=440 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [active]
 \_ 2:0:0:1     sdag 66:0   [active][ready]
 \_ 0:0:0:1     sda  8:0    [active][ready]
Quoted 8 lines

I have /dev/mapper/mpath6 in /etc/fstab and it works correctly.

# ls -l /dev/mpath/mpath6
lrwxrwxrwx  1 root root 7 Jul 18 06:13
/dev/mpath/mpath6 -> ../dm-6

What is the difference if I use /dev/dm-6 ?

There is now way to guarantee the /dev/dm-6 will always refer to the correct device.

Quoted 1 line

which will be better ?

mpath6

Quoted 11 lines

Thanks.

__________________________________________________
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