As nobody reacted, I'll try to explain in more detail what this means:

With this small patch systemconfigurator can be used for passing node
dependent parameters on the boot command line. I intend to extend this a bit
and allow simple arithmetics inside the APPEND line, a proposal is:
$(expr <HOSTID> - 400) to be replaced by the result of the evaluation of the
expression in the brackets. Maybe this is overkill, but it is more general.
An alternative could be: <HOSTID - 400> .

The rationale for this is: If I want to name my cluster client nodes
sc4node00, sc4node01, sc4node02, etc, the <HOSTID> variable will get the
values 400, 401, 402. As I learned now, kerrighed needs on the boot line
something like "node_id=0" (or 1, 2, ..., N - 1).

The additional issue with this is: the image's systemconfig.conf file is
generated by systeminstaller. So the natural place for a configurable APPEND
line is actually the configurator.html of the SIS package. And in fact this
should be possible to be done for each image differently. Adding a
configurable APPEND line to the SIS package should be easy. And in fact, as
the generation of the systemconfig.conf decides which kernel in the image will
be booted first, I'd also like to see the selection of the boot kernel there.

Now maybe you see what I see: kernel_picker is not needed any more. It can be
fully replaced by a small cooperation plan between systeminstaller (who
creates the systemconfig.conf) and systemconfigurator.

Controlling the boot kernel can well happen in the post_rpm_nochroot step for
each image.

Regards,
Erich


On Thursday 06 July 2006 19:32, [EMAIL PROTECTED] wrote:
> I committed a small patch to the systemconfigurator source tree. It is not yet
> in OSCAR. It is a modification needed for Kerrighed. Kerrighed needs
> _per_host_ IDs appended to the kernel boot parameters.
> 
> This patch leads to the replacement of the string <HOSTID> in the global
> APPEND variable of the [BOOT] block in the systemconfig.conf file.
> <HOSTID> is replaced with the concatenation of all digits in the $HOSTNAME.
> 
> So now we can define the global APPEND block inside an image's
> /etc/systemconfig/systemconfig.conf file to be
> 
>     APPEND = "nodeid=<HOSTID>"
> 
> The kernel specific append blocks are not touched!
> 
> This is of course only a small part of the way we need to go. Next step is to
> find a place where to enter and manage these global APPEND variables. The
> choices are:
>  - packages/sis/configurator.html and per image configuration options
>    (advantage: the systemconfig.conf in the image is created by
>     systeminstaller, therefore this is the natural location).
>  - packages/kernel_picker/configurator.html
>    (if set here, it will need to invoke systeminstaller lib routines).
> 
> As you can guess, I'm more for setting this variable inside the SIS package
> and let kernel_picker do what it was made for: pick a kernel. This, by the
> way, needs to be possible on a per-image basis, too.
> 
> Regards,
> Erich



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to