Maintenance Manual
Managing the System
Disk Management
Cisco Small Business NSS300 Series Smart Storage Administration Guide 138
3
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.
# fdisk /dev/sdb
STEP 8 Format the partition using the following command:
# mkfs.ext3 /dev/sdb1
STEP 9 Mount the file system using these two commands:
# mkdir /mnt/iscsi
# mount /dev/sdb1 /mnt/iscsi/
STEP 10 You can test the I/O speed using the following command:
# hdparm -tT /dev/sdb1
STEP 11 Below are some “iscsiadm” related commands:
Discover the targets on the host:
# iscsiadm -m discovery --type sendtargets --portal HOST_IP
Login to a target:
# iscsiadm –m node --targetname THE_TARGET_IQN --login
Logout a target:
# iscsiadm –m node --targetname THE_TARGET_IQN --logout
Delete a target:
# iscsiadm –m node --op delete --targetname THE_TARGET_IQN