Configuring iSCSI Volume in Ubuntu/Linux
The other day i got Dell EqualLogic PS6000 Series SAN box to experiment on.
For windows it was pretty straight forward using the iSCSI tool present in administrative tools.
I wanted to try it on Linux so i searched a bit and at last formatted & mounted it on Ubuntu. Here are the steps that i followed.
Follow the steps to configure iSCSI volume on ubuntu (i tried on 11.10):
For windows it was pretty straight forward using the iSCSI tool present in administrative tools.
I wanted to try it on Linux so i searched a bit and at last formatted & mounted it on Ubuntu. Here are the steps that i followed.
Follow the steps to configure iSCSI volume on ubuntu (i tried on 11.10):
1) You need to install open-iscsi package :
#sudo apt-get install open-iscsi
2) Now you need to run discovery agains t the iscsi host:
# iscsiadm -m discovery -t sendtargets -p <iscsi server ip address>
eg: If 192.168.11.110 is the ip address of iscsi server
# iscsiadm -m discovery -t sendtargets -p 192.168.1.110
OR
# iscsiadm --mode discovery --type sendtargets --portal 192.168.11.110
3) Note down the record id (such as iqn.xxxxxxxxxxxxx:test) found by the discovery. You need the
same for login. Login, must use a node record id found by the discovery:
# iscsiadm --mode node --targetname iqn.xxxxxxxxxxxxx:test --portal 192.168.11.110:3260 --login
4) Restart the service:
# /etc/init.d/open-iscsi restart
5) Now you should see an additional drive on the system such as /dev/sdd. Use /var/log/messages or
/var/log/syslog file to find out device name: (in my case /var/log/syslog):
# tail -f /var/log/syslog
6) If your device name is /dev/sdd, enter the following command to create a partition:
# fdisk /dev/sdd
Use the help in the fdisk menu to create a new partition.
7) format the partition:
# mkfs.ext3 /dev/sdd1
8) Mount the file system:
# mkdir iscsi
# mount /dev/sdd /iscsi
Comments
Post a Comment