Installation Instructions (.tar.gz version)¶
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:
- Change to the root directory and unpack the archive:
cd / tar xzf /root/iscsitarget-0.4.16-ReadyNAS.tar.gz
- Edit
/etc/ietd.conf. The important part is this line:Lun 0 Path=/c/iscsi_file,Type=fileio
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. - 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:
dd if=/dev/zero of=/c/iscsi_file bs=10485760 count=4096
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. - Make the iSCSI modules known to the kernel. This is easily done by typing
depmod
on the command line. (You only need to do this once) - Start the iSCSI target daemon:
/etc/init.d/iscsi-target start
- To enable autostart of the iSCSI target daemon, edit
/etc/init.d/rc3and insert/etc/init.d/iscsi-target start
right before the last line (should be "exit 0"). - To have the iSCSI target daemon shut down cleanly on a system shutdown, edit
/etc/rc6.d/S99rebootand insert/etc/init.d/iscsi-target stop
just before the line '# Save the last 5 ecounters by date.'