Hello all,
I was wondering if anyone know in a step by step how to setup Ubuntu server 64 bit 11.10 as an ISCSI host/target, I have been trying for the past couple days with no luck.
There is a great setup guide on youtube from timtanllc's channel (http://www.youtube.com/feed/UC7DMboGR-fBLzTVcy6GP_YA) for redhat, however at points redhat and Ubuntu differ greatly.
I also tried to follow these steps: (fails at step 2)
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
TBH really not sure what I am doing any help would be greatly appreciated please! Thanks in advance.
Kind regards,
Jerwal
P.S if there is any other information you need please let me know.
I was wondering if anyone know in a step by step how to setup Ubuntu server 64 bit 11.10 as an ISCSI host/target, I have been trying for the past couple days with no luck.
There is a great setup guide on youtube from timtanllc's channel (http://www.youtube.com/feed/UC7DMboGR-fBLzTVcy6GP_YA) for redhat, however at points redhat and Ubuntu differ greatly.
I also tried to follow these steps: (fails at step 2)
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
TBH really not sure what I am doing any help would be greatly appreciated please! Thanks in advance.
Kind regards,
Jerwal
P.S if there is any other information you need please let me know.