Re: iscsiadm: No records found! debian lenny

2009-06-21 Thread Mike Christie

On 06/20/2009 09:13 AM, Stefan wrote:
 Am Samstag 20 Juni 2009 12:53:45 schrieb Stefan:

 okay, have it: I copied the configs from another machine and did a iscsi
 restart doing discover:
 iscsiadm  -m discovery -t st -p 10.100.100.30
 10.100.100.30:3260,1 iqn.2006-01.com.openfiler:tsn.e1ed9b1eb42c
 10.100.100.30:3260,1 iqn.from10-100-100-4.com.openfiler:tsn.1391acfee1c6
 10.100.100.30:3260,1 iqn.fromlenny.com.openfiler:tsn.7480be2c6f3f

 dont know, what was wrong with the old config

 but nothing is mounted and I can not find a log entry . How can I mount the
 scsi device now? fdisk -l shows no such scsi device.


After you do discovery, then you can login to the target to find disks. 
When you do

iscsiadm -m node ... -l
or
iscsiadm -m node -L all/manual/automatic
or
service iscsi start

then iscsid will login into those targets you found when you did 
discovery. iscsid will also then have the scsi layer do a scsi scan and 
search for disks. If it finds them then you can mount and use them like 
a local disk. If you are not seeing any disks then you probably have not 
set something up right in openfiler.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: no disk after connect debian lenny ubuntu

2009-06-21 Thread Mike Christie

On 06/21/2009 05:39 AM, Stefan wrote:
 Hello all,

 I have a openfiler san and want to connect from debian lenny and ubuntu jaunty
 server. I have succesfull connect but dont get a disk. fdisk -l dont show the
 disk. Also I had a look to dmesg and messages but nothing to find. How can I
 get the disk ? Where to look? Afaik it should be there after doing iscsi
 restart but it isnt.


If you do

iscsiadm -m session -P 3

you should see the sessions to the targets, and if there were disks 
found you should see what disks are accessed through what 
targets/sesions. If you only see sessions/target and no disks then I 
think you have to do some config on openfiler to make the disks 
accessable through specific targets/sessions.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: no disk after connect debian lenny ubuntu

2009-06-21 Thread Stefan

Am Sonntag 21 Juni 2009 18:24:49 schrieb Mike Christie:


 If you do

 iscsiadm -m session -P 3

iscsiadm -m session -P 3
iSCSI Transport Class version 1.1-646
iscsiadm version 2.0-870
iscsiadm: could not read session targetname: 61
iscsiadm: could not find session info for session0
iscsiadm: Can not get list of active sessions (61)

What does that mean? Its on lenny


on ubuntu 9.04 server I get::

iscsiadm -m session -P 3
iSCSI Transport Class version 2.0-870   
iscsiadm version 2.0-870
Target: iqn.2006-01.com.openfiler:tsn.e1ed9b1eb42c
Current Portal: 10.100.100.30:3260,1  
Persistent Portal: 10.100.100.30:3260,1   
**
Interface:
**
Iface Name: default   
Iface Transport: tcp  
Iface Initiatorname: iqn.1993-08.org.debian:01:58409fc50e
Iface IPaddress: 10.100.100.10   
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: 131072 
FirstBurstLength: 262144 
MaxBurstLength: 262144   
ImmediateData: No
InitialR2T: Yes
MaxOutstandingR2T: 1

Attached SCSI devices:

Host Number: 5  State: running
r...@monster:~# iSCSI Transport Class version 1.1-646
bash: iSCSI: command not found
r...@monster:~# iscsiadm version 2.0-870
iscsiadm -m discovery [ -hV ] [ -d debug_level ] [-P printlevel] [ -t type -p 
ip:port -I ifaceN ... [ -l ] ] | [ -p ip:port ] [ -o operation ] [ -n name ] [ 
-v value ]
iscsiadm -m node [ -hV ] [ -d debug_level ] [ -P printlevel ] [ -L 
all,manual,automatic ] [ -U all,manual,automatic ] [ -S ] [ [ -T targetname -p 
ip:port -I ifaceN ] [ -l | -u | -R | -s] ] [ [ -o  operation  ] [ -n name ] [ 
-v value ] ]
iscsiadm -m session [ -hV ] [ -d debug_level ] [ -P  printlevel] [ -r 
sessionid | sysfsdir [-R | -u | -s ] [ -o operation ] [ -n name ] [ -v value ] 
]
iscsiadm -m iface [ -hV ] [ -d debug_level ] [ -P printlevel ] [ -I ifacename 
] [ [ -o  operation  ] [ -n name ] [ -v value ] ]
iscsiadm -m fw [ -l ]
iscsiadm -k priority
r...@monster:~# iscsiadm: could not read session targetname: 61
bash: iscsiadm:: command not found
r...@monster:~# iscsiadm: could not find session info for session0
bash: iscsiadm:: command not found
r...@monster:~# iscsiadm: Can not get list of active sessions (61)
bash: syntax error near unexpected token `('
r...@monster:~#


What to do?

Itia
stefan

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: no disk after connect debian lenny ubuntu

2009-06-21 Thread Stefan

Am Sonntag 21 Juni 2009 19:03:35 schrieb Mike Christie:

  What does that mean? Its on lenny

 You need to update your iscsi tools or move to a older kernel.

Do you know which kernel I have to use?


 The kernel sysfs layout changed on us. Older tools assumed some dirs or
 symlinks would be there. They got moved or deleted and so the error
 messages above are from that.

okay., how to use a new kernel? Is that possible?

tia
stefan


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problem found when Opening links

2009-06-21 Thread see

Problem found when Opening links

Problem found when Opening links

http://bpoindustries.blogspot.com
http://bpoindustries.blogspot.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



compile the latest version debian ubuntu

2009-06-21 Thread Stefan

Hello all :)

I want to compile the latest version and have no luck with that on debian 
lenny and ubuntu jaunty. Doing make install gives:


...
sr/transport.h:37: error: field 'list' has incomplete type
usr/transport.h:41: error: field 'sessions' has incomplete type
In file included from usr/iscsi_sysfs.h:22,
 from usr/iscsid.c:43:
usr/sysfs.h:33: error: field 'node' has incomplete type
In file included from usr/iscsid.c:45:
usr/session_info.h:13: error: field 'list' has incomplete type
usr/iscsid.c:46:21: error: sysdeps.h: No such file or directory
usr/iscsid.c: In function 'sync_session':
usr/iscsid.c:198: error: 'CAP_FW_DB' undeclared (first use in this function)
usr/iscsid.c:198: error: (Each undeclared identifier is reported only once
usr/iscsid.c:198: error: for each function it appears in.)
make: *** [usr/iscsid] Error 1


Kernel
Linux monster 2.6.28-13-server #44-Ubuntu SMP Tue Jun 2 08:40:28 UTC 2009 
x86_64 GNU/Linux


What Im doing wrong? The readmes seems to be outdated. 
Is there anywhere an actually readme/ howto for compiling it?

Can someone help?

tia
stefan

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---