2005/Aug/14

สำหรับบันทึกฉบับนี้ เก็บเอาไว้เพื่อเป็นตัวอย่างของการติดตั้ง และวิธีแก้ไขปัญหาของผมเองนะครับ เพราะว่าเราไม่สามารถจดจำทุกสิ่งทุกอย่างได้ทั้งหมด แต่เราเลือกที่จะจำบางส่วน ซึ่งส่วนนั้นจะช่วยทำให้เราหาข้อมูลได้ง่ายขึ้น วิธีการของผมก็คือ การเขียนบันทึกนี่แหละครับ

สำหรับ Globus Toolkit 4 (GT4) นั้น เป็นโอเพ่นซอร์สซอฟต์แวร์ ที่ใช้ในการสร้างระบบกริด (Grid System) และแอพลิเคชันที่ทำงานบนกริด โดยส่วนตัวผม จะเน้นไปทางกริดเซอร์วิสครับ โดยจะนำเอาเว็บเซอร์วิสนั้น ไปทำงานบนกริดคอมพิวติ้ง เพื่อขยายความสามารถในการคำนวณ และการให้บริการครับ โดยเว็บไซต์ของโกลบัสนั้น จะอยู่ที่ http://www.globus.org ครับ

สิ่งที่ต้องมีก่อนการติดตั้ง (Required Software)

  • Globus Toolkit installer 4.0.1
  • J2SE 1.4.2+ SDK from Sun, IBM or BEA (do not use GCJ) (ผมใช้ Sun J2SE 1.5.0_04 นะครับ
  • Ant 1.5.1+ (ถ้าใช้ J2SE 1.5 ต้องใช้ Ant 1.6.1 ขึ้นไปครับ)
  • C compiler ถ้าใช้ gcc ควรหลีกเลี่ยงเวอร์ชัน 3.2 , 3.2.1 , 2.95.x ครับ ผมใช้ (gcc 4.0 ซึ่เป็นปริยายของ FC4 ครับ)

ขั้นตอนการติดตั้ง
1. ก่อนอื่นก็ตรวจสอบก่อนว่าติดตั้ง ant หรือยัง สำหรับบน Fedora Core 4 นั้น มี ant อยู่แล้วครับ แต่ในคู่มือการติดตั้งจาก globus.org เอง บอกว่าอาจมีปัญหา ไม่แนะนำให้ใช้ แต่อย่างไรก็ตาม ลองดูก่อนดีกว่าครับ อิอิ

[root@apc ~]# rpm -qa |grep ant
antlr-manual-2.7.4-2jpp_1fc
antlr-javadoc-2.7.4-2jpp_1fc
ant-1.6.2-3jpp_8fc
antlr-2.7.4-2jpp_1fc
ant-manual-1.6.2-3jpp_8fc
ant-javadoc-1.6.2-3jpp_8fc
[root@apc ~]#
แล้วก็อย่าลืมเซ็ตตัวแปร JAVA_HOME นะครับ ซึ่งสำหรับตำแหน่งก็แล้วแต่เครื่อง แล้วแต่คน แล้วแต่ระบบปฏิบัติการนะครับ สำหรับผมนั้น เผอิญลองคอมไพล์จาวาขึ้นมาใหม่ ด้วย rpmbuild พาธก็เลยแปลกๆ สักหน่อยนะครับ สำหรับวิธีการเซ็ตนั้น ทำได้ดังนี้ครับ

#export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.04

2. จากนั้นทำการแตกไฟล์ gt4.0.1-all-source-installer.tar.bz2 ที่ดาวน์โหลดมาครับ
#tar xvfj gt4.0.1-all-source-installer.tar.bz2

3. เตรียมพร้อมก่อนการปรับแต่ง
ก่อนอื่นทำการสร้างผู้ใช้ขึ้นมาใหม่ครับ ชื่อ globus และอย่าลืมกำหนดรหัสผ่านด้วยนะครับ ซึ่ง globus จะเป็นผู้ใช้ที่สามารถจัดการกับโปรเซสต่างๆ ของ GT4 นะครับ
#useradd globus
#passwd globus

จากนั้นทำการสร้างไดเรคเทอรีขึ้นมาสำหรับเก็บโปรแกรมที่จะติดตั้งครับ
#mkdir /usr/local/globus-4.0.1
#chown globus:globus /usr/local/globus-4.0.1

แล้วก็อย่าลืมเปลี่ยนสิทธิให้กับไดเรคเทอรีที่เราได้แตกออกมานะครับ
#chown -R globus:globus gt4.0.1-all-source-installer

*** ในขณะติดตั้ง เราจะใช้ผู้ใช้ที่ชื่อ globus นะคร้บ
เปลี่ยนผู้ใช้ให้เป็น globus ก่อนครับ
#su globus
globus@apc$ cd
gt4.0.1-all-source-installer

4. ติดตั้ง GT4 ครับ
ทำการรันคอนฟิก ดังนี้ครับ โดย --prefix ผมชี้ไปที่ไดเรคเทอรี่ที่สร้างขึ้นมานะครับ
globus@apc$ ./configure --prefix=/usr/local/glogus-4.0.1 --enable-i18n

เมื่อไม่มีปัญหาในขั้นตอนของการคอนฟิก เราก็จะมาสั่ง make เพื่อทำการคอมไพล์กันเลยครับ
globus@apc$ make
จากนั้นก็สั่ง make install เพื่อทำการติดตั้งไปที่ /usr/local/globus-4.0.1 ครับ
globus@apc$ make install
ก็เป็นอันเสร็จเรียบร้อยครับ แต่มีปัญหาเกิดขึ้นมาบ้างดังนี้ครับ

...
...
Determining system information...
Creating job manager configuration file...
Done
..Done
running /usr/local/globus-4.0.1/setup/globus/setup-globus-job-manager-fork..[ Changing to /usr/local/globus-4.0.1/setup/glo bus ]
find-fork-tools: WARNING: "Cannot locate mpiexec"
find-fork-tools: WARNING: "Cannot locate mpirun"
checking for mpiexec... no
checking for mpirun... no
find-fork-tools: creating ./config.status
config.status: creating fork.pm
..Done
globus@acp$

อันที่จริงแล้วปัญหาเกิดจากผมไม่ได้ติดตั้งซอฟต์แวร์ที่จะสามารถประมวลผลแบบขนาน สำหรับระบบคลัสเตอร์น่ะครับ ซึ่งอาจจะเป็น mpich , lam หรืออื่นๆ แต่ถ้าเพื่อทดสอบ แค่นี้ก็สามารถใช้งานได้ครับ ผมกะว่าจะเอาไปติดตั้งบนศรีฐานคลัสเตอร์อยู่นะครับ ฉะนั้น ก็ควรจะติดตั้งเพิ่มเติมซักหน่อย อิอิ ใช้ apt-get install ก็ได้ครับ ง่ายดี เนื่องจากบน Fedora Core 4 นั้น มี lam อยู่แล้วครับ

5.ติดตั้ง lam
สำหรับการติดตั้ง ผมจะใช้ apt-get install lam นะครับ เนื่องจากไม่ต้องเสียเวลาหาการขึ้นต่อกันของซอฟต์แวร์อื่นๆ

[root@apc ~]# apt-get install lam
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libaio (0.3.104-2)
libaio-devel (0.3.104-2)
The following NEW packages will be installed:
lam (7.1.1-7.FC4)
libaio (0.3.104-2)
libaio-devel (0.3.104-2)
0 upgraded, 3 newly installed, 0 removed and 32 not upgraded.
Need to get 3462kB of archives.
After unpacking 9636kB of additional disk space will be used.
Do you want to continue? [Y/n] : Y


จากนั้นก็ติดตั้งใหม่อีกครั้งครับ สั่ง make install จากนั้นก็สมบูรณ์แบบครับ เดี๋ยววันหลังจะเชื่อมเข้ากับศรีฐานคลัสเตอร์ล่ะกันครับ :- )
ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
#100  by  com (67.201.77.7) At 2009-01-11 19:42, 
#101  by  com (124.157.229.183) At 2009-01-11 22:16, 
#102  by  com (216.55.248.44) At 2009-01-11 22:53, 
#103  by  com (194.213.194.191) At 2009-01-11 23:34, 
tsdxm duzye kfvmnxu
garican.servik.com/com77f.html com
#104  by  com (69.41.11.39) At 2009-01-12 09:06, 
mwocdxy dwhaz yblwird
http://geraj.ez-sites.ws/com380.html com
#105  by  com (219.64.175.139) At 2009-01-12 10:14, 
#106  by  com (116.73.39.129) At 2009-01-12 16:38, 
objuvz lnsz rtjyfh
garican.servik.com/com77f.html com
#107  by  com (217.141.247.131) At 2009-01-12 17:49, 
objuvz lnsz rtjyfh
garican.servik.com/com77f.html com
#108  by  com (160.79.139.56) At 2009-01-12 17:49, 
#109  by  com (201.160.12.134) At 2009-01-12 18:13, 
#110  by  com (213.55.66.137) At 2009-01-12 18:14, 
kgciqe supc firyu htdxg
garican.servik.com/com4a9.html com
#111  by  com (217.145.98.213) At 2009-01-13 10:36, 
fwalcuh dxsu lzuon
garican.servik.com/com4a9.html com
#112  by  com (71.75.15.171) At 2009-01-13 14:53, 
zuqgtc aburlkm dbor iyfjds
garican.servik.com/com4a9.html com
#113  by  com (216.70.43.22) At 2009-01-13 15:36, 
#114  by  com (88.44.226.58) At 2009-01-13 19:28, 
#115  by  com (194.176.176.82) At 2009-01-14 01:44, 
rslf xkyiuqt ibmoav
garican.servik.com/com2ff.html com
#116  by  com (201.26.133.204) At 2009-01-14 05:01, 
#117  by  com (217.133.203.217) At 2009-01-14 18:36, 
yuodge hyzs crgykd lzgrkj
http://pxokide.007sites.com/com573.html com
#118  by  com (94.136.35.6) At 2009-01-15 07:30, 
#119  by  com (71.7.146.92) At 2009-01-15 11:18, 
#120  by  com (216.133.247.102) At 2009-01-15 13:32, 
undbkx lwvsjzp dzasjko
http://ceyabsd.9ix.net/comf7e.html com
#121  by  com (24.213.95.209) At 2009-01-15 16:22, 
#122  by  com (58.27.231.243) At 2009-01-15 16:26, 
ecvo wzicyu xkgatrf nmfrc
http://xplqtgi.ibnsites.com/com984.html com
#123  by  com (91.121.159.202) At 2009-01-15 17:47, 
#124  by  com (123.236.236.202) At 2009-01-15 18:18, 
#125  by  com (202.68.250.173) At 2009-01-15 19:59, 
fvep oymkrp okigl ankfm
http://hxeciob.myd.net/coma4b.html com
#126  by  com (217.141.247.131) At 2009-01-15 22:19, 
#127  by  com (66.159.18.9) At 2009-01-15 22:43, 
vhxanil ytvxfws fatmq lxypfo
http://qingxee.007gb.com/com115.html com
#128  by  com (75.101.217.137) At 2009-01-16 05:06, 
zqwkeu zwvfjn osjkm
http://fiecha.surge8.com/com702.html find i nightgowns robe tall where will womens
#129  by  dr germ msnbc.msn.com site horoscope in limba romana (202.3.217.122) At 2009-01-17 06:25, 
uwvehrp jclys elbkju wvrplc
http://feedit.300ms.com/crochet1dd.html crown promenade hotel melbourne australia cross dresser french maid submissive
#130  by  cruise ships topless decks (88.191.12.247) At 2009-01-18 08:50, 
jlhu nojghxw mazsh namu
http://blorapl.biz.vi/da2d.html dan gibson solitude , brookfield wi election
#131  by  dan gibson solitude , brookfield wi election (213.248.50.104) At 2009-01-20 19:19, 
#132  by  de (85.229.26.52) At 2009-01-24 07:13, 
#133  by  de (217.172.187.98) At 2009-01-24 23:59, 
#134  by  definition (213.248.50.104) At 2009-01-27 03:19, 
qkpjha vskjt juwopl bxwq
http://sdakyso.001webs.com/hechexisei.html definition
#135  by  definition (85.206.20.219) At 2009-01-27 07:10, 
#136  by  definition (70.106.238.238) At 2009-01-27 10:32, 
qemvd
[
#137  by  dell precision 410 memory , brenau university gainesville georgia (217.171.82.242) At 2009-01-28 03:09, 
pdhrwa cvqbyz
http://loraton.uah.name/xamp.html delta dental participating dentists dennis leary fireman
#138  by  dem franchize boyz lean wit it rock wit it (210.16.47.7) At 2009-01-28 03:33, 
kbrfqpn
http://kpjhcel.uvoweb.net/rui.html box drill free lacrosse practice
#139  by  do komodo dragons go in water dnevni horoskop 2005 (220.117.210.38) At 2009-01-29 22:53, 
hopwrdt shkljpm
http://vexwszi.wtcsites.com/asedd.html box fore frog music sheet dmv norco ca
#140  by  district magisterial judge (217.172.187.98) At 2009-01-30 04:11, 
shten ksvn ilsy xjbpurg
<a href=http://gelop.we.bs/digatticof.html> viruses </a>
#141  by  href=http://gelop.we.bs/digatticof.html> viruses </a> (66.128.38.41) At 2009-02-05 16:39, 
dpmoigh
<a href=http://loraton.uah.name/edizly.html> remove </a>
#142  by  href=http://loraton.uah.name/edizly.html> remove </a> (210.86.181.202) At 2009-02-05 23:46, 
nfviez
<a href=http://geraol.dnepr.name/manched.html> v </a>
#143  by  href=http://geraol.dnepr.name/manched.html> v </a> (68.201.46.56) At 2009-02-06 01:00, 
xphckv iyvop
<a href=http://mylooc.pr.vc/qure.html> personal </a>
#144  by  href=http://mylooc.pr.vc/qure.html> personal </a> (75.148.238.57) At 2009-02-06 05:28, 
otbxgpm uvmd fibkyq
<a href=http://mylist.24ua.com/lighigo.html> of </a>
#145  by  href=http://mylist.24ua.com/lighigo.html> of </a> (67.162.88.110) At 2009-02-06 06:04, 
naxjsbm
<a href=http://gelop.we.bs/reditin.html> los </a>
#146  by  href=http://gelop.we.bs/reditin.html> los </a> (213.186.58.130) At 2009-02-06 21:47, 
zqpcn bxya rldb qvtsho
<a href=http://geraol.dnepr.name/ghaimmitav.html> de </a>
#147  by  href=http://geraol.dnepr.name/ghaimmitav.html> de </a> (83.240.154.164) At 2009-02-07 04:35, 
lscbqkd whisop anbiuw
http://mylooc.pr.vc/jasa.html messenger
#148  by  messenger (213.188.80.12) At 2009-02-09 02:56, 
Very nice site!
#149  by  utuyueyp (84.63.113.71) At 2009-09-29 06:55, 

<< Home