External Fibre SAN as FN targets

Joined
Apr 26, 2015
Messages
320
Ok, I've got a single qlogic card installed and now I see something different.
The best setup for me would be using one single card with port 0 being target to the external IBM storage and port 1 being the freenas internal storage for the BladeCenter vms.

Now I see;

# ctladm port -l
Port Online Frontend Name pp vp
0 YES tpc tpc 0 0
1 NO camsim camsim 0 0 naa.5000000aec2dc302
2 YES ioctl ioctl 0 0
3 YES camtgt isp0 0 0 naa.21000024ff25f3b8
4 YES camtgt isp1 0 0 naa.21000024ff25f3b9
5 YES iscsi iscsi 257 1 naa.5001438004c37d08,t,0x0101 (This seems to have shown up)
6 YES iscsi iscsi 257 2 iqn.2005-10.org.freenas.ctl:nas01target,t,0x0101
7 YES iscsi iscsi 258 3 iqn.2005-10.org.freenas.ctl:nas0targetclients,t,0x0102

Before;

# ctladm port -l
Port Online Frontend Name pp vp
0 YES tpc tpc 0 0
1 NO camsim camsim 0 0 naa.5000000f296ddf02
2 YES ioctl ioctl 0 0
3 YES camtgt isp0 0 0 naa.5001438004c37d08 (This seems to be the IBM. At least I can see this ID on the IBM)
4 YES camtgt isp1 0 0 naa.5001438004c37d0a
5 YES iscsi iscsi 257 1 iqn.2005-10.org.freenas.ctl:nas01target,t,0x0101
6 YES iscsi iscsi 258 2 iqn.2005-10.org.freenas.ctl:nas0targetclients,t,0x0102
 
Last edited:
Joined
Apr 26, 2015
Messages
320
# camcontrol devlist -v
*Removed local ATA drives
scbus1 on isp0 bus 0:
< > at scbus1 target 1024 lun 0 (ctl0)
< > at scbus1 target 1024 lun 1 (ctl1)
<> at scbus1 target -1 lun -1 (ctl2)
scbus2 on isp1 bus 0:
< > at scbus2 target 1024 lun 0 (ctl3)
< > at scbus2 target 1024 lun 1 (ctl4)
<> at scbus2 target -1 lun -1 (ctl5)

Is it odd that the third listsings show -1?
 
Joined
Apr 26, 2015
Messages
320
I would hate to have to stop now. Can anyone help continue with this to see if this can work.
 
Joined
Apr 26, 2015
Messages
320
The Qlogic seems to be seeing the storage. However, I've yet to find a way to import it and use it in freenas.
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
It was pointed twice before, but have you removed setting port role to 0 and enabling target for port you are going to use as initiator? FreeNAS should work as FC initiator out of the box without any additional configuration. From the information above it looks like you are still enabling target mode there.
 
Joined
Apr 26, 2015
Messages
320
hint.isp.0.role is currently set to 1 and I do see the storage from the command line. I just don't seem to find any way of seeing it from the GUI.
I think I am out of sync with something I've been asked to do.
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
hint.isp.0.role set to 1 means target role. To see other FC storage some of your ports need to be configured as initiator (or both, but I would not recommend). Your `camcontrol` output confirms that both ports are in target mode and do not see any other targets, so I am not sure what storage do you see from the command line.
 
Joined
Apr 26, 2015
Messages
320
Yup, I'm out of sync somewhere.
I thought we said a while back that 0 means target and that 1 meant initiator.
I could not see the external storage because the HBA was set as target and not initiator.
I changed one port to 1 to see if the external storage could be seen and it seemed to be unless I am not understanding something.

If it is not being seen, I have a problem with being out of sync and not understanding what I need to look for.

If is is being seen, then I am not seeing any new storage/volume options in the GUI which is where I would manage it.
I mentioned it looks like I am seeing the external storage. I posted that at the top of this page. When I installed a Qlogic card instead of the Emulex, I seem to be able to see a new storage device now.
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
This seems to be the IBM. At least I can see this ID on the IBM
No, this is the FreeNAS target ports. Please read `man isp` about the role settings and just set it to 2, which means initiator. 0 there means disabled, which is the proper settingg for target mode during boot, which later changed to 1 by CTL when you enable the port there.
 
Joined
Apr 26, 2015
Messages
320
Done. Do I need to reboot FN after this change?
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
It should not be necessary, if the sysctl is really set. If you set it as tunable, then yes, reboot.
 
Joined
Apr 26, 2015
Messages
320
Really set? Do you mean if it took the value of 2 and saved it?

hint.isp.0.role = 2
hint.isp.1.role = 2

Enabled on both is true.
However, I'm not seeing any new storage from the command line using ctladm port -l nor in the Storage area of the GUI.
 
Joined
Apr 26, 2015
Messages
320
I rebooted and now I see da12 and da14 storage devices from the GUI. I didn't see them before so maybe this is working now.
However, I'm also seeing a device that I don't recall connecting so won't know why I'm seeing two new devices until I take a closer look.
 
Joined
Apr 26, 2015
Messages
320
External storage is now usable. This means I can use freenas as pretty much an unlimited storage management device without costly licencing.
I've used BlueArc and OnStor to accomplish that in the past but FN might be the new alternative.

Thanks very much for helping on this, even if we did get out of sync a bit.
 
Top