Showing posts from December, 2009

Linux iSCSI Target Setup

I am working on setting our NAS device with iSCSI so that I can run VMware hosts externally. Here are my notes for setting up the iSCSI target and initiator. I am using Ubuntu 9.10 (latest version at the time.) I will be using a 160GB drive and dedicating it solely to run the mount points.

The iSCSI protocol is a storage area network (SAN) protocol which allows iSCSI initiators to use storage devices on the (remote) iSCSI target using normal ethernet cabling. To the iSCSI initiator, the remote storage looks like a normal, locally-attached hard drive. (Initiator): IP address (Target): IP address

Setting up the target [server2]

Installing the software apt-get install iscsitarget Modify the config file for iscsitarget nano /etc/default/iscsitarget Now enable the ISCSITARGET ISCSITARGET_ENABLE=trueNOTE: You can use logical volumes, image files, hard drives [/dev/sdb], partitions [/dev/sdb1] or RAID devices [/dev/md0] for st…