[Linux-cluster] RE: iSCSI Setup as Alternative to Shared Storage..

P, Prakash Prakash.P at lsi.com
Thu Jul 10 10:09:06 UTC 2008


This is related to IET. Go through their mailing list to find the solution.

http://www.nabble.com/iSCSI-Enterprise-Target-f4401.html


________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Singh Raina, Ajeet
Sent: Thursday, July 10, 2008 3:30 PM
To: linux clustering
Subject: RE: [Linux-cluster] RE: iSCSI Setup as Alternative to Shared Storage..

I am Facing this Issue:

[root at vjs iscsitarget]# service iscsi-target restart
Stoping iSCSI target service:                              [FAILED]
Starting iSCSI target service: FATAL: Module iscsi_trgt not found.
netlink fd
: Connection refused
                                                           [FAILED]

Logs: /var/log/messages

Jul 10 15:25:24 vjs ietd: nl_open -1
Jul 10 15:25:24 vjs ietd: netlink fd
Jul 10 15:25:24 vjs ietd: : Connection refused
Jul 10 15:25:24 vjs iscsi-target: ietd startup failed

Any idea?

I just did the following steps:
[root at vjs ~]# mkdir cluster_share
[root at vjs ~]# cd cluster_share/
[root at vjs cluster_share]# touch shared
[root at vjs cluster_share]# cd
[root at vjs ~]# mkdir /usr/src/iscsitarget
[root at vjs ~]# cd /usr/src/
debug/       iscsitarget/ kernels/     redhat/
[root at vjs ~]# cd /usr/src/iscsitarget/
[root at vjs iscsitarget]# rpm -Uvh /usr/src/redhat/RPMS/
noarch/ x86_64/
[root at vjs iscsitarget]# rpm -Uvh /usr/src/redhat/RPMS/
noarch/ x86_64/
[root at vjs iscsitarget]# rpm -Uvh /usr/src/redhat/RPMS/x86_64/iscsitarget-
iscsitarget-0.4.12-6.x86_64.rpm                     iscsitarget-kernel-0.4.12-6_2.6.9_34.EL.x86_64.rpm
iscsitarget-debuginfo-0.4.12-6.x86_64.rpm
[root at vjs iscsitarget]# rpm -Uvh /usr/src/redhat/RPMS/x86_64/iscsitarget-0.4.12-6.x86_64.rpm /usr/src/redhat/RPMS/x86_64/iscsitarget-kernel-0.4.12-6_2.6.9_34.EL.x86_64.rpm
Preparing...                ########################################### [100%]
   1:iscsitarget-kernel     ########################################### [ 50%]
   2:iscsitarget            ########################################### [100%]
[root at vjs iscsitarget]# chkconfig --add iscsi-target
[root at vjs iscsitarget]# chkconfig --level 2345 iscsi-target on
[root at vjs iscsitarget]# vi /etc/ietd.conf



Target iqn.2008-07.com.logica.vjs:storage.lun1
        IncomingUser
        OutgoingUser
        Lun 0 Path=/root/cluster_share,Type=fileio
        Alias iDISK0

I had created a cluster_share Folder earlier.(Is it bocoz of Folder?)Doubt??
[root at vjs iscsitarget]# hostname
vjs
[root at vjs iscsitarget]# vi /etc/hosts
[root at vjs iscsitarget]# hostname
vjs
[root at vjs iscsitarget]# vi /etc/hosts
[root at vjs iscsitarget]# ping
Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline]
            [-p pattern] [-s packetsize] [-t ttl] [-I interface or address]
            [-M mtu discovery hint] [-S sndbuf]
            [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination
[root at vjs iscsitarget]# vjs
bash: vjs: command not found
[root at vjs iscsitarget]# ping vjs
PING vjs.logica.com (10.14.236.134) 56(84) bytes of data.
64 bytes from vjs.logica.com (10.14.236.134): icmp_seq=0 ttl=64 time=0.053 ms
64 bytes from vjs.logica.com (10.14.236.134): icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from vjs.logica.com (10.14.236.134): icmp_seq=2 ttl=64 time=0.029 ms

--- vjs.logica.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.029/0.038/0.053/0.011 ms, pipe 2
[root at vjs iscsitarget]# ping vjs.logica.com
PING vjs.logica.com (10.14.236.134) 56(84) bytes of data.
64 bytes from vjs.logica.com (10.14.236.134): icmp_seq=0 ttl=64 time=0.026 ms
64 bytes from vjs.logica.com (10.14.236.134): icmp_seq=1 ttl=64 time=0.030 ms

--- vjs.logica.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.026/0.028/0.030/0.002 ms, pipe 2
[root at vjs iscsitarget]# vi /etc/ietd.conf
[root at vjs iscsitarget]# service iscsi-target restart
Stoping iSCSI target service:                              [FAILED]
Starting iSCSI target service: FATAL: Module iscsi_trgt not found.
netlink fd
: Connection refused
                                                           [FAILED]
[root at vjs iscsitarget]#
[root at vjs iscsitarget]#

________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Singh Raina, Ajeet
Sent: Thursday, July 10, 2008 2:57 PM
To: linux clustering
Subject: RE: [Linux-cluster] RE: iSCSI Setup as Alternative to Shared Storage..

So I have the following Entry at my ietd.conf file:


# iscsi target configuration



Target iqn.2008-10.com.logical.pe:storage.lun1

        IncomingUser

        OutgoingUser

        Lun 0 Path=/home/vjs/sharess,Type=fileio

        Alias iDISK0

        #MaxConnections  6

Is above Entry Correct?
My machine Hostname is pe.logical.com.
Little confused about storage.lun1 whats that?
I have now not included any incoming or outgoing user?Its open for all.

What About Alias Entry?

Ok After this entry being made, I have confusion on client side too.

The Doc says You need to make Entry on /etc/iscsi.conf file as:


# simple iscsi.conf



DiscoveryAddress=172.30.0.28

            OutgoingUserName=gfs

            OutgoingPassword=secretsecret

       LoginTimeout=15

       DiscoveryAddress=172.30.0.28

What's the above entry means?IP??


As for My Setup I am setting up RHEL 4.0 machine with IP 10.14.236.134 as Target Machine and The two Nodes 10.14.236.106 and 10.14.236 108 as Already been in Cluster Nodes.

Thanks for Helping me out. But You need to also Help me What Entry in Cluster.conf I need to make after these things being completed?




________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of P, Prakash
Sent: Thursday, July 10, 2008 2:48 PM
To: linux clustering
Subject: RE: [Linux-cluster] RE: iSCSI Setup as Alternative to Shared Storage..



________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Singh Raina, Ajeet
Sent: Thursday, July 10, 2008 2:42 PM
To: linux clustering
Subject: RE: [Linux-cluster] RE: iSCSI Setup as Alternative to Shared Storage..

Shall I need to mention Lun 0 ? is it needed?

Yes, of course it's needed
________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of P, Prakash
Sent: Thursday, July 10, 2008 2:38 PM
To: linux clustering
Subject: [Linux-cluster] RE: iSCSI Setup as Alternative to Shared Storage..



________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Singh Raina, Ajeet
Sent: Thursday, July 10, 2008 2:22 PM
To: linux-cluster at redhat.com
Subject: [Linux-cluster] iSCSI Setup as Alternative to Shared Storage..

I want to setup iSCSI as I am running short of Shared Storage.
In one of the Doc http://mail.digicola.com/wiki/index.php?title=User:Martin:iSCSI it says that :
[doc]
Install the Target

1. Install RHEL4, I used kickstart with just "@ base" for packages. Configure the system with two drives sda and sdb or create two logical volumes(lvm). The first disk is for the OS and the second for the iSCSI storage
[/doc]

My Hard Disk Partition says:

[code]
[root at vjs ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        9729    78043770   8e  Linux LVM

[/code]

[code]

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
/dev/VolGroup00/LogVol02 /data                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
#/dev/dvd               /mnt/dvd                auto    defaults,exec,noauto,enaged 0 0
/dev/hda                /media/cdrom            pamconsole,exec,noauto,managed 0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

[/code]

Since I need to make entry on:


iscsi target configuration



Target iqn.2000-12.com.digicola:storage.lun1

        IncomingUser gfs secretsecret

        OutgoingUser

        Lun 0 Path=/dev/sdb,Type=fileio

        Alias iDISK0

        #MaxConnections  6



In /etc/ietd.conf



Should I need to make separate partition or mention ??? under Lun 0 path=??? Entry?



If you wish you can create a separate partition. Else create a file & give the full path of the file. [e.g path=/home/test/target_file]



Pls Help


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20080710/92ab966b/attachment.htm>


More information about the Linux-cluster mailing list