Professional Documents
Culture Documents
Refer to the below images to input the required information to create the iSCSI target.
This is an optional step to enable authentication. Using authentication is strongly recommended if the
Turbo NAS uses a public or open network.
Choose to create an image file on a volume or to allocate space from a storage pool for the iSCSI LUN.
The former offers greater flexibility and dynamic allocation, and the latter provides better performance.
*Allocating the disk space ensures that an iSCSI Target has enough disk space as specified. However, the disk
will take longer to create (depending on its given size) and there must be enough space on the physical disk.
Upon successfully creating the iSCSI target, it will be listed on the "iSCSI Target" page with "Ready"
status.
To connect to the iSCSI target we've just created the tab representing the operating system you are using.
The available iSCSI targets and their status will then be shown under the "Targets" tab. Select the target
you wish to connect to and click "Connect ".
You can click "Advanced" to specify extra connection settings (including authentication) otherwise click
"OK" to continue.
After the target has been connected Windows will detect its presence and treat it as if a new hard drive
has been added which needs to be initialized and formatted before use. Right-click on "My Computer" >
"Manage" to open the "Computer Management" window. Go to "Disk Management" and a window should
pop-up asking whether you want to initialize the newly-found hard drive. Click "OK" then format this drive
as normally you would when adding a new disk.
After disk initialization & formatting, the new drive will be attached to your PC. You can now use this iSCSI
target as a regular disk partition.
Click "+" and enter the Turbo NAS IP to add a new portal.
The available iSCSI targets will be displayed in "Targets". Check "Connected" on the iSCSI Target you
want to connect to.
The first-time you connect to the iSCSI Target, a message will appear to remind you that the disk is not
initialized. Click "Initialize" to format the disk. You can also open the 'Disk Utilities' application to
initialize the disk.
You can now use the iSCSI target as an external drive on your Mac
In the "Discover Targets" tab, you can either choose to "Discover by DNS/IP" or "Discover by iSNS"
according to the network topology. In this example, we will use the IP address to discover the iSCSI
targets.
Follow the instructions and enter the server address, iSCSI target port number (default: 3260), and CHAP
information (if applicable). Once entered, click "Finish" to retrieve the target.
The available iSCSI targets on the Turbo NAS will be displayed. Select the target you want to connect to
and click "Add".
You can configure the selected iSCSI target's connection properties in the "Setup" tab.
Click the "Status" tab, select the target to connect to and click "Login" to proceed.
Now follow the below steps to connect to an iSCSI target (Turbo NAS) with the Linux Open-iSCSI
Initiator.
You may need to modify the iscsid.conf for CHAP information (node.session.auth.username &
node.session.auth.password).
# vi /etc/iscsi/iscsid.conf
Save and close the file, then restart the open-iscsi service.
# /etc/init.d/open-iscsi restart
Discover the iSCSI targets on a specific host, e.g. 10.8.12.31 with default port 3260.
# iscsiadm -m discovery -t sendtargets -p 10.8.12.31:3260
** You can delete node(s) you dont want to connect to when the service is on with the following
command:
# iscsiadm -m node --op delete --targetname THE_TARGET_IQN
You should be able to see the login message as below: Login session [iface: default, target: iqn.200404.com:NAS:iSCSI.ForUbuntu.B9281B, portal: 10.8.12.31,3260] [ OK ]
Check the device status with dmesg.
# dmesg | tail
Enter the following command to create a partition, /dev/sdb is the device name.
# fdisk /dev/sdb
Thats it! You can test the I/O speed using the following command:
# hdparm -tT /dev/sdb1
Login to a Target:
# iscsiadm m node --targetname THE_TARGET_IQN --login
Delete a Target:
# iscsiadm m node --op delete --targetname THE_TARGET_IQN