Hi Mark,

On 08/25/2016 06:20 PM, Mark Pace wrote:
sles 11sp3

Working with FCP devices for the first time.
I have 2 devices that I am using to multipath.
I've followed the manual pretty well to multipath these devices.

 multipath -ll

multipathd -k'show topo'
is preferred because
- it only works if multipathd runs which is a requirement
- it does not cause unnecessary load due to extra path checks

36005076307ffd4da0000000000000028 dm-1 IBM,2107900
size=100G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
  |- 0:0:0:1076379648 sda 8:0  active ready running
  `- 1:0:0:1076379648 sdb 8:16 active ready running

So now I have this device with the really long name -
/dev/mapper/36005076307ffd4da0000000000000028
/dev/mapper/36005076307ffd4da0000000000000028_part1

In the manual it talks about using udev to map it to a more friendly name,
there it goes wrong. The manual talks about udevinfo, which doesn't exist,
it's part of udevadm, but that output doesn't look like the manual.

I'm looking for example of udevadm to add a rule to rename those to
something short and easy to remember.

Which manual do you refer to?

While udev can be used in general to rename devices,
for multipath devices there is a much easier common way to do this via alias names in multipath.conf:
https://www.suse.com/documentation/sles11/stor_admin/data/mpionames.html

--
Mit freundlichen Grüßen / Kind regards
Steffen Maier

Linux on z Systems Development

IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to