User Tools

Site Tools




  • Remember that iSCSI gives raw filesystem access to other machines, and that Windows doesn't support ext2/3 filesystems, so any devices being shared to Windows machines will need to be formatted as FAT(12/16/32) or NTFS. Linux's NTFS support is reasonable enough these days for this to not be too much of a problem, however.


svn checkout * Change into the trunk directory: cd trunk * Make and install iSCSI Enterprise Target: make make install * Copy the configuration files into /etc/: cp -r etc/* /etc/ ===== Configuration ===== ==== Server (Target) ==== * Change into the /etc/ directory: cd /etc * Edit ietd.conf: vi ietd.conf * Change the “Target” line to match your setup. The format is “Target”, where: * “2008” is the current year * “02” is the current month * “net.sihnon.jiangyin.hex” is the reversed domain name of the host * “” is the identifier for this target (i.e. disk). It can be anything you like, but must be unique. * Uncomment the “Lun 0 Path=/dev/sdc,Type=fileio” line and change the “Path” to the physical, /dev/…, path to the device, e.g. /dev/hda1. * Edit initiators.allow: vi initiators.allow * For testing/debugging purposes, simply add: ALL ALL :to the bottom of the file and save it. * Restart the iSCSI service: /etc/init.d/iscsi-target restart ==== Windows Client (Initiator) ==== Assuming that the iSCSI Initiator is already installed. * Load the iSCSI Initiator Properties applet in Control Panel. * On the General tab, click the “Change” button to rename the Initiator. Change its name to the same as you named the Target in the server configuration, minus the identifier; e.g. “”. * On the Discover tab, click the “Add Portal” button to add a new Target Portal. Enter the IP address of the Target server, leaving the port at the default, then click OK. * Switch to the Targets tab and click the Refresh button. Your iSCSI Target server's target devices should appear in the list. Assuming they do, click one to select it, then click the “Log on…“ button and click “OK” on the dialog that pops up. * You should now be connected to that iSCSI drive. * Open Control PanelAdministrative ToolsComputer ManagementDisk Management, or run “diskmgmt.msc”, and the new iSCSI disk should be displayed. It will need to be formatted with a filesystem that Windows understands (if it isn't already) before it can be mounted, though. ===== References ===== * *

iscsi_enterprise_target.txt · Last modified: 2014/11/24 01:14 by