> From: Gerald Stanje [mailto:[email protected]]
> Sent: Thursday, August 01, 2013 6:16 PM
> To: Patil, Kiran; Love, Robert W; [email protected]
> Subject: RE: example
> 
> Hi,
> 
> I need to create a virtual target because I don't have a physical target
> (storage) ...is that was app 'targetcli' does?
> 
> What is a Linux in-kernel TCM target?
> 
> I use:
> - Kubuntu: 13.04
> - Kernel: 3.8.0-19-generic
> 

targetcli is the administration tool for the in-kernel TCM target.

It's fairly straightforward. The one tricky thing is that you have to login 
(VN2VN)
on both sides before setting up the target. This way you can get the WWPN that
you need for target CLI. In a nutshell, you're going to do this:

1) login both sides (initiator and target) (echo create_vn2vn)
2) run targetcli
3) create a disk
4) create a WWPN (from the target fcoeadm -i) in tcm_fc
5) create a WWPN (from the initiator fcoeadm -i) in acls under the target WWPN
6) add the lun to the luns/

Here's the output of a working setup I have,

/tcm_fc/20:00...:17/luns/lun0> ls /
o- / 
.........................................................................................................................
 [...]
  o- backstores 
..............................................................................................................
 [...]
  | o- fileio 
...................................................................................................
 [0 Storage Object]
  | o- iblock 
...................................................................................................
 [1 Storage Object]
  | | o- disk1 
................................................................................................
 [/dev/sdd activated]
  | o- pscsi 
....................................................................................................
 [0 Storage Object]
  | o- rd_dr 
....................................................................................................
 [0 Storage Object]
  | o- rd_mcp 
...................................................................................................
 [0 Storage Object]
  o- ib_srpt 
............................................................................................................
 [0 Target]
  o- iscsi 
..............................................................................................................
 [0 Target]
  o- loopback 
...........................................................................................................
 [0 Target]
  o- qla2xxx 
............................................................................................................
 [0 Target]
  o- tcm_fc 
.............................................................................................................
 [1 Target]
    o- 20:00:00:1b:21:72:d2:17 
...........................................................................................
 [enabled]
      o- acls 
..............................................................................................................
 [1 ACL]
      | o- 20:00:00:1b:21:69:9f:3f 
..................................................................................
 [1 Mapped LUN]
      |   o- mapped_lun0 
...............................................................................................
 [lun0 (rw)]
      o- luns 
..............................................................................................................
 [1 LUN]
        o- lun0 
..........................................................................................
 [iblock/disk1 (/dev/sdd)]

Hope this helps, //Rob
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to