I came across this thread while searching for the error I am facing with iscsitarget and open-iscsi. I am working on a project where i am experimenting on a hadoop cluster. I have a fuse-dfs filesystem newhdfs which is mounted at /media/ myDrive. and i have created a storage directory holding a lun image inside this newhdfs.
I get the same error that is mentioned in one of the posts on this thread. On the target I get: $/etc/init.d/iscsitarget restart $dmesg iscsi_trgt: fileio_attach(283) -5 iscsi_trgt: Registered io type fileio iscsi_trgt: Registered io type blockio iscsi_trgt: Registered io type nullio iscsi_trgt: open_path(119) Can't open /media/myDrive/newhdfs/storage/ lun3_2.img -5 where i created the lun image using the following command: $mkdir /media/myDrive/newhdfs/storage $cd /media/myDrive/newhdfs/storage $dd if=/dev/zero of=/media/myDrive/newhdfs/storage/lun3_2.img bs=1024k count=2000 now, when i run open-iscsi on the initiator, this is what i see: $/etc/init.d/open-iscsi restart $cat /var/log/messages aasthainitiator-desktop kernel: connection12:0: detected conn error(1020) aasthainitiator-desktop kernel: iscsi: registered transport (iser) $fdisk -l $cat /var/log/messages aasthainitiator-desktop kernel: session recovery timed out after 120 secs aasthainitiator-desktop kernel: sd 82:0:0:0: [sdd] Unhandled error code aasthainitiator-desktop kernel: sd 82:0:0:0: Result: hostbyte=DID_TRANSPORT_FAILFAST driverbyte=DRIVER_OK aasthainitiator-desktop kernel: sd 82:0:0:0: CDB: Read(10): 28 00 00 00 00 00 00 00 08 00 $dmesg Buffer I/O error on device sdd, logical block 0 sd 80:0:0:0: [sdd] Unhandled error code sd 80:0:0:0: [sdd] Result: hostbyte=DID_TRANSPORT_FAILFAST driverbyte=DRIVER_OK sd 80:0:0:0: [sdd] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00 end_request: I/O error, dev sdd, sector 0 i tried some of the commands suggested on the thread like pvscan, lvscan, vgchange -a ly. But i get only errors on running each of them. I see, "no matching physical volumes found" on running pvscan. I see, "iscsi-target: unrecongnized service" on running service iscsi- target stop/start. On doing $netstat -pnt I see: Proto Recv-Q Send-Q Local Address Foreign Address state PID/Program name tcp 0 0 10.72.147.218:54299 10.72.147.219:3260 TIME_WAIT - Can someone help with this matter? If this is not the write place to discuss, do please guide me to an appropriate mailing list. Thanks in advance. Regards, Aastha. On May 4 2009, 1:44 pm, "Ulrich Windl" <ulrich.wi...@rz.uni- regensburg.de> wrote: > On 30 Apr 2009 at 14:43, 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 > > > Please help!!!! > > openSUSE may have a race condition when creating newly discovered disk, etc. > Try > an "ll /dev/mapper" to see whether your logical volumes appear. It's not open- > isscsi at all, but you may want to try to deactivate/reactivate your volume > group: > vgchange -a n /dev/vgX; vgchange -a y /dev/vgX > > Regards, > Ulrich -- 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?hl=en.