FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 12-24-2011, 12:20 AM
Albert Chin
 
Default Multipath and iSCSI on 11.10

I have device-mapper-multipath configured with iSCSI. I have two
interfaces configured to communicate with the iSCSI server. I discover
and connect with the iSCSI targets as follows:
(1) # iscsiadm -m discovery -t st -p 10.191.61.1:3260 -I iface1 -P 1
(2) # iscsiadm -m discovery -t st -p 10.191.62.1:3260 -I iface2 -P 1
(3) # iscsiadm -m node -p 10.191.61.1:3260 -I iface1 -l
(4) # iscsiadm -m node -p 10.191.62.1:3260 -I iface2 -l
# cat /etc/multipath.conf
defaults {
selector "round-robin 0"
udev_dir /dev
user_friendly_names yes
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
devnode "^sda[0-9]"
devnode "^sdb[0-9]"
}
multipaths {
multipath {
wwid 3600144f057774b0000004ebf539e001d
alias sai
}
multipath {
wwid 3600144f057774b0000004eeab58a0001
alias winry
}
multipath {
device {
vendor OI
product COMSTAR
}
}
}
# multipath -ll
winry (3600144f057774b0000004eeab58a0001) dm-24 OI,COMSTAR
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 12:0:0:0 sdd 8:48 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 41:0:0:0 sdae 65:224 active ready running
sai (3600144f057774b0000004ebf539e001d) dm-9 OI,COMSTAR
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 17:0:0:0 sdv 65:80 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 54:0:0:0 sdai 66:32 active ready running
...

1. Based on the above multipath -ll output, it seems that I am not
load-balancing across both NICs. Why not?
2. When I boot the system, the initiator does not log in to any
target. Therefore, I need to rerun (3) and (4) above. Why?

--
albert chin (china@thewrittenword.com)

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 12-24-2011, 01:07 AM
Albert Chin
 
Default Multipath and iSCSI on 11.10

On Fri, Dec 23, 2011 at 07:20:01PM -0600, Albert Chin wrote:
> I have device-mapper-multipath configured with iSCSI. I have two
> interfaces configured to communicate with the iSCSI server. I discover
> and connect with the iSCSI targets as follows:
> (1) # iscsiadm -m discovery -t st -p 10.191.61.1:3260 -I iface1 -P 1
> (2) # iscsiadm -m discovery -t st -p 10.191.62.1:3260 -I iface2 -P 1
> (3) # iscsiadm -m node -p 10.191.61.1:3260 -I iface1 -l
> (4) # iscsiadm -m node -p 10.191.62.1:3260 -I iface2 -l
> # cat /etc/multipath.conf
> defaults {
> selector "round-robin 0"
> udev_dir /dev
> user_friendly_names yes
> }
> [[ snip snip ]]
> # multipath -ll
> winry (3600144f057774b0000004eeab58a0001) dm-24 OI,COMSTAR
> size=500G features='0' hwhandler='0' wp=rw
> |-+- policy='round-robin 0' prio=1 status=active
> | `- 12:0:0:0 sdd 8:48 active ready running
> `-+- policy='round-robin 0' prio=1 status=enabled
> `- 41:0:0:0 sdae 65:224 active ready running
> sai (3600144f057774b0000004ebf539e001d) dm-9 OI,COMSTAR
> size=500G features='0' hwhandler='0' wp=rw
> |-+- policy='round-robin 0' prio=1 status=active
> | `- 17:0:0:0 sdv 65:80 active ready running
> `-+- policy='round-robin 0' prio=1 status=enabled
> `- 54:0:0:0 sdai 66:32 active ready running
> ...
>
> 1. Based on the above multipath -ll output, it seems that I am not
> load-balancing across both NICs. Why not?

Adding path_grouping_policy multibus fixed this.

> 2. When I boot the system, the initiator does not log in to any
> target. Therefore, I need to rerun (3) and (4) above. Why?

Still not sure about this one.

--
albert chin (china@thewrittenword.com)

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 01-03-2012, 01:37 PM
"Peter M. Petrakis"
 
Default Multipath and iSCSI on 11.10

On 12/23/2011 09:07 PM, Albert Chin wrote:
> On Fri, Dec 23, 2011 at 07:20:01PM -0600, Albert Chin wrote:
>> I have device-mapper-multipath configured with iSCSI. I have two
>> interfaces configured to communicate with the iSCSI server. I discover
>> and connect with the iSCSI targets as follows:
>> (1) # iscsiadm -m discovery -t st -p 10.191.61.1:3260 -I iface1 -P 1
>> (2) # iscsiadm -m discovery -t st -p 10.191.62.1:3260 -I iface2 -P 1
>> (3) # iscsiadm -m node -p 10.191.61.1:3260 -I iface1 -l
>> (4) # iscsiadm -m node -p 10.191.62.1:3260 -I iface2 -l
>> # cat /etc/multipath.conf
>> defaults {
>> selector "round-robin 0"
>> udev_dir /dev
>> user_friendly_names yes
>> }
>> [[ snip snip ]]
>> # multipath -ll
>> winry (3600144f057774b0000004eeab58a0001) dm-24 OI,COMSTAR
>> size=500G features='0' hwhandler='0' wp=rw
>> |-+- policy='round-robin 0' prio=1 status=active
>> | `- 12:0:0:0 sdd 8:48 active ready running
>> `-+- policy='round-robin 0' prio=1 status=enabled
>> `- 41:0:0:0 sdae 65:224 active ready running
>> sai (3600144f057774b0000004ebf539e001d) dm-9 OI,COMSTAR
>> size=500G features='0' hwhandler='0' wp=rw
>> |-+- policy='round-robin 0' prio=1 status=active
>> | `- 17:0:0:0 sdv 65:80 active ready running
>> `-+- policy='round-robin 0' prio=1 status=enabled
>> `- 54:0:0:0 sdai 66:32 active ready running
>> ...
>>
>> 1. Based on the above multipath -ll output, it seems that I am not
>> load-balancing across both NICs. Why not?
>
> Adding path_grouping_policy multibus fixed this.

Interesting, multibus is supposed to be the default policy...

>> 2. When I boot the system, the initiator does not log in to any
>> target. Therefore, I need to rerun (3) and (4) above. Why?
>
> Still not sure about this one.

This is to be configured outside of multipath. You'll need to configure
the iscsid initiator config file to login into these targets at boot.

apt-get install open-iscsi
vi /etc/iscsi/iscsid.conf

Peter


--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 07:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org