Hi,
I got soft fcoe initiator and target working...see also the output of
targetcli as follows...
In order to write to the target I mounted vmfs5 on my initiator.
Is there a way to see the content of the file on the target side? Will I
need to mount /dev/sdb1?
# targetcli
targetcli shell version 2.0rc1.fb16
Copyright 2011 by RisingTide Systems LLC and others.
For help on commands, type 'help'.
/> ls
o- /
..........................................................................
........................................ [...]
o- backstores
..........................................................................
............................. [...]
| o- block
..........................................................................
................... [1 Storage Object]
| | o- Disk1
....................................................................
[/dev/sdb1 (2.0GiB) write-back activated]
| o- fileio
..........................................................................
.................. [0 Storage Object]
| o- pscsi
..........................................................................
................... [0 Storage Object]
o- loopback
..........................................................................
......................... [0 Targets]
o- tcm_fc
..........................................................................
........................... [4 Targets]
o- 10:00:00:1d:09:31:b9:48
..........................................................................
.......... [enabled]
| o- acls
..........................................................................
............................ [2 ACLs]
| | o- 10:00:00:1b:21:9d:b7:9a
..........................................................................
. [1 Mapped LUN]
| | | o- mapped_lun0
..........................................................................
.. [lun0 block/Disk1 (rw)]
| | o- 20:00:00:1b:21:9d:b7:9a
..........................................................................
. [1 Mapped LUN]
| | o- mapped_lun0
..........................................................................
.. [lun0 block/Disk1 (rw)]
| o- luns
..........................................................................
............................. [1 LUN]
| o- lun0
..........................................................................
......... [block/Disk1 (/dev/sdb1)]
o- 10:00:90:e2:ba:3d:38:82
..........................................................................
.......... [enabled]
| o- acls
..........................................................................
............................. [1 ACL]
| | o- 20:00:00:1b:21:9d:b7:9a
..........................................................................
. [1 Mapped LUN]
| | o- mapped_lun0
..........................................................................
.. [lun0 block/Disk1 (rw)]
| o- luns
..........................................................................
............................. [1 LUN]
| o- lun0
..........................................................................
......... [block/Disk1 (/dev/sdb1)]
o- 20:00:00:1d:09:31:b9:48
..........................................................................
.......... [enabled]
| o- acls
..........................................................................
............................ [2 ACLs]
| | o- 10:00:00:1b:21:9d:b7:9a
..........................................................................
. [1 Mapped LUN]
| | | o- mapped_lun0
..........................................................................
.. [lun0 block/Disk1 (rw)]
| | o- 20:00:00:1b:21:9d:b7:9a
..........................................................................
. [1 Mapped LUN]
| | o- mapped_lun0
..........................................................................
.. [lun0 block/Disk1 (rw)]
| o- luns
..........................................................................
............................. [1 LUN]
| o- lun0
..........................................................................
......... [block/Disk1 (/dev/sdb1)]
o- 20:00:90:e2:ba:3d:38:82
..........................................................................
.......... [enabled]
o- acls
..........................................................................
............................. [1 ACL]
| o- 20:00:00:1b:21:9d:b7:9a
..........................................................................
. [1 Mapped LUN]
| o- mapped_lun0
..........................................................................
.. [lun0 block/Disk1 (rw)]
o- luns
..........................................................................
............................. [1 LUN]
o- lun0
..........................................................................
......... [block/Disk1 (/dev/sdb1)]
/>
Thanks,
Gerald
-----Original Message-----
From: Love, Robert W [mailto:[email protected]]
Sent: Thursday, August 08, 2013 6:24 PM
To: Gerald Stanje; Patil, Kiran; [email protected]
Subject: RE: example
> -----Original Message-----
> From: Gerald Stanje [mailto:[email protected]]
> Sent: Thursday, August 08, 2013 6:09 PM
> To: Love, Robert W; Patil, Kiran; [email protected]
> Subject: RE: example
>
> Hello,
>
> Attached my targetcli output...looks good?
>
No, I don't think so.
> Whats the next step? How to setup the initiator and establish the
> connection?
>
modprobe/vn2vn_create on the initiator. Get The port name from the
initiator.
> # targetcli
> targetcli shell version 2.0rc1.fb16
> Copyright 2011 by RisingTide Systems LLC and others.
> For help on commands, type 'help'.
>
> /> ls
> o- /
>
..........................................................................
> ........................................ [...]
> o- backstores
>
..........................................................................
> ............................. [...]
> | o- block
>
..........................................................................
> ................... [1 Storage Object]
> | | o- Disk1
> ....................................................................
> [/dev/sdb1 (2.0GiB) write-back activated]
> | o- fileio
>
..........................................................................
> .................. [0 Storage Object]
> | o- pscsi
>
..........................................................................
> ................... [0 Storage Object]
> o- loopback
>
..........................................................................
> ......................... [0 Targets]
> o- tcm_fc
>
..........................................................................
> ........................... [2 Targets]
> o- 10:00:90:e2:ba:3d:38:82
>
..........................................................................
> .......... [enabled]
> | o- acls
Go under this directory and:
create <initiator port name>
so you're granting access from the initiator to the target's lun.
I think you then need to logout/in on the intiator again.
echo <ifname> > /sys/module/libfcoe/parameters/destroy
echo <ifname> > /sys/module/libfcoe/parameters/create_vn2vn
then 'fcoeadm -t' 'fcoeadm -l' and 'lsscsi' should all be able to confirm
you're connected to the target and that you've discovered a lun.
//Rob
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel