I installed open-iscsi through the cmd 'sudo apt-get install
iscsitarget' on a Ubuntu Server 10.10 box called tomato.
$ cat /etc/default/iscsitarget
ISCSITARGET_ENABLE=true
$ sudo grep -v "#" /etc/iet/ietd.conf
Target iqn.2010-12.com.org:virtual_machines.lun
IncomingUser user secret
OutgoingUser
Lun 0 Path=/dev/md1,Type=blockio
$ sudo service iscsitarget restart
* Removing iSCSI enterprise target devices:
...done.
* Stopping iSCSI enterprise target service:
...done.
* Removing iSCSI enterprise target modules:
...done.
* Starting iSCSI enterprise target service
...done.
...done.
$ sudo grep -v "#" /etc/iet/initiators.allow
ALL ALL
I also tried
Target iqn.2010-12.com.org:virtual_machines.lun 10.0.0.0/16
When I check /var/log/syslog I see this:
Dec 22 09:14:26 tomato kernel: [665615.701291] iscsi_trgt: Removing
all connections, sessions and targets
Dec 22 09:14:27 tomato kernel: [665616.736673] iSCSI Enterprise
Target Software - version 1.4.20.2
Dec 22 09:14:27 tomato kernel: [665616.736731] iscsi_trgt:
Registered io type fileio
Dec 22 09:14:27 tomato kernel: [665616.736732] iscsi_trgt:
Registered io type blockio
Dec 22 09:14:27 tomato kernel: [665616.736734] iscsi_trgt:
Registered io type nullio
$ lsmod |grep iscsi
iscsi_trgt 83237 4
$ sudo iscsiadm -m discovery localhost
localhost:3260 via sendtargets
127.0.0.1:3260 via sendtargets
Then on another machine on the same network I run this:
$ sudo iscsiadm -m discovery tomato
tomato:3260 via sendtargets
10.0.0.120:3260 via sendtargets
Why can't I find my targets?
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.