Hope i am not wasting anyone´s time, so apologies to all should that be the case with this question.
it is the first time i am playing with multipath, manged to setup multipath on a RHL5, the setup comprises of the following:
RHL5 Server has 2 x HBA – HBA1 Port1 connects to Fiber Switch 1 & HBA2 port1 connects to fiber switch 2
NETAPP FAS2040 Storage with one HBA with 2 ports, port 1 connects to Fiber Switch 1 & port 2 connects to Fiber Switch 2.
multipath -ll command show the following:
[root@nonameserver /]# multipath -ll mpath0 (360a98000323766586b24422f6735626c) dm-2 NETAPP,LUN [size=149G][features=1 queue_if_no_path][hwhandler=0] \_ round-robin 0 [prio=2][active] \_ 4:0:0:0 sda 8:0 [active][ready] \_ 2:0:0:0 sdb 8:16 [active][ready]
My question is why is there two devices /dev/sda & /dev/sdb? on the storage there is only one LUN setup for the host.
Thank you all.
Best Answer
The
/dev/sda
device is the target LUN as seen through one HBA, the/dev/sdb
device is the same LUN seen through the other HBA. That's how it works - different controllers means different devices. As the other answer you commented about notes, do not usesda
orsdb
- use the multipath device (/dev/mpath0
).