[Open-FCoE] Help to setup FCoE Target

Love, Robert W robert.w.love at intel.com
Mon Apr 7 23:19:13 UTC 2008

From: Prasanna Mumbai [mailto:mumbai.prasanna at gmail.com] 
Sent: Monday, April 07, 2008 3:25 PM
To: devel at open-fcoe.org
Cc: Love, Robert W
Subject: Help to setup FCoE Target

Hi all,
i am getting the following error when i try 

[root at localhost ~] echo "assign 3:0:1:0 dev_disk" > /proc/scsi_tgt/scsi_tgt
bash: echo: write error: Invalid argument

The format is
echo "assign H:C:I:L HANDLER_NAME" >/proc/scsi_tgt/scsi_tgt
i  am not sure what should i be using for the  "HANDLER_NAME"  in the command above.  i just copied "dev_disk" from the documentation given at

My lsscsi output looks like 
[root at localhost ~]# lsscsi 
[0:0:0:0]    cd/dvd  HL-DT-ST DVD-ROM GDR8164B 0D08  /dev/sr0
[2:0:0:0]    disk    ATA      Maxtor 6Y200M0   YAR5  /dev/sda
[3:0:1:0]    disk    ATA      Maxtor 6L080M0   BACE  /dev/sdb



Your problem is that you don't have the scst_disk module loaded. Refer to the SCST project site. They have a 'scst' init script and scstadmin tool that I use to set up my SW target. Mine ensures that the correct kernel modules are installed before it attempts to access the procfs. Looking at my 'scst' init script I have modified a definition,

SCST_MODULES="fcoe openfctgt scst_vdisk scst_disk"

I haven't played with this for a while, but it's working for me. Also, when I say init script I mean a system service script that resides in /etc/init.d/ on Fedora systems (and probably most other distros).

More information about the devel mailing list