Download the iscsi target from http://iscsitarget.sourceforge.net/
wget http://surfnet.dl.sourceforge.net/sourceforge/iscsitarget/iscsitarget-0.4.16.tar.gz
compile :
tar -zxvf iscsitarget-0.4.16.tar.gz
cd iscsitarget-0.4.16/
make
I had to install :
apt-get -y install libssl-dev
make install
check that it starts :
cd /etc/init.d/
./iscsi-target start
./iscsi-target status
prepare a storage file (or use whole sd device)
cd /var; dd if=/dev/zero of=dev_iscsi_01.bin bs=1m count=100
this made a 100mb file
edit the iscsi target config file :
vim /etc/ietd.conf
change add the following lines :
Target iqn.2001-04.com.example:storage.disk1.sys1.xyz
Lun 0 Path=/var/dev_iscsi_01.bin,Type=fileio
restart the iscsi service :
/etc/init.d/iscsi-target start
connect from windows iscsi initiator and open the storage manager
A Blog about technology, linux, peer2peer, cool new downloads and software development.
Sunday, June 22, 2008
Ubuntu iscsi target tutorial
Subscribe to:
Post Comments (Atom)
1 comment:
Excellent!
Cut and dry!
Thanks.
Wilson
Post a Comment