System information

Pro ced u re 25.5. Co n f ig u re FCo E t arg et
1. Setting up an FCoE target requires the installation of the fco e-targ et-uti l s package,
along with its dependencies.
# yum i nstal l fco e-targ et-uti l s
2. FCoE target support is based on the LIO kernel target and does not require a userspace
daemon. However, it is still necessary to enable the fcoe-target service to load the needed
kernel modules and maintain the configuration across reboots.
# servi ce fco e-targ et start
# chkco nfi g fco e-targ et o n
3. Configuration of an FCoE target is performed using the targ etcl i utility, rather than by
editing a . co nf as may be expected. The settings are then saved so they may be restored if
the system restarts.
# targ etcl i
targ etcl i is a hierarchical configuration shell. Moving between nodes in the shell uses cd ,
and l s shows the contents at or below the current configuration node. To get more options,
the command hel p is also available.
4. Define the file, block device, or pass-through SCSI device to export as a backstore.
Examp le 25.5. Examp le 1 o f d ef in in g a d evice
/> backsto res/bl o ck create example1 /d ev/sd a4
This creates a backstore called exampl e1 that maps to the /d ev/sd a4 block device.
Examp le 25.6 . Examp le 2 o f def in in g a d evice
/> backsto res/fi l ei o create example2 /srv/example2.img 100M
This creates a backstore called exampl e2 which maps to the given file. If the file does not
exist, it will be created. File size may use K, M, or G abbreviations and is only needed when
the backing file does not exist.
Note
If the global auto _cd _after_create option is on (the default), executing a create
command will change the current configuration node to the newly created object. This
can be disabled with set g lo bal auto _cd _after_create= fal se. Returning to
the root node is possible with cd /.
5. Create an FCoE target instance on an FCoE interface.
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
178