Managing the System
Disk Management
Cisco Small Business NSS300 Series Smart Storage Administration Guide 131
3
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
You should see the login message as: Login session [iface: default, target:
iqn.2004-04.com:NAS:iSCSI.ForUbuntu.B9281B, portal: 10.8.12.31,3260] [ OK ]
STEP 6 Check the device status with dmesg.
# dmesg | tail
STEP 7 Enter the following command to create a partition. In this example, /dev/sdb is the
device name.