Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

XCP-ng and Freenas iSCSI

Joined
Jul 17, 2019
Messages
10
Thanks
1
#1
I have a freenas 11.2
I have a 10G Storage network
Adding a new SR , the discovery works fine, but when I have to select the LUN, it doesn't show up. Configuration under FreeNAS looks fine.
I can ping xcp-ng server from FreeNAS console. I can ping freenas host from xcp-ng console.

I am a newbie. I tried connecting from xcp-ng using iscsiadm and the discovery worked fine. but I don't know how to test the LUN part.
I would like to set up the SR (Storage Reposiroty) from the console, but I don't know how to do it.

I started with ESXi 6.2 but i had issues setting up FreeNAS, not I am stuck pretty much doing the same.
On ESXi I couldn't see the LUN neither.

What could be the problem?

Thanks in advance.
 
Joined
Jul 17, 2019
Messages
10
Thanks
1
#2
this is the SMlog


Aug 29 13:46:47 localhost SM: [11062] lock: released /var/lock/sm/iscsiadm/runni
ng
Aug 29 13:46:47 localhost SM: [11062] lock: closed /var/lock/sm/iscsiadm/running
Aug 29 13:46:47 localhost SM: [11062] Raising exception [202, General backend er
ror [opterr=rc: 21, stdout: , stderr: iscsiadm: No active sessions.
Aug 29 13:46:47 localhost SM: [11062] ]]
Aug 29 13:46:47 localhost SM: [11062] ['iscsiadm', '-m', 'session'] failed with
(u'General backend error [opterr=rc: 21, stdout: , stderr: iscsiadm: No active s
essions.\n]',)
Aug 29 13:46:47 localhost SM: [11062] Raising exception [107, The SCSIid paramet
er is missing or incorrect]
Aug 29 13:46:47 localhost SM: [11062] ***** LVHD over iSCSI: EXCEPTION <class 'S
R.SROSError'>, The SCSIid parameter is missing or incorrect
Aug 29 13:46:47 localhost SM: [11062] File "/opt/xensource/sm/SRCommand.py", l
ine 370, in run
Aug 29 13:46:47 localhost SM: [11062] sr = driver(cmd, cmd.sr_uuid)
Aug 29 13:46:47 localhost SM: [11062] File "/opt/xensource/sm/SR.py", line 147
, in __init__
Aug 29 13:46:47 localhost SM: [11062] self.load(sr_uuid)
Aug 29 13:46:47 localhost SM: [11062] File "/opt/xensource/sm/LVMoISCSISR", li
ne 190, in load
Aug 29 13:46:47 localhost SM: [11062] raise xs_errors.XenError('ConfigSCSIid
')
 
Joined
Jul 17, 2019
Messages
10
Thanks
1
#5
Both sides MTU is 9000. I haven't touched the siwtch. It is a Quanta LB6M. I tested pinging the XCP using -s1472 and it works. When I try -s1473 it doesn't work. So i am wondering if in the switch MTU is set to 1500. I am working on it.
 
Joined
Jul 17, 2019
Messages
10
Thanks
1
#6
Were you able to resolve this?
I was able to resolve today. I connected to the switch and changed the MTU to 9000. After that, XCP-NG was able to see the LUN.
What a headache. I was stuck on this , since 3 weeks ago. I was really frustrated and I could find any help until I checked pinging a >1500 packet.
I hope this helps somebody in the future.

My switch is a Quanta LB6M.
 
Top