Re: iscsi root on Ubuntu

2008-05-05 Thread Konrad Rzeszutek

On Fri, May 02, 2008 at 11:48:16PM +0200, Tomasz Chmielewski wrote:
 
 aspasia schrieb:
  
  
  On May 2, 7:14 am, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
  aspasia schrieb:
 
 
  iSCSI initiators and dynamic IP address are two things which don't like
  each other very much.
 
  It will work if you add a dhclient to your initrd, but with any IP
  address change you'll run into problems.
 
  
  that's true ... although, in my pilot I have followed your script and
  statically assigned an IP address ...
  i finally got it to a point where it successfully chroot'ed and
  started the /sbin/init ...
  
  however, at some point it loses its connection ... at some point:

You need to start the iscsi service _after_ you have pivoted in your
bootable system. That means you need to run first 'iscsistart' from
your initrd (which you do I believe), and then when you pivot in-to your
booted environment, run the iscsi service to start up the iSCSI 
daemon. It is imperative to have the iSCSI daemon run as it handles
the management components of the iSCSI connection.

Thought a lot of this (for example the nop-out sending code) has
moved up to the kernel in 2.0-869 release. Are you using this recent release?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsi root on Ubuntu

2008-05-02 Thread Tomasz Chmielewski

aspasia schrieb:
 
 On Apr 29, 1:10 pm, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 aspasia schrieb:

 If you're referring 
 tohttp://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI, rootfs is
 currently hardcoded.

 
 thanks ... yeah .. i remember your paper ... i am almost getting
 there ...
 
 only thing i have to figure out is the ifconfig portion - your init
 script defines a static IP address, whereas in my environment I use
 DHCP ... I'll have to post in Ubuntu Forums 

iSCSI initiators and dynamic IP address are two things which don't like 
each other very much.

It will work if you add a dhclient to your initrd, but with any IP 
address change you'll run into problems.



-- 
Tomasz Chmielewski
http://wpkg.org



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsi root on Ubuntu

2008-05-02 Thread aspasia



On May 2, 7:14 am, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 aspasia schrieb:


 iSCSI initiators and dynamic IP address are two things which don't like
 each other very much.

 It will work if you add a dhclient to your initrd, but with any IP
 address change you'll run into problems.


that's true ... although, in my pilot I have followed your script and
statically assigned an IP address ...
i finally got it to a point where it successfully chroot'ed and
started the /sbin/init ...

however, at some point it loses its connection ... at some point:

1.  I got an EXT3 fs corruption error; but when I try to mount that
device from another host, the FS is good.
2.  I thereafter disabled the dhcp daemon (by just deleted the S-
links in the rc scripts.. and those FS corrupt errors disappeared ...
3.  But still would somehow lose connection 

The golden image server was installed and configured to DHCP;  I
checked the /etc/network/interfaces and its values were:
auto lo
iface lo inet loopback

I tried to change it manually and assign it a static address entry:
auto eth0
iface eth0 inet static
address 192.168.17.27
gateway 192.168.16.1
netmask 255.255.240.0
broadcast 192.168.31.255

Now that I boot it, I'm still somehow hanging ...

My question to you; when you prepared your root image, how was your
server's networking configured, I am assuming static IP?  I'm
wondering if I should go back to my golden build server and simply re-
configure the build to assign a static IP address and then recopy the /
etc/directory into the iscsi root image?

Any thoughts?

thanks in advance.

- a.




 --
 Tomasz Chmielewskihttp://wpkg.org
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsi root on Ubuntu

2008-05-02 Thread Tomasz Chmielewski

aspasia schrieb:
 
 
 On May 2, 7:14 am, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 aspasia schrieb:


 iSCSI initiators and dynamic IP address are two things which don't like
 each other very much.

 It will work if you add a dhclient to your initrd, but with any IP
 address change you'll run into problems.

 
 that's true ... although, in my pilot I have followed your script and
 statically assigned an IP address ...
 i finally got it to a point where it successfully chroot'ed and
 started the /sbin/init ...
 
 however, at some point it loses its connection ... at some point:
 
 1.  I got an EXT3 fs corruption error; but when I try to mount that
 device from another host, the FS is good.
 2.  I thereafter disabled the dhcp daemon (by just deleted the S-
 links in the rc scripts.. and those FS corrupt errors disappeared ...
 3.  But still would somehow lose connection 
 
 The golden image server was installed and configured to DHCP;  I
 checked the /etc/network/interfaces and its values were:
 auto lo
 iface lo inet loopback
 
 I tried to change it manually and assign it a static address entry:
 auto eth0
 iface eth0 inet static
 address 192.168.17.27
 gateway 192.168.16.1
 netmask 255.255.240.0
 broadcast 192.168.31.255
 
 Now that I boot it, I'm still somehow hanging ...

Is the IP the same as assigned in the PXE/tftp stage?

Can you ping when it's hanged?


 My question to you; when you prepared your root image, how was your
 server's networking configured, I am assuming static IP?

You mean iSCSI initiator's? Yeah, IP assigned is the same in the 
PXE/tftp stage as it is in the network configuration part.

For your information, it works correctly also on Debian here, which 
should be similar enough to Ubuntu.


 I'm
 wondering if I should go back to my golden build server and simply re-
 configure the build to assign a static IP address and then recopy the /
 etc/directory into the iscsi root image?

I don't think I understand correctly what you mean here.



-- 
Tomasz Chmielewski
http://wpkg.org

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsi root on Ubuntu

2008-04-29 Thread aspasia

Thanks so much for the response and reference guide to the links!

I'll check it out now ...

- A.

On Apr 28, 11:34 pm, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 orzeh schrieb:

  hello to you and group!
  did you read this wiki:

 (...)

 Or this one - to be used with any distro:

 http://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI

 --
 Tomasz Chmielewski
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsi root on Ubuntu

2008-04-29 Thread aspasia

Based on both links and guide, seems like I am not clear with the
following:

1.  What and how should I edit the /etc/fstab of the root image?  In
other distros I would either configure it as:  /dev/root or
LABEL=root ... in this particular case, how did you change your /etc/
fstab?

2.  Where do you pass on the root FS argument?  the Etherboot article
suggests to include the root-path option in dhcpd.conf (for those like
me using PXE to network boot):

option root-path iscsi:192.168.23.2iqn.
2007-10.org.appliedgenomics:test.disk1

My question - should I also send a kernel parameter to define what is
the root path?

If you have configured iscsi on Ubuntu for PXE booting, pls advise.

Currently, my test box is stuck during boot up - it PXE boots, runs
the initrd it picks up from tftpboot, but it is stuck and hangs
initializing all the physical drives (/dev/sda-sdd) ... so something
is telling me perhaps there is something wrong with my iscsi
configuration.

thanks in advance.

- aspasia.

On Apr 28, 11:34 pm, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 orzeh schrieb:

  hello to you and group!
  did you read this wiki:

 (...)

 Or this one - to be used with any distro:

 http://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI

 --
 Tomasz Chmielewski
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsi root on Ubuntu

2008-04-29 Thread Tomasz Chmielewski

aspasia schrieb:
 Based on both links and guide, seems like I am not clear with the
 following:
 
 1.  What and how should I edit the /etc/fstab of the root image?  In
 other distros I would either configure it as:  /dev/root or
 LABEL=root ... in this particular case, how did you change your /etc/
 fstab?

Use it as you like and how your target is partitioned?


 2.  Where do you pass on the root FS argument?  the Etherboot article
 suggests to include the root-path option in dhcpd.conf (for those like
 me using PXE to network boot):
 
 option root-path iscsi:192.168.23.2iqn.
 2007-10.org.appliedgenomics:test.disk1

If you're referring to 
http://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI, rootfs is 
currently hardcoded.

If you know some scripting you can change it trivially, though - just 
look at the example init script to see how different values are 
fetched from /proc/cmdline (and passed upon PXE boot).



-- 
Tomasz Chmielewski

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---