Changes

Jump to: navigation, search

FreeBSD fiber channel target

536 bytes added, 10:25, 22 February 2019
no edit summary
[[Category:FreeBSD]]
 
== Introduction ==
== Check the WWN address ==
 
sudo ctladm port -o on isp0
You'll get output like:
== Configure /etc/ctl.conf ==
Use this comfig config for /etc/ctl.conf:
lun fibre-channel { backend block device-id "5000c5001d5ba30b" serial "MGKSERIAL0001" option vendor "MGK" option product "FC Disk" option naa "600A0B80002682A8000067D95897A544" option removable "on" path /dev/zvol/tank1/export/fc } target naa.2100001b321cd5b6 100000062b1b88c8 {
auth-group no-authentication
port isp0mpt0 port isp1mpt1 lun 0 { backend block path /dev/zvol/tank1/export/fc }fibre-channel
}
Make sure the WWN matches. Next, start the ctld daemon. The device-id is from a real Seagate FC disk, and the naa is from a real array. I think both are required by macOS to make multipathing work.
sudo service ctld start
ctld_name=naa.2100001b321cd5b6,lun,0
scsiname=naa.2100001b321cd5b6,lun,0
 
== Initiator side ==
 
If using macOS, the mac should just "see" the target, no configuration required.
== References ==
* [https://justinholcomb.me/blog/2016/03/19/migration-to-freebsd-part3.html Migrating to FreeBSD from Solaris 11: Part 3 - Importing ZVols for serving via Fiber Channel]
* [https://globalengineer.wordpress.com/2018/03/25/applied-freebsd-fibre-channel-target Applied FreeBSD: Fibre Channel Target]
* [https://discussions.apple.com/thread/1927941 SAN multipathing in OS X 10.5 Leopard]

Navigation menu