mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: CBE-OSS-DEV <cbe-oss-dev@ozlabs.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>,
	Geoff Levand <geoffrey.levand@am.sony.com>,
	FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: LIO-Target/ConfigFS v3.0 on ppc64 for Playstation3
Date: Thu, 16 Apr 2009 18:28:17 -0700	[thread overview]
Message-ID: <1239931697.4176.593.camel@haakon2.linux-iscsi.org> (raw)

Greetings all,

I have recently been updating my Playstation3s to use the
lio-core-2.6.git v3.0 codebase, and I am happy to report all of v3.0
functionality is now up and running with Target_Core_Mod/ConfigFS and
LIO-Target v3.0 on v2.6.29 ppc64 including SCSI-3 compliant emulation.
Persistent Reservations, full ConfigFS operation, and hardware device
export is up and running.  

http://linux-iscsi.org/index.php/Playstation3/iSCSI

Currently, this requires folks to build a v2.6.29 ppc kernel and modules
from the lio-core-2.6.git tree.  You will need to be comfortable
checking cloning a git repository and building/install from source on
your PS3-Linux installation..

>From there, the export of storage objects using the v3.0 ConfigFS is
quite straightforward, here is an excerpt from the URL above to
configure iscsi_target_mod in 'demo mode' for /dev/sr0 to allow any
iSCSI Initiators to login and perform I/O to the target_core_mod/pSCSI
configured storage object.

       modprobe target_core_mod
       export CONFIGFS=/sys/kernel/config/
       export TARGET=/sys/kernel/config/target/core/
       export FABRIC=/sys/kernel/config/target/iscsi/

       # Create PSCSI ConfigFS storage object from HTCL 0:0:0:0
       mkdir -p $TARGET/pscsi_0/sr0
       echo scsi_channel_id=0,scsi_target_id=0,scsi_lun_id=0 > $TARGET/pscsi_0/sr0/control
       echo 1 > $TARGET/pscsi_0/sr0/enable

       export DEF_IQN="iqn.2003-01.org.linux-iscsi.playstation3.cell:sn.73b073c4e157"
       export PORTAL="192.168.0.160:3260"

       # The first mkdir(2) to $FABRIC will load iscsi_target_mod
       mkdir -p "$FABRIC/$DEF_IQN/tpgt_1/np/$PORTAL"
       echo 8 > "$FABRIC/$DEF_IQN/tpgt_1/param/MaxConnections"
       # Create the SCSI Target Port from PSCSI storage object
       mkdir -p "$FABRIC/$DEF_IQN/tpgt_1/lun/lun_0"
       ln -s $TARGET/pscsi_0/sr0 "$FABRIC/$DEF_IQN/tpgt_1/lun/lun_0/lio_bdrom_port"
       # Allow demo mode R/W access for the iSCSI target portal group
       echo 0 > $FABRIC/$DEF_IQN/tpgt_1/attrib/authentication
       echo 1 > $FABRIC/$DEF_IQN/tpgt_1/attrib/generate_node_acls
       echo 0 > $FABRIC/$DEF_IQN/tpgt_1/attrib/demo_mode_write_protect
       # Enable the TPG Endpoint so initiators can login
       echo 1 > $FABRIC/$DEF_IQN/tpgt_1/enable

Also, you can find more information about Target_Core_Mod/ConfigFS and LIO-Target/ConfigFS at:

http://linux-iscsi.org/index.php/Target_Core_Mod/ConfigFS
http://linux-iscsi.org/index.php/LIO-Target/ConfigFS

--nab




                 reply	other threads:[~2009-04-17  1:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1239931697.4176.593.camel@haakon2.linux-iscsi.org \
    --to=nab@linux-iscsi.org \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=cbe-oss-dev@ozlabs.org \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=geoffrey.levand@am.sony.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®