[GE users] Problem detecting ARCH

Yves Kemp yves.kemp at desy.de
Fri Mar 30 15:04:05 BST 2007


Hi Javier,

maybe there is a more general solution at the XEN level:
In your 32-bit virtual machine, create a script 
/sbin/init32
with the following content:
#!/bin/sh
exec linux32 init

Then, in the xmlist file, add 
extra = "init=/sbin/init32"

Then, uname -m should give you i686 instead of x86_64, and this for all
applications. 

Best

Yves

On Fri, Mar 30, 2007 at 02:56:19PM +0200, Javier Lopez Cacheiro wrote:
> Hi,
> 
> 
> We are experiencing problems running SGE in Xen virtual machines. The
> problems are related to the way SGE detects the architecture using the
> "$SGE_ROOT/util/arch" script. It looks up the architecture of the OS
> based on the value of the uname output (i.e. based on the arch of the
> kernel in the system).
> 
> 
> In our virtual machines this is what we get:
> 
> [root at sa3-ce root]# $SGE_ROOT/util/arch
> strings: /lib64/libc.so.6: No such file or directory
> lx24-amd64
> 
> [root at sa3-ce root]# uname -a
> Linux sa3-ce.xxx 2.6.18-1.2798.fc6xen #1 SMP Mon Oct 16 14:59:01 EDT
> 2006 x86_64 x86_64 x86_64 GNU/Linux
> 
> To have a x86_64 kernel does not mean *necessarily* that you have 64 bit
> libraries installed in the system. This is for example the case in our
> virtual machines where we use a 64 bit Xen kernel but have RHEL3 32 bit
> OS installed. So the libraries in the system are 32 bit and not 64.
> 
> To overcome this problem I have modified the arch script:
> 
> [root at sa3-ce root]# diff -Naur $SGE_ROOT/util/arch $SGE_ROOT/util/arch.orig
> --- /usr/local/sge/pro/util/arch        2007-03-30 14:36:31.000000000 +0200
> +++ /usr/local/sge/pro/util/arch.0      2007-03-30 14:32:26.000000000 +0200
> @@ -163,10 +163,6 @@
>       ;;
>     x86_64)
>       lxmachine=amd64
> -     # Additional check in case we are in a x86_64 machine (JLC)
> -     if [[ ! -r /lib64/libc.so.6 && -r /lib/libc.so.6 ]]; then
> -        lxmachine=x86
> -     fi
>       ;;
>     ia64)
>       lxmachine=ia64
> 
> 
> I would like to know your opinion about this problem and if there are
> other ways to solve it.
> 
> Cheers,
> Javier
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 

--------------------------------------------
Yves Kemp
yves.kemp at desy.de            Desy IT  2b/312  
Fon: +49-(0)40-8998-2318        Notkestr. 85
Fax: +49-(0)40-8994-2318     D-22607 Hamburg
--------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list