HOWTO_use_OpenGFS_with_iSCSI (Feb 23 2003)


Contact the author.

Installing OpenGFS for iSCSI shared storage:

First thing to do is set up iSCSI. I used Intel's iSCSI.  Note that Intel's
iSCSI is not open source.  You can use whatever you want, but the directions 
here are based on Intel's (for now).

1. Unpack the source.

2. Edit the array INITIATOR_TARGET_T (near line 62) in initiator.c to suit 
   your needs.  It should read something like:

static INITIATOR_TARGET_T g_target[CONFIG_INITIATOR_NUM_TARGETS] = {
#if 1
  {"192.168.0.23", ISCSI_PORT, "", NULL, 0}};
#else
  {"192.168.0.46", ISCSI_PORT, "", NULL, 0},
  {"192.168.0.23", ISCSI_PORT, "", NULL, 0},
  {"10.7.194.123", ISCSI_PORT, "", NULL, 0}};
#endif

3. Edit the line
	#define CONFIG_INITIATOR_NUM_TARGETS 3
   to suit your needs in initiator.h (near line 39)

4. make

5. start the target
   I used the user space driver. It just creates a file in /tmp to write all 
   the data to.
	ufsdisk_mmap -t somebox.test.net -n 1024000
   This creates a 500MB temporary file in /tmp to hold the target "drive"
   Note:  With the user level programs, if you link the temp file to a device 
   in /dev, it will use that device

6. Run utest to test connectivity

7. insmod ./intel_iscsi

8. Refer to OpenGFS "generic" HOWTO document to build and install OpenGFS.

Copyright 2002-2003 The OpenGFS Project
SourceForge Logo