[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1239931697.4176.593.camel@haakon2.linux-iscsi.org>
Date: Thu, 16 Apr 2009 18:28:17 -0700
From: "Nicholas A. Bellinger" <nab@...ux-iscsi.org>
To: CBE-OSS-DEV <cbe-oss-dev@...abs.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
linux-scsi <linux-scsi@...r.kernel.org>,
Geert Uytterhoeven <Geert.Uytterhoeven@...ycom.com>,
Geoff Levand <geoffrey.levand@...sony.com>,
FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
Subject: LIO-Target/ConfigFS v3.0 on ppc64 for Playstation3
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists