Thanks .
That was ok. I found the solution by other way and i am going to explain for everyone.
p { margin-bottom: 0.21cm; } I have 2 proxmox 1.6 in cluster with 2 nic each one. Each one has one nic for vm and the other for a conection with a San( a Openfiler 2.3).
My openfiler has 5 nics. One for gestion( 192.168.40.4) and four in a Bound dedicated a iscsi protocol ( 192.168.10.12).
i use LVM over iscsi. in the OPENFILER.
I did a upgrade to proxmoz ve 1.7:
>aptitude update
>aptitude safe-upgrade.
After reset i could not conect anymore with the San
A cut from syslog
Dec 4 11:13:38 PROXMOX1 pvedaemon[2233]: WARNING: command '/usr/bin/iscsiadm --mode node --portal 192.168.40.4:3260 --targetname iqn.2006-01.com.openfiler:tsn.Raptor50GB --login' failed with exit code 255.
From proxmox1 i do a discovery and the openfiler gave me two targets ( like always) one for my vm net 192.168.40.0/24 and other to my dedicated iscsi net 192.168.10.0/24
>iscsiadm -m discovery -t st -p 192.168.10.12:3260
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_50_server2008
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.Raid6_75_vlprograII
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_75_vlprogramacion
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_30_Zentyal
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.Raptor50GB
192.168.40.4:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_50_server2008
192.168.40.4:3260,1 iqn.2006-01.com.openfiler:tsn.Raid6_75_vlprograII
192.168.40.4:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_75_vlprogramacion
192.168.40.4:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_30_Zentyal
192.168.40.4:3260,1 iqn.2006-01.com.openfiler:tsn.Raptor50GB.
That was the multipath in the OPENFILER, it must be just one target not two
But the proxmox always try to connect to the 192.168.40.4 target instead of the target 192.168.10.12. so i tried ( and I could not do) to force the connection iscsi in the nic eth1 ( net 192.168.10.0/24). To do
that i created a new iface:
>iscsiadm -m iface -I ifaceRed10 –op new >cat /etc/iscsi/ifaces/ifaceRed10:
iface.iscsi_ifacename= ifaceRed10
iface.net_ifacename=eth1
iface.hwaddress=90: The probEl problema con esto es que usamos iscsi en la misma red que las vmE6:BA:5C:E7:BD
iface,Transport_name= tcp
>icsiadm -m discovery -t st -I ifaceRed10 -p 192.168.10.12:3260 -o update.
However that, the proxmox again try to connect with the target 192.168.40.4.
So there were two solutions for me:
a) the worse: Activate the acl rule in the openfiler to permit protocol in the net 192.168.40.0/24
[root@san etc]# cat /etc/initiators.allow
# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
# This configuration file was autogenerated
# by Openfiler. Any manual changes will be overwritten
# Generated at: Sat Dec 4 17:21:15 CET 2010
iqn.2006-01.com.openfiler:tsn.raid6_50_server2008 192.168.10.0/24 192.168.40.0/24
iqn.2006-01.com.openfiler:tsn.Raptor50GB 192.168.10.0/24 192.168.40.0/24
iqn.2006-01.com.openfiler:tsn.raid6_75_vlprogramacion 192.168.10.0/24 192.168.40.0/24
iqn.2006-01.com.openfiler:tsn.raid6_30_Zentyal 192.168.10.0/24 192.168.40.0/24
iqn.2006-01.com.openfiler:tsn.Raid6_75_vlprograII 192.168.10.0/24 192.168.40.0/24
# End of Openfiler configuration.
The problem with this solution is that i use the same net for vm and iscsi . bad performance.
B) The solution:
i left the acl rule for iscsi(
/etc/initiators.allow) just for 192.168.10.0/24 net.
and i changed the mutipath in the openfiler to listen just in the net 192.168.10.0/24
[root@san /]# cat /etc/sysconfig/iscsi-target MEM_SIZE=1048576
LISTEN_ADDR="192.168.10.12"
[root@san /]
[root@san /]# /etc/init.d/iscsi-target restart In the proxmox i left all in the default stage:
delete nodes y register in the databasename:
>iscsiadm -m discovery -p 192.168.40.4:3260 -o delete
>iscsiadm -m discovery -p 192.168.10.12:3260 -o delete
delete the iface
>iscsiadm -m iface -I ifaceRed10 –op delete
Avoid the multipath in proxmox
/etc/iscsi/iscsi.conf :
node.startup=manual
restart
/etc/init.d/open-iscsi restart
After that all was ok:
PROXMOX1:/var/log# iscsiadm -m discovery -t st -p 192.168.10.12:3260
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_50_server2008
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.Raid6_75_vlprograII
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_75_vlprogramacion
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.raid6_30_Zentyal
192.168.10.12:3260,1 iqn.2006-01.com.openfiler:tsn.Raptor50GB
PROXMOX1:/var/log#
just one target.
i hope this will be useful for everyone.
There is one question that i can not resolve:
How to force the proxmox to connect to the target 192.168.10.12 instead 192.168.40.4