Old Version

Version 4 (Who Cares, 09/10/2009 06:44 pm)

1 2 Who Cares
h3. Installation Instructions (.tar.gz version)
2 2 Who Cares
3 2 Who Cares
To install the iSCSI target support just download iSCSI Kernel Modules and Utilities for ReadyNAS directly to your ReadyNAS. You should have the EnableRootSSH addon installed and to make that one work, you might also need to install the ToggleSSH addon first. For the sake of brevity I assume you downloaded or copied the file to the /root directory of your ReadyNAS. If not, you’ll have to adapt the following commands accordingly:
4 2 Who Cares
5 2 Who Cares
# Change to the root directory and unpack the archive:
6 2 Who Cares
<pre>
7 4 Who Cares
cd /  
8 4 Who Cares
tar xzf /root/iscsitarget-0.4.16-ReadyNAS.tar.gz
9 2 Who Cares
</pre>
10 2 Who Cares
# Edit <code>/etc/ietd.conf</code>. The important part is this line:
11 2 Who Cares
<pre>
12 4 Who Cares
Lun 0 Path=/c/iscsi_file,Type=fileio
13 3 Who Cares
</pre>This will tell the iSCSI daemon to use the file /c/iscsi_file. If that’s fine with you, leave the line untouched. Otherwise change to your liking.
14 2 Who Cares
# Create the file for the iSCSI daemon. Since the iSCSI daemon cannot create the file that’ll later become our virtual SCSI drive, we’ll have to manually do that:
15 1 Who Cares
<pre>
16 4 Who Cares
dd if=/dev/zero of=/c/iscsi_file bs=10485760 count=4096
17 3 Who Cares
</pre>As given above, the command will create a 40 GB file. If you need a smaller/larger file, just change the count parameter. Depending on the size of the file to be created, this will take from some minutes to some hours. So don’t wait for the command to finish but do something else in the meantime.
18 2 Who Cares
# Make the iSCSI modules known to the kernel. This is easily done by typing
19 2 Who Cares
<pre>
20 4 Who Cares
depmod
21 3 Who Cares
</pre>on the command line. (You only need to do this once)
22 2 Who Cares
# Start the iSCSI target daemon:
23 1 Who Cares
<pre>
24 4 Who Cares
/etc/init.d/iscsi-target start
25 2 Who Cares
</pre>
26 2 Who Cares
# To enable autostart of the iSCSI target daemon, edit <code>/etc/init.d/rc3</code> and insert
27 2 Who Cares
<pre>
28 4 Who Cares
/etc/init.d/iscsi-target start
29 3 Who Cares
</pre>right before the last line (should be "exit 0").
30 2 Who Cares
# To have the iSCSI target daemon shut down cleanly on a system shutdown, edit <code>/etc/rc6.d/S99reboot</code> and insert
31 2 Who Cares
<pre>
32 4 Who Cares
/etc/init.d/iscsi-target stop
33 3 Who Cares
</pre>just before the line '# Save the last 5 ecounters by date.'