[CentOS] using CentOS as an iSCSI server?
Rudi Ahlers
rudiahlers at gmail.com
Tue Sep 8 10:02:52 UTC 2009
> However, the OP is looking for a iscsi-target...which, if I am not
> wrong, does not quite exist yet in Centos/RHEL.
> _______________________________________________
you're right, I am looking to setup an iscsi target, but I couldn't
find a working tutorial, and this is very very new to me.
The one I found is this one:
http://www.cyberciti.biz/tips/howto-setup-linux-iscsi-target-sanwith-tgt.html
Yet, I can't get it to work.
[root at localhost ~]# iscsiadm -m discovery -t sendtargets -p 192.168.0.53
iscsiadm: cannot make connection to 192.168.0.53:3260 (111)
iscsiadm: connection to discovery address 192.168.0.53 failed
iscsiadm: cannot make connection to 192.168.0.53:3260 (111)
iscsiadm: connection to discovery address 192.168.0.53 failed
iscsiadm: caught SIGINT, exiting...
[root at localhost ~]# iscsiadm -m discovery -t sendtargets -p 127.0.0.1
iscsiadm: cannot make connection to 127.0.0.1:3260 (111)
iscsiadm: connection to discovery address 127.0.0.1 failed
iscsiadm: cannot make connection to 127.0.0.1:3260 (111)
iscsiadm: connection to discovery address 127.0.0.1 failed
iscsiadm: caught SIGINT, exiting...
Restarting /etc/init.d/iscsid doesn't give me any errors, and
/var/log/messages doesn't either:
[root at localhost ~]# tail -f /var/log/messages
Sep 8 17:41:34 localhost iscsid: iSCSI daemon with pid=13986 started!
Sep 8 17:44:40 localhost kernel: Removing netfilter NETLINK layer.
Sep 8 17:49:07 localhost iscsid: iscsid shutting down.
Sep 8 17:49:07 localhost kernel: Loading iSCSI transport class v2.0-724.
Sep 8 17:49:07 localhost kernel: iscsi: registered transport (tcp)
Sep 8 17:49:07 localhost kernel: iscsi: registered transport (iser)
Sep 8 17:49:07 localhost iscsid: iSCSI logger with pid=14373 started!
Sep 8 17:49:08 localhost iscsid: transport class version 2.0-724.
iscsid version 2.0-868
Sep 8 17:49:08 localhost iscsid: iSCSI daemon with pid=14374 started!
Sep 8 17:49:13 localhost iscsid: send fail Connection refused
Sep 8 17:54:47 localhost iscsid: iscsid shutting down.
Sep 8 17:54:47 localhost kernel: Loading iSCSI transport class v2.0-724.
Sep 8 17:54:47 localhost kernel: iscsi: registered transport (tcp)
Sep 8 17:54:47 localhost kernel: iscsi: registered transport (iser)
Sep 8 17:54:47 localhost iscsid: iSCSI logger with pid=14603 started!
Sep 8 17:54:48 localhost iscsid: transport class version 2.0-724.
iscsid version 2.0-868
Sep 8 17:54:48 localhost iscsid: iSCSI daemon with pid=14604 started!
The only changes I've made is this:
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
node.session.auth.authmethod = CHAP
# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
node.session.auth.username = nas1
node.session.auth.password = password
discovery.sendtargets.auth.username = nas1
discovery.sendtargets.auth.password = password
the only errors I get is with iscsi itself:
[root at localhost ~]# /etc/init.d/iscsi start
iscsid (pid 15037 15036) is running...
Setting up iSCSI targets: iscsiadm: No records found!
[ OK ]
[root at localhost ~]#
--
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
More information about the CentOS
mailing list