OpenSolaris

  subsites   code review   repo   packages   bugs   defect   polls   planet
You are not signed in. Sign in or register.

heads-up: iSCSI Target now available

Date: Fri, 30 Jun 2006 17:59:20 -0600
From: Rick McNeal <Rick dot McNeal at Sun dot COM>
To: onnv-gate at onnv dot eng dot sun dot com, on-all at Sun dot COM
Subject: heads-up: iSCSI Target now available

If you're not interested in being able to setup your Solaris machine to 
act like a storage array delete now.

I just integrated the following into Solaris:

	PSARC 2005/441 iSCSI Target
	6392513 Need iSCSI Target for Solaris

which enables any machine running Solaris Nevada to act as
an storage array. With a few simple commands your Solaris host
can export block storage over SWAN.

(1) Provide a directory where the logical units will be stored.

	iscsitadm modify admin -d /export/targets

     Obviously if you'd like to have the LUs stored elsewhere
     just supply a different directory.

(2) Create a logical unit

	iscsitadm create target -z 2g sandbox

(3) Enable discovery from a host running the Solaris initiator

	iscsiadm add discovery-address <your IP address>
	iscsiadm modify discovery -t enable

     Before the iSCSI Target daemon enables a logical unit it
     must first initialize the backing store. For a 2GB LU this
     can take a couple of minutes. If you've enabled an initiator
     to discover the target before the LU is initialized the
     initiator will wait until it receives an online event from
     the target. You can run 'iscsitadm list target -v' and wait
     until the Status changes from offline to online if you wish
     to wait.

If you have any questions send a email message to either
Rick dot McNeal at Sun dot COM or iscsi-tgt-iteam at sun dot com which for the
time being is rick dot mcneal at sun dot com. There will be a man page
available for iscsitadm(1M) along with an additional section
to the System Administration Guide. I also maintain a web page
at http://iscsi.central and the bug category is solaris/storage_target/iscsi


-- 
Rick McNeal

A good friend will come and bail you out of jail ... but, a true friend 
will be sitting next to you saying, "Damn ... that was fun!"