Last active
December 28, 2015 03:19
-
-
Save apahim/7434836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/vdsm/vdsm.conf | |
# Auto-generated by vds_bootstrap at:2013-11-06 16:56:49.310410 | |
[vars] | |
trust_store_path = /etc/pki/vdsm | |
ssl=true | |
[irs] | |
iscsi_default_ifaces = eth1,eth2 <----- Interfaces to be used for multipath | |
[addresses] | |
management_port=54321 | |
vdsm.log: | |
Thread-41::DEBUG::2013-11-12 13:48:52,390::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m iface -I eth1 --op=new' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:52,429::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m iface -I eth2 --op=new' (cwd None) | |
- ifaces created ^^^ | |
Thread-41::DEBUG::2013-11-12 13:48:52,403::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I eth1 -p 192.168.25.118:3260,1 --op=new' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:52,442::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I eth2 -p 192.168.25.118:3260,1 --op=new' (cwd None) | |
- nodes created ^^^ | |
Thread-41::DEBUG::2013-11-12 13:48:52,456::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m iface' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:52,468::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I eth1 -p 192.168.25.118:3260,1 -l' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:53,138::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m iface' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:53,164::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I eth2 -p 192.168.25.118:3260,1 -l' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:53,818::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m iface' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:53,856::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I eth1 -p 192.168.25.118:3260,1 -n node.startup -v manual --op=update' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:53,869::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m iface' (cwd None) | |
Thread-41::DEBUG::2013-11-12 13:48:53,890::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I eth2 -p 192.168.25.118:3260,1 -n node.startup -v manual --op=update' (cwd None) | |
- login working as expected ^^^ | |
[root@rhevm30 iscsi]# pwd | |
/var/lib/iscsi | |
[root@rhevm30 iscsi]# tree | |
. | |
|-- ifaces | |
| |-- eth1 <------- | |
| `-- eth2 <------- | |
|-- nodes | |
| `-- iqn.2012-07.com.lenovoemc:storage.ix2-73.teste1 | |
| `-- 192.168.25.118,3260,1 | |
| |-- eth1 | |
| `-- eth2 | |
|-- send_targets | |
`-- static | |
|-- iqn.2012-07.com.lenovoemc:storage.ix2-73.teste1,192.168.25.118,3260,1,eth1 -> /var/lib/iscsi/nodes/iqn.2012-07.com.lenovoemc:storage.ix2-73.teste1/192.168.25.118,3260,1 <------- | |
`-- iqn.2012-07.com.lenovoemc:storage.ix2-73.teste1,192.168.25.118,3260,1,eth2 -> /var/lib/iscsi/nodes/iqn.2012-07.com.lenovoemc:storage.ix2-73.teste1/192.168.25.118,3260,1 <------- | |
8 directories, 4 files | |
[root@rhevm30 iscsi]# multipath -ll | |
35005907f7a7ab6d0 dm-2 LENOVO,LIFELINE-DISK | |
size=50G features='0' hwhandler='0' wp=rw | |
|-+- policy='round-robin 0' prio=1 status=active <------- Active path | |
| `- 5:0:0:0 sda 8:0 active ready running | |
`-+- policy='round-robin 0' prio=1 status=enabled <------- Fail over path | |
`- 6:0:0:0 sdb 8:16 active ready running | |
@dan, I believe user may not want to login to target using all his nics automatically, rather a list of nics which he prefer to find a path ..
the NICs that can't reach the portal won't be able to login and can be filtered out.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hmmm, each hyp should have its own 'iscsi_default_ifaces' entry defining the interfaces which can reach the target ..