From: James Harper Subject: RE: iscsi patch Date: Tue, 24 Aug 2004 23:28:20 +1000 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <7F9C9727-03AC-48FF-963B-D8E541DA45FF@mimectl> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_410D8DC1-69C8-470C-B59B-060D15CD5FA8_" Return-path: In-Reply-To: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: Cc: Ian Pratt , "xen-devel@lists.sourceforge.net" List-Id: xen-devel@lists.xenproject.org --_410D8DC1-69C8-470C-B59B-060D15CD5FA8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i've got busybox in my initrd so right at the end i dump out to a shell. i = bring up the network with an ifconfig in my init script and can ping the ne= twork. there must be something in /dev or something somewhere that i'm missing tha= t makes these ioctls not work under the stripped down environment of initrd= . i'll try an strace and see what happens. james From: Ian Pratt Sent: Tue 24/08/2004 11:17 PM To: James Harper Cc: Ian Pratt; xen-devel@lists.sourceforge.net; Ian.Pratt@cl.cam.ac.uk Subject: Re: [Xen-devel] iscsi patch > iscsi-boot appears to try and bring up the network interface and give it = an address and route. unfortunately it says this instead (under an initrd e= nvironment): > iSCSI: error in getting interface name > : No such device > iSCSI: Error in bringing up the network interface Are you sure you're bringing up the network interface before trying to start iscsi-boot? Put an 'ifconfig eth0' in your initrd. (You need to enable CONFIG_IP_PNP if you want to set the ip address on the command line) > when I try to run iscsid under initrd it says=20 > all isc1093350010.49159 >> iscsid[97]: iSCSI session ioctl failed for , Can not allocate memory: Cannot allocate memory >=20 > any ideas? something is obviously different about initrd but i can't put = my finger on what. it's starting to drive me crazy! I'd get strace on your initrd and start both commands under strace. Are you sure you've got the scsi, sd and iscsi_sfnet modules all loaded OK? (stick cat /proc/modules in your initrd). To make life easy for myself I've often got initrd's working using bash before switching to nash to save memory. ldd will tell you what libraries you need to copy across. Ian --_410D8DC1-69C8-470C-B59B-060D15CD5FA8_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i've got busybox= in my initrd so right at the end i dump out to a shell. i bring up the net= work with an ifconfig in my init script and can ping the network.
 
there must be something in /dev = or something somewhere that i'm missing that makes these ioctls not work un= der the stripped down environment of initrd.
 
i'll try an strace and see what = happens.
 
james


From: Ian Pratt
Sent: Tue 24/= 08/2004 11:17 PM
To: James Harper
Cc: Ian Pratt; xen-de= vel@lists.sourceforge.net; Ian.Pratt@cl.cam.ac.uk
Subject: Re: [X= en-devel] iscsi patch

> iscsi-boot appears to try an=
d bring up the network interface and give it an address and route. unfortun=
ately it says this instead (under an initrd environment):
> iSCSI: error in getting interface name
> : No such device
> iSCSI: Error in bringing up the network interface

Are you sure you're bringing up the network interface before
trying to start iscsi-boot? Put an 'ifconfig eth0' in your
initrd.

(You need to enable CONFIG_IP_PNP if you want to set the ip
address on the command line)

> when I try to run iscsid under initrd it says=20
> all isc1093350010.49159 >> iscsid[97]: iSCSI session ioctl faile=
d for <snip>, Can not allocate memory: Cannot allocate memory
>=20
> any ideas? something is obviously different about initrd but i can't p=
ut my finger on what. it's starting to drive me crazy!

I'd get strace on your initrd and start both commands under
strace.

Are you sure you've got the scsi, sd and iscsi_sfnet modules all
loaded OK? (stick cat /proc/modules in your initrd).

To make life easy for myself I've often got initrd's working
using bash before switching to nash to save memory. ldd will tell
you what libraries you need to copy across.

Ian
--_410D8DC1-69C8-470C-B59B-060D15CD5FA8_-- ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285