@mike:
When you run service iscsi-target start to start IET, do you see any
errors in /var/log/messages?
Yes.
May  1 09:57:55 sunny2 kernel: iSCSI Enterprise Target Software - version 0.4.16
May  1 09:57:55 sunny2 kernel: iscsi_trgt: Registered io type fileio
May  1 09:57:55 sunny2 kernel: iscsi_trgt: Registered io type blockio
May  1 09:57:55 sunny2 kernel: iscsi_trgt: Registered io type nullio
May  1 09:57:55 sunny2 kernel: iscsi_trgt: open_path(119) Can't open
/dev/vg/ocfs -2
May  1 09:57:55 sunny2 kernel: iscsi_trgt: fileio_attach(283) -2
May  1 09:57:55 sunny2 ietd: Can't create a logical unit 2 1 0
Path=/dev/vg/ocfs,Type=fileio

cd /home/sunny/Desktop
dd if=/dev/zero of=test bs=1G count=1

opened ietd.conf and did

Target iqn.2009-09.com.ezhome:ocfs
       Lun 0 Path=/home/sunny/Desktop/test,Type=fileio


service iscsi-target stop
service iscsi-target start

May  1 10:15:37 sunny2 kernel: iSCSI Enterprise Target Software - version 0.4.16
May  1 10:15:37 sunny2 kernel: iscsi_trgt: Registered io type fileio
May  1 10:15:37 sunny2 kernel: iscsi_trgt: Registered io type blockio
May  1 10:15:37 sunny2 kernel: iscsi_trgt: Registered io type nullio

iscsiadm -m session -P 3

iSCSI Transport Class version 2.0-870
iscsiadm version 2.0-870
Target: iqn.2009-09.com.ezhome:ocfs
        Current Portal: 10.1.1.1:3260,1
        Persistent Portal: 10.1.1.1:3260,1
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname: iqn.1996-04.de.suse:01:79a5ecb15528
                Iface IPaddress: 10.1.1.2
                Iface HWaddress: default
                Iface Netdev: default
                SID: 1
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: LOGGED_IN
                Internal iscsid Session State: NO CHANGE
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 131072
                MaxXmitDataSegmentLength: 8192
                FirstBurstLength: 65536
                MaxBurstLength: 262144
                ImmediateData: Yes
                InitialR2T: Yes
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 2  State: running

But there are no messages in /var/log/messages about new disk getting added.

I even tried

sunny1:~ # iscsiadm -m node -T iqn.2009-09.com.ezhome:ocfs -p 10.1.1.1 -l
Logging in to [iface: default, target: iqn.2009-09.com.ezhome:ocfs,
portal: 10.1.1.1,3260]
iscsiadm: Could not login to [iface: default, target:
iqn.2009-09.com.ezhome:ocfs, portal: 10.1.1.1,3260]:
iscsiadm: initiator reported error (15 - already exists)
sunny1:~ #

/var/log/messages -> May  1 10:21:11 sunny1 iscsid: session
[iqn.2009-09.com.ezhome:ocfs,10.1.1.1,3260] already running.

Help pls!!!!!

On Thu, Apr 30, 2009 at 3:38 PM, Mike Christie <micha...@cs.wisc.edu> wrote:
>
> Mike Christie wrote:
>> sundar mahadevan wrote:
>>> As i said before, there is no real file for /dev/vg/ocfs
>>> but
>>> lvdisplay shows /dev/vg/ocfs as my logical volume
>>> and
>>> ls -ail /dev/vg/ocfs
>>> 35413 lrwxrwxrwx 1 root root 19 Apr 30 14:33 /dev/vg/ocfs -> 
>>> /dev/mapper/vg-ocfs
>>>
>>> Now i'm really confused.
>>> Mike: As i said before there are only 2 uncommented lines in /etc/ietd.conf
>>>
>>> Target iqn.2009-09.com.ezhome:ocfs
>>>         Lun 0 Path=/dev/vg/ocfs,Type=fileio
>>
>> When you run service iscsi-target start to start IET, do you see any
>> errors in /var/log/messages?
>>
>
> You might just want to try something simple first.
>
> - dd if=/dev/zero of=file bs=1G count=1
> - open ietd.conf and do
>
> Target iqn.2009-09.com.ezhome:ocfs
>        Lun 0 Path=/where_you_put_file/file,Type=fileio
>
>
> service iscsi-target stop
> service iscsi-target start
>
> then on the initiator try to login. Do you see a disk getting added in
> /var/log/messages. if you do iscsiadm -m session -P 3 do you see your disk?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to