Maintenance Manual
Managing the System
Disk Management
Cisco Small Business NSS300 Series Smart Storage Administration Guide 137
3
About Linux Open-iSCSI Initiator
The Linux Open-iSCSI Initiator is a built-in package in Ubuntu 8.04 LTS or later. You
can connect to an iSCSI volume at a shell prompt with a few commands. For more
information about Ubuntu, see:
http://www.ubuntu.com/
To download Open-iSCSI see:
http://www.open-iscsi.org/
Before you start
Install the Open-iSCSI package. The package is also known as the Linux Open-
iSCSI Initiator.
To install the Open-iSCSI package, type the following command:
# sudo apt-get install open-iscsi
To connect to an iSCSI target (NAS) with Linux Open-iSCSI Initiator:
STEP 1 You might need to modify the iscsid.conf for CHAP logon information, such as
node.session.auth.username and node.session.auth.password. Type the following
command:
# vi /etc/iscsi/iscsid.conf
STEP 2 Save and close the file. Then restart the open-iscsi service using the following
command:
# /etc/init.d/open-iscsi restart
STEP 3 Discover the iSCSI targets on a specific host (the NAS in this example). For
example, IP address is 10.8.12.31 and a default port number 3260.
# iscsiadm -m discovery -t sendtargets -p 10.8.12.31:3260
STEP 4 Check the available iSCSI node(s) to connect.
# iscsiadm -m node
You can delete the node(s) you don’t want to connect to when the service is on
with the following command:
# iscsiadm -m node --op delete --targetname THE_TARGET_IQN
STEP 5 Restart open-iscsi to login to all the available nodes.
# /etc/init.d/open-iscsi restart