Andrea,

This is the result of the Strings command:
"/usr/bin/strings /boot/vmlinuz-2.6.18-8.el5xen | grep '2.6'"
BTW if I used "2\.6", it would not display any output
--------------
2\6>
O_2d6
vs2B6M
wO2B6#
H2\6
(K(*HZ2 6#
d2L6}
<?2&6+
x2=6
--------------

And this is the result of when I ran the si_prepareclient command
using the --kernel option and I got the following messages:
"/usr/sbin/si_prepareclient --server 10.100.1.170 --kernel 
/boot/vmlinuz-2.6.18-8.el5xen"
------------------------------------------------------------------------- 

Using "sfdisk" to gather information about disk:
    /dev/sda

>>> Choosing filesystem for new initrd:  cpio
>>> Creating new initrd from staging dir:  /tmp/.systemimager.10
 >> cd /tmp/.systemimager.10 && find . ! -name "*~" | cpio -H newc --create | 
 >> gzip -9 > /etc/systemimager/boot/initrd.img
26251 blocks
 >> ls -l /etc/systemimager/boot/initrd.img
-rw-r--r-- 1 root root 5369704 Nov  1 07:56 /etc/systemimager/boot/initrd.img

>> Evaluating initrd size to be added in the kernel boot options
>> (e.g. /etc/systemimager/pxelinux.cfg/syslinux.cfg):
 >>     suggested value -> ramdisk_size=23365.5

>>> Using kernel from:          /boot/vmlinuz-2.6.18-8.el5xen
 >> ls -l /etc/systemimager/boot/kernel
-rw-r--r-- 1 root root 2076303 Nov  1 07:56 /etc/systemimager/boot/kernel 

Starting or re-starting rsync as a daemon.....
done!

This client is ready to have its image retrieved.  You must now run
the "si_getimage" command on your imageserver.

Your client has been successfully prepared.  Boot kernel (copied from 
this Linux distribution) and an initrd.img (generated by the
initrd_template package) can be found in /etc/systemimager/boot.

Automatically create configuration file for systemconfigurator:
  >> /etc/systemconfig/systemconfig.conf 
WARNING: unable to auto-detect kernel file!
WARNING: coulnd't create file /etc/systemconfig/systemconfig.conf (needed by 
systemconfigurator)
-------------------------------------------------------------------------------------------------------------
 



Thanks,

Néstor :-)


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrea
Righi
Sent: Thursday, November 01, 2007 4:36 AM
To: [email protected]
Subject: Re: [sisuite-users] si_prepareclient - error


Florez, Nestor wrote:
> I forgot to mentioned that my os is RHEL 5 and I try the
> si_prepareclient command with
> systemimager version 3.8.2-1  and currently with version 3.9.6-1 and
> have had the same problem.
>  
> :-)
> 
>     -----Original Message-----
> 
>     When I run si_prepareclient --server myserver
>     I get the error
>      "I could not identified you kernel file.  Please try use --kernel
>     option"
> 
>     When I run the command 'uname -r',  I get "2.6.18-8.elxen"
> 
>     I am trying to clone or duplicate my main server to my failover server.
> 
>     Any ideas?
> 
>     Thanks,
> 
>     Néstor :-)

Could you check if the following patch fixes your problem? I got a
similar error running si_prepareclient on a PS3 with Ubuntu 7.10.

Moreover, could you post the output of the following command:

$ strings /boot/vmlinuz | grep "2\.6"

Replacing /boot/vmlinuz with the correct file of the kernel you're
using.

-Andrea

Index: lib/SystemImager/UseYourOwnKernel.pm
===================================================================
--- lib/SystemImager/UseYourOwnKernel.pm        (revision 4321)
+++ lib/SystemImager/UseYourOwnKernel.pm        (working copy)
@@ -446,7 +446,7 @@
                 #       2.4.19-mantis-2002.11.20 ([EMAIL PROTECTED]) #6 Tue 
Nov 19 15:15:43 CST 2002
                 #       2.6.7-1-686 ([EMAIL PROTECTED]) #1 Thu Jul 8 05:36:53 
EDT 2004
                 #
-                my $regex = '(2\.[46]\.\d.*?) \([EMAIL PROTECTED]) 
[#]\d+.*\w{3} \w{3} \d{1,2} \d{2}:\d{2}:\d{2} \w{3,4} \d{4}';
+                my $regex = '(2\.[46]\.\d[^\/]*?) \([EMAIL PROTECTED]) 
[#]\d+.*\w{3} \w{3} \d{1,2} \d{2}:\d{2}:\d{2} \w{3,4} \d{4}';
                 while(<IN>) {
                        # extract the `uname -r` string from the kernel file
                        if(m/$regex/o) {
@@ -485,6 +485,9 @@
         #
         # skip symlinks
         if( -l $file )   { return undef; }
+        #
+        # skip .bak files
+        if( $file =~ /\.bak$/ )   { return undef; }
 
         # Get output from "file" for elimination by identification tests
         my $cmd = "file -zb $file";

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to