[root@¸ðµç¼­¹öµé]# mkdir /usr/N1

 

[root@¸ðµç¼­¹öµé]# cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1               localhost.localdomain localhost

10.10.10.138            file001

10.10.10.139            file002

10.10.10.11             server

10.10.10.50             spoolserver

 

[root@file001 ~]# uname -n

file001

 

[root@file002 ~]# uname -n

file002

 

[root@server ~]# uname -n

server

 

[root@spoolserver ~]# uname -n

spoolserver

 

[root@¸ðµç¼­¹öµé]# cd /usr/N1/

[root@¸ðµç ¼­¹öµé]# vi /etc/services

#SGE

sge_qmaster     536/tcp

sge_execd       537/tcp

 

[root@file002 N1]# useradd -d /usr/N1 sgeadmin

[root@file002 N1]# chown -R sgeadmin.sgeadmin /usr/N1

 

[root@file002 n1ge6_0u8]# export SGE_ROOT=/usr/N1

[root@file002 n1ge6_0u8]# export SGE_CELL=hoho

Cells

You can set up the grid engine system as a single cluster or as a collection of loosely

coupled clusters called cells. The SGE_CELL environment variable indicates the cluster

being referenced. When the grid engine system is installed as a single cluster,

$SGE_CELL is not set, and the value default is assumed for the cell value.

 

[root@file002 root]# cd $SGE_ROOT

 

½ÇÇà ¼­¹ö¿¡ ½ÇÇà µ¥¸óÀ» ¼³Ä¡Çϱâ À§Çؼ­´Â ¸ÕÀú qmaster °¡ ¼³Ä¡µÇ¾î ÀÖ¾î¾ßÇÑ´Ù.

server È£½ºÆ®¿¡ ÀÖ´Â ÆÄÀϵéÀ» º¹»çÇØ¿À°Å³ª NFS ·Î °øÀ¯Çؼ­ ¼³Ä¡ÇÏ¸é µÈ´Ù.

±×·¯³ª NFS °øÀ¯ÇÏ°Ô µÇ¸é server È£½ºÆ®ÀÇ ½ºÇ®µð·ºÅ丮 °øÀ¯·Î ÀÎÇÑ ³×Æ®¿÷ ºÎÇÏ ¹× ÀÏ¹Ý ³×Æ®¿÷ ºÎÇÏ·Î È¿À²ÀÌ ¶³¾îÁø´Ü´Ù.

±×·¡¼­ ÀÌÀü¿¡ ¸¶½ºÅÍ ¼­¹ö ¼³Á¤ÇÑ °÷¿¡¼­ scp ·Î º¹»çÇØ¿Â´Ù.

 

[root@server N1]# scp -r /usr/N1 file002:/usr

[root@server N1]# scp -r /usr/N1 file001:/usr

 

[root@file001 usr]# chown -R sgeadmin.sgeadmin /usr/N1

[root@file002 usr]# chown -R sgeadmin.sgeadmin /usr/N1

 

º¹»ç·Î ÀÎÇØ qmaster ¼³Á¤µµ ÇÒÇÊ¿ä¾ø´Ù. install_execd ¸¦ ½ÇÇàÇÏ¿© ½ÇÇ൥¸ó ¼³Á¤À» ÇÏÀÚ.

½ÇÇàÇϱâ Àü¿¡ server È£½ºÆ®¿¡ °¡¼­ ½ÇÇà È£½ºÆ®°¡ µî·ÏµÇ¾î ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.

 

[root@server lx24-x86]# pwd

/usr/N1/bin/lx24-x86

 

[root@server lx24-x86]# ./qconf -sh

file001

file002

server

 

 

[root@½ÇÇ༭¹ö·Î ¸¸µé ¸ðµçÈ£½ºÆ®]# ./install_execd

 

Welcome to the Grid Engine execution host installation

------------------------------------------------------

 

If you haven't installed the Grid Engine qmaster host yet, you must execute

this step (with >install_qmaster<) prior the execution host installation.

 

For a sucessfull installation you need a running Grid Engine qmaster. It is

also neccesary that this host is an administrative host.

 

You can verify your current list of administrative hosts with

the command:

 

   # qconf -sh

 

You can add an administrative host with the command:

 

   # qconf -ah <hostname>

 

The execution host installation will take approximately 5 minutes.

 

Hit <RETURN> to continue >>

 

Checking $SGE_ROOT directory

----------------------------

 

The Grid Engine root directory is:

 

   $SGE_ROOT = /usr/N1

 

If this directory is not correct (e.g. it may contain an automounter

prefix) enter the correct path to this directory or hit <RETURN>

to use default [/usr/N1] >>

 

Your $SGE_ROOT directory: /usr/N1

 

Hit <RETURN> to continue >>

 

Grid Engine cells

-----------------

 

Please enter cell name which you used for the qmaster

installation or press <RETURN> to use [hoho] >>

 

Using cell: >hoho<

 

Hit <RETURN> to continue >>

 

Checking hostname resolving

---------------------------

 

This hostname is known at qmaster as an administrative host.

 

Hit <RETURN> to continue >>

 

Local execd spool directory configuration

-----------------------------------------

 

During the qmaster installation you've already entered a global

execd spool directory. This is used, if no local spool directory is configured.

 

Now you can enter a local spool directory for this host.

 

ÀÛ¾÷ ¿äûÀÌ ¿Í¼­ ÇØ´ç ÀÛ¾óÀ» ½ÇÇà½Ã »ç¿ëÇÒ ½ºÇõð·ºÅ丮. À§¿¡¼­ ¸»Çß´Ù½ÃÇÇ ·ÎÄÿ¡ ÀÖÀ¸¸é ºÎÇϸ¦ ÁÙÀÏ ¼ö ÀÖ´Ù.

À̰ÍÀº Àüü ÀÛ¾÷ÀÇ ³»¿ëÀÌ ¾Æ´Ï°í ¸¶½ºÅÍ ¼­¹ö¿¡¼­ ½ÇÇàÇ϶ó°í ³Ñ°ÜÁØ ÀÛ¾÷¸¸ÀÌ »ç¿ëµÇ´Â µð·ºÅ丮ÀÌ´Ù.

µðÆúÆ®·Î ³Ñ¾î°¡µµ µÇÁö¸¸ ±×³É ¼öµ¿À¸·Î ÁöÁ¤ÇØÁá´Ù.

 

Do you want to configure a local spool directory

for this host (y/n) [n] >> y

 

Please enter the local spool directory now! >> /usr/N1/hoho/spool

Using local execd spool directory [/usr/N1/hoho/spool]

Hit <RETURN> to continue >>

 

Creating local configuration

----------------------------

sgeadmin@file002 added "file002" to configuration list

Local configuration for host >file002< created.

 

Hit <RETURN> to continue >>

 

execd startup script

--------------------

 

We can install the startup script that will

start execd at machine boot (y/n) [y] >>

 

cp /usr/N1/hoho/common/sgeexecd /etc/init.d/sgeexecd

/usr/lib/lsb/install_initd /etc/init.d/sgeexecd

 

Hit <RETURN> to continue >>

 

Grid Engine execution daemon startup

------------------------------------

 

Starting execution daemon. Please wait ...

   starting sge_execd

 

Hit <RETURN> to continue >>

 

Adding a queue for this host

----------------------------

 

We can now add a queue instance for this host:

 

   - it is added to the >allhosts< hostgroup

   - the queue provides 2 slot(s) for jobs in all queues

     referencing the >allhosts< hostgroup

 

You do not need to add this host now, but before running jobs on this host

it must be added to at least one queue.

 

Do you want to add a default queue instance for this host (y/n) [y] >>

 

root@file002 modified "@allhosts" in host group list

root@file002 modified "all.q" in cluster queue list

 

Hit <RETURN> to continue >>

 

Using Grid Engine

-----------------

 

You should now enter the command:

 

   source /usr/N1/hoho/common/settings.csh

 

if you are a csh/tcsh user or

 

   # . /usr/N1/hoho/common/settings.sh

 

if you are a sh/ksh user.

 

This will set or expand the following environment variables:

 

   - $SGE_ROOT         (always necessary)

   - $SGE_CELL         (if you are using a cell other than >default<)

   - $SGE_QMASTER_PORT (if you haven't added the service >sge_qmaster<)

   - $SGE_EXECD_PORT   (if you haven't added the service >sge_execd<)

   - $PATH/$path       (to find the Grid Engine binaries)

   - $MANPATH          (to access the manual pages)

 

Hit <RETURN> to see where Grid Engine logs messages >>

 

Grid Engine messages

--------------------

 

Grid Engine messages can be found at:

 

   /tmp/qmaster_messages (during qmaster startup)

   /tmp/execd_messages   (during execution daemon startup)

 

After startup the daemons log their messages in their spool directories.

 

   Qmaster:     /usr/N1/hoho/spool/qmaster/messages

   Exec daemon: <execd_spool_dir>/<hostname>/messages

 

 

Grid Engine startup scripts

---------------------------

 

Grid Engine startup scripts can be found at:

 

   /usr/N1/hoho/common/sgemaster (qmaster and scheduler)

   /usr/N1/hoho/common/sgeexecd (execd)

 

Do you want to see previous screen about using Grid Engine again (y/n) [n] >>

 

Your execution daemon installation is now completed.

 

 

common µð·ºÅ丮¸¦ ½ºÇ®¸µ ¼­¹ö°ÍÀ» ¸¶¿îÆ®ÇÑ´Ù. ¼³¸íÀº ¸¶½ºÅͼ­¹ö ¼³Ä¡ÇÒ ¶§ Çß´Ù.

[root@½ÇÇ༭¹öµé N1]# mount -t nfs spoolserver:/usr/N1/hoho/common/ /usr/N1/hoho/common/

 

[root@½ÇÇ༭¹öµé N1]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/sdc1              33G  2.2G   29G   7% /

none                  506M     0  506M   0% /dev/shm

spoolserver:/usr/N1/hoho/spooldb/

                       30G  2.3G   28G   8% /usr/N1/hoho/spooldb <-- ½¦µµ¿ì ¼­¹ö È£½ºÆ®¿¡¼­´Â À̰ͱîÁö..

spoolserver:/usr/N1/hoho/common/

                       30G  2.3G   28G   8% /usr/N1/hoho/common

 

@ È®ÀÎ

 

[root@file002 N1]# ps axf |grep sge

 7235 pts/0    S      0:00  |       \_ grep sge

 7157 ?        S      0:00 /usr/N1/bin/lx24-x86/sge_execd

 

[root@file002 N1]# ./bin/lx24-x86/qstat -f

queuename                      qtype used/tot. load_avg arch          states

----------------------------------------------------------------------------

all.q@file002                  BIP   0/2       0.03     lx24-x86     

----------------------------------------------------------------------------

all.q@server                   BIP   0/2       0.00     lx24-x86