FreeNAS FC Target

Взято здесь: http://forums.freenas.org/index.php?threads/fc-target-support-in-freenas-9-1-0.14139/

FreeNAS doesn't have FC target support by default, but you can make it work if you want to do some hacking and you don't care that you can't manage it from the GUI.

Немного устаревшая инструкция

  1. unzip and gunzip then copy the attached ko to your FreeNAS box. Put it in /boot/modules. The attached ko is 64 bit only) ispfw.ko.xz.zip
  2. Run kldxref /boot/kernel boot/modules
  3. Add a tunable to the GUI for ctl_load YES
  4. Switch your FC ports to target mode. by adding hint.isp.0.role=“1” to /boot/device.hints. Wash rinse and repeat for each FC port.
  5. Обрезаем наш таргет до 100 гигов
    truncate -s 100g /mnt/tank/somefile

  6. Оять делаем в терминале:

    ctladm port on
    ctladm realsync off
    ctladm create -b block -o file=/mnt/tank/somefile 

You could use a post init script to run the ctladm commands at boot.

Исправленное здесь:

http://forums.freenas.org/index.php?threads/freenas-9-2-0-beta-now-available.16432/

С учетом следующего: https://bugs.freenas.org/issues/3196 добавляется тюнабл:

variable name: ispfw_load
variable value: YES

Изложенное параграфом выше выполняется так:

mount -u -w /
cd /tmp
fetch http://people.freebsd.org/~delphij/misc/ispfw.ko.xz
unxz ispfw.ko.xz
install -m 555 ispfw.ko /boot/kernel

И добавляется лоадер тюнабл:

hint.isp.0.role=2
hint.isp.1.role=2
embedded/freenas_fc_target.txt · Last modified: 2014/10/20 11:33 by rybario
About this template
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5