sudo aptitude install iscsitargetsudo nano -w /etc/ietd.confAdd the lines below
Target <target_name>
Lun <lun_number> Path=<path>,Type=fileio
Where <target_name> is your iSCSI qualified name (iqn). The target name must be a globally unique name, the iSCSI standard defines the IQN as follows:
iqn.yyyy-mm.<reveresed.domain.name>[:identifier]"yyyy-mm" is the date at which the domain is valid and the identifier can be anything you like. Don't stress over this too much when testing, you can actually specify whatever iqn you like and it will still work.
<lun_number> numbers the lun, starting at 0.
<path> is the path of the local disk you want to host.
e.g.
Target iqn.2001-04.com.ubuntu:dev.sdb1Lun 0 Path=/dev/sdb1,Type=fileio
Now restart iscistarget
sudo /etc/init.d/iscsitarget restart
You now have a fully functional iSCSI target. You should be able to connect using any iSCSI initiator, you can set one up in ubuntu or if you have a windows client here's one from microsoft
0 comments:
Post a Comment