[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] user defined device name and table





2007/11/26, Pedro Bandim Faustino <pedro faustino fccn pt>:
Hi All,

I have a working multipath on root, but some questions still unanswered.
I'm hoping you can help me out ;)

My setup details:
Machine: IBM Blade Server HS21 with two Qlogic HBAs each connected to a
FC switch with two active ports
Storage IBM DS4700 with two controllers
OS: Fedora 7
DM packages:
    - device-mapper-1.02.17-7.fc7
    - device-mapper-libs-1.02.17-7.fc7
    - device-mapper-multipath-0.4.7-11.fc7
uname -r: 2.6.23.1-21.fc7

At the moment this is what I have:

Output of multipath -ll:
mpath0 () dm-0 IBM,1814      FAStT
[size=4.0G][features=0][hwhandler=0]
\_ round-robin 0 [prio=4][active]
\_ 2:0:0:0 sda 8:0   [active][ready]
\_ 2:0:1:0 sdb 8:16  [active][ready]
\_ 3:0:0:0 sdc 8:32  [active][ready]
\_ 3:0:1:0 sdd 8:48  [active][ready]

Output of df -k:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/dm-2              3960348   1772124   1983800  48% /
/dev/dm-1               101086     17593     78274  19% /boot
tmpfs                  1037416         0   1037416   0% /dev/shm

Contents of /dev/mapper/:
crw-------  1 root root  10, 63 2007-11-26 13:58 control
brw-rw----  1 root disk 253,  0 2007-11-26 13:58 mpath0
brw-rw----  1 root disk 253,  1 2007-11-26 13:58 mpath0p1
brw-rw----  1 root disk 253,  2 2007-11-26 13:58 mpath0p2

But this is what I really would like to have:

Output of multipath -ll:
SRV07_BOOT (3600a0b8000295d64000009304742b4c8) dm-0 IBM,1814      FAStT
[size=4.0G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:0:0 sda 8:0   [active][ready]
\_ 3:0:0:0 sdc 8:32  [active][ready]
\_ round-robin 0 [prio=6][active]
\_ 2:0:1:0 sdb 8:16  [active][ready]
\_ 3:0:1:0 sdd 8:48  [active][ready]


I can modify the table by modifying the init script in the initrd image
and then booting with the modified initrd image but I don't know how to
change the name from mpath0 to SRV07_BOOT.

You should be able to change the name by creating a multipaths section like below

multipaths {
    multipath {
        wwid "3600a0b8000295d64000009304742b4c8"
        alias "SRV07_BOOT"
    }
}

If that does not work as expected, you might have to say "no" to the user friendly names option.

Any help will be very appreciated!!

Thank you,
Pedro Faustino

--
dm-devel mailing list
dm-devel redhat com
https://www.redhat.com/mailman/listinfo/dm-devel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]