計算叢集MOSIX-3.1.1.1.for_kernel-3.2.23 配置
修改/boot/grub/menu.lst檔案:
將 default=1 改為 default=0:
# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_mosix-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.2.23)
root (hd0,0)
kernel /vmlinuz-3.2.23 ro root=/dev/mapper/vg_mosix-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mosix/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_mosix/lv_swap rd_NO_DM rhgb quiet
initrd /initramfs-3.2.23.img
title CentOS (2.6.32-279.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=/dev/mapper/vg_mosix-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mosix/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_mosix/lv_swap rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-279.el6.x86_64.img
重啟2臺計算機。
重啟好以後:
#配置mosix
# mosconf
MOSIX CONFIGURATION
===================
If this is your cluster's file-server and you want to configure MOSIX
for a set of nodes with a common root, please type their common root
directory. Otherwise, if you want to configure the node that you are
running on, just press :-
What would you like to configure?
=================================
1. Which nodes are in this cluster (ESSENTIAL)
2. Authentication (ESSENTIAL)
3. Logical node numbering (recommended)
4. Queueing policies (recommended)
5. Freezing policies
6. Miscellaneous policies
7. Become part of a multi-cluster organizational Grid
Configure what :- 1
There are no nodes in your cluster yet:
=======================================
To add a new set of nodes to your cluster, type 'n'.
To turn on advanced options, type '+'.
For help, type 'h'.
To save and exit, type 'q'. (to abandon all changes and exit, type 'Q')
Option :- n <==新增節點
Adding new node(s) to the cluster:
First host-name or IP address :- 192.168.74.141 <==節點ip
Number of nodes :- 1 <==節點數
Nodes in your cluster:
======================
1. 192.168.74.141
To add a new set of nodes to your cluster, type 'n'.
To modify an entry, type its number.
To delete an entry, type 'd' followed by that entry-number (eg. d1).
To turn on advanced options, type '+'.
For help, type 'h'.
To save and exit, type 'q'. (to abandon all changes and exit, type 'Q')
Option :- n <==新增節點
Adding new node(s) to the cluster:
First host-name or IP address :- 192.168.74.147 <==節點ip
Number of nodes :- 1 <==節點數
Nodes in your cluster:
======================
1. 192.168.74.141
2. 192.168.74.147
To add a new set of nodes to your cluster, type 'n'.
To modify an entry, type its number.
To delete an entry, type 'd' followed by that entry-number (eg. d2).
To turn on advanced options, type '+'.
For help, type 'h'.
To save and exit, type 'q'. (to abandon all changes and exit, type 'Q')
Option :- q <==儲存退出
Cluster configuration was saved.
OK to also update the logical node numbers [Y/n]? y
Suggesting to assign '192.168.1.5'
as the central queue manager for the cluster
(but be cautious if you mix 32-bit and 64-bit nodes in the same cluster)
OK to update it now [Y/n]?
What would you like to configure next?
======================================
1. Which nodes are in this cluster
2. Authentication (ESSENTIAL)
3. Logical node numbering
4. Queueing policies
5. Freezing policies
6. Miscellaneous policies
7. Become part of a multi-cluster organizational Grid
q. Exit
Configure what :- 2 <==設定密碼
MOSIX Authentication:
=====================
To protect your MOSIX cluster from abuse, preventing unauthorized
persons from gaining control over your computers, you need to set
up a secret cluster-protection key. This key can include any
characters, but must be identical throughout your cluster.
Your secret cluster-protection key: xxxx <==輸入密碼
Your key is 5 characters long.
(in the future, please consider a longer one)
To allow your users to send batch-jobs to other nodes in the cluster,
you must set up a secret batch-client key. This key can include any
characters, but must match the 'batch-server' key on the node(s) that
can receive batch-jobs from this node.
Your secret batch-client key: xxxx <==輸入密碼
Your key is 5 characters long.
(in the future, please consider a longer one)
For this node to accept batch jobs,
you must set up a secret batch-server key. This key can include any
characters, but must match the 'batch-client' key on the sending nodes.
To make your batch-server key the same as your batch-client key, type '+'.
Your secret batch-server key: xxxx <==輸入密碼
Your key is 5 characters long.
(in the future, please consider a longer one)
#保持退出
MOSIX CONFIGURATION
===================
If this is your cluster's file-server and you want to configure MOSIX
for a set of nodes with a common root, please type their common root
directory. Otherwise, if you want to configure the node that you are
running on, just press
What would you like to configure?
=================================
1. Which nodes are in this cluster (ESSENTIAL)
2. Authentication (ESSENTIAL)
3. Logical node numbering (recommended)
4. Queueing policies (recommended)
5. Freezing policies
6. Miscellaneous policies
7. Become part of a multi-cluster organizational Grid
Configure what :- 1
There are no nodes in your cluster yet:
=======================================
To add a new set of nodes to your cluster, type 'n'.
To turn on advanced options, type '+'.
For help, type 'h'.
To save and exit, type 'q'. (to abandon all changes and exit, type 'Q')
Option :- n <==新增節點
Adding new node(s) to the cluster:
First host-name or IP address :- 192.168.74.141 <==節點ip
Number of nodes :- 1 <==節點數
Nodes in your cluster:
======================
1. 192.168.74.141
To add a new set of nodes to your cluster, type 'n'.
To modify an entry, type its number.
To delete an entry, type 'd' followed by that entry-number (eg. d1).
To turn on advanced options, type '+'.
For help, type 'h'.
To save and exit, type 'q'. (to abandon all changes and exit, type 'Q')
Option :- n <==新增節點
Adding new node(s) to the cluster:
First host-name or IP address :- 192.168.74.147 <==節點ip
Number of nodes :- 1 <==節點數
Nodes in your cluster:
======================
1. 192.168.74.141
2. 192.168.74.147
To add a new set of nodes to your cluster, type 'n'.
To modify an entry, type its number.
To delete an entry, type 'd' followed by that entry-number (eg. d2).
To turn on advanced options, type '+'.
For help, type 'h'.
To save and exit, type 'q'. (to abandon all changes and exit, type 'Q')
Option :- q <==儲存退出
Cluster configuration was saved.
OK to also update the logical node numbers [Y/n]? y
Suggesting to assign '192.168.1.5'
as the central queue manager for the cluster
(but be cautious if you mix 32-bit and 64-bit nodes in the same cluster)
OK to update it now [Y/n]?
What would you like to configure next?
======================================
1. Which nodes are in this cluster
2. Authentication (ESSENTIAL)
3. Logical node numbering
4. Queueing policies
5. Freezing policies
6. Miscellaneous policies
7. Become part of a multi-cluster organizational Grid
q. Exit
Configure what :- 2 <==設定密碼
MOSIX Authentication:
=====================
To protect your MOSIX cluster from abuse, preventing unauthorized
persons from gaining control over your computers, you need to set
up a secret cluster-protection key. This key can include any
characters, but must be identical throughout your cluster.
Your secret cluster-protection key: xxxx <==輸入密碼
Your key is 5 characters long.
(in the future, please consider a longer one)
To allow your users to send batch-jobs to other nodes in the cluster,
you must set up a secret batch-client key. This key can include any
characters, but must match the 'batch-server' key on the node(s) that
can receive batch-jobs from this node.
Your secret batch-client key: xxxx <==輸入密碼
Your key is 5 characters long.
(in the future, please consider a longer one)
For this node to accept batch jobs,
you must set up a secret batch-server key. This key can include any
characters, but must match the 'batch-client' key on the sending nodes.
To make your batch-server key the same as your batch-client key, type '+'.
Your secret batch-server key: xxxx <==輸入密碼
Your key is 5 characters long.
(in the future, please consider a longer one)
#保持退出
修改 vi /etc/init.d/mosix檔案:
新增一行:. /etc/init.d/functions
修改後如下:
#!/bin/sh -
#
# mosix $Id: mosix.init,v 1.1.1.1 2004/04/08 12:27:33 lior Exp $
#
# chkconfig: 2345 95 5
# description: MOSIX is an extension of the operating system,
# supporting scalable and transparent cluster computing.
#
# mosix Script. to stop/start MOSIX
#
# Author: Amnon Shiloh, Amar Lior
### BEGIN INIT INFO
# Provides: MOSIX
# Required-Start: $network
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: MOSIX
# Description: MOSIX
### END INIT INFO
#
#Don't delete the following line. Needed for RedHat compatibility !!!
#daemon mosix
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin
[ -x /etc/init.d/functions ] && . /etc/init.d/functions
. /etc/init.d/functions
stop_mosix() {
echo -n Disconnecting from cluster...
mosctl shutdown
if [ -x /sbin/start-stop-daemon ]
then
start-stop-daemon --stop --signal 6 --pidfile /var/run/mosd.pid
RETVAL=$?
else
killproc mosd -ABRT
RETVAL=$?
fi
echo
[ $RETVAL -eq 0 -a -d /var/lock/subsys ] && rm -f /var/lock/subsys/mosix
}
start_mosix() {
[ -d /var/lock/subsys ] && touch /var/lock/subsys/mosix
rm -f /etc/mosix/var/.useroff /etc/mosix/var/isolate
if [ -x /sbin/start-stop-daemon ]
then
start-stop-daemon --start --pidfile /var/run/mosd.pid --exec `which mosd` --
RETVAL=$?
elif [ -x /sbin/startproc ]
then
startproc `which mosd`
RETVAL=$?
else
daemon mosd
#mosd
RETVAL=$?
fi
[ $RETVAL -eq 0 -a -d /var/lock/subsys ] && touch /var/lock/subsys/mosix
}
# See how we were called.
case "$1" in
start)
echo "Starting MOSIX..."
start_mosix ;;
stop)
echo "Stopping MOSIX..."
stop_mosix ;;
status)
mossetpe -r
echo
mosctl localstatus
# /etc/init.d/mosix stop
Stopping MOSIX...
Disconnecting from cluster...[ OK ]
/etc/init.d/mosix start
Starting MOSIX...
MOSD - MOSIX Version 3.1.1.1
# /etc/init.d/mosix status
This MOSIX node is: 192.168.74.141
Nodes in cluster:
=================
192.168.74.141: proximate
192.168.74.147: proximate
Status: Running Normally
Load: 0
Speed: 4176 units
CPUS: 4
Frozen: 0
Util: 100%
Avail: YES
Procs: Running 0 MOSIX processes
Accept: Yes, will welcome processes from here
Memory: Available 3.68GB/3.87GB
Swap: Available 3.8GB/3.8GB
Daemons:
Master Daemon: Up
MOSIX Daemon : Up
Queue Manager: Up
Remote Daemon: Up
Postal Daemon: Up
MOSRC Daemon: Up
Guest processes from other clusters in the multi-cluster: 0/32
另外一臺伺服器同樣設定。
# /etc/init.d/mosix status
This MOSIX node is: 192.168.74.147
Nodes in cluster:
=================
192.168.74.141: proximate
192.168.74.147: proximate
Status: Running Normally
Load: 0
Speed: 4176 units
CPUS: 4
Frozen: 0
Util: 100%
Avail: YES
Procs: Running 0 MOSIX processes
Accept: Yes, will welcome processes from here
Memory: Available 3.68GB/3.87GB
Swap: Available 3.8GB/3.8GB
Daemons:
Master Daemon: Up
MOSIX Daemon : Up
Queue Manager: Up
Remote Daemon: Up
Postal Daemon: Up
MOSRC Daemon: Up
Guest processes from other clusters in the multi-cluster: 0/32
#看看埠是不是起來了
#TCP/IP ports 249-253 and UDP/IP ports 249-250 must be available for MOSIX
#TCP/IP ports 249-253 and UDP/IP ports 249-250 must be available for MOSIX
# netstat -antu | grep -E "24|25"
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:250 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:251 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:252 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:253 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:254 0.0.0.0:* LISTEN
tcp 0 0 ::1:25 :::* LISTEN
udp 0 0 0.0.0.0:249 0.0.0.0:*
udp 0 0 0.0.0.0:250 0.0.0.0:*
udp 0 0 0.0.0.0:253 0.0.0.0:*
udp 0 0 :::54251 :::*
#好了,裝完了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8183550/viewspace-751051/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 計算叢集MOSIX-3.1.1.1.for_kernel-3.2.23安裝
- 計算機叢集計算機
- 計算機叢集與網格計算計算機
- 雲端計算,網格計算,分散式計算,叢集計算的區別?分散式
- redis偽叢集配置Cluster叢集模式Redis模式
- Mesos計算框架:叢集管理器框架
- 用NodeJS實現叢集計算NodeJS
- Kafka叢集配置Kafka
- mongo 叢集配置Go
- MySQL叢集配置MySql
- Docker Elasticsearch 叢集配置DockerElasticsearch
- MySQL叢集配置(轉)MySql
- HA叢集heartbeat配置--NginxNginx
- FastDFS 叢集 安裝 配置AST
- xCAT叢集管理配置工具
- 【Mongodb】Sharding 叢集配置MongoDB
- 39_配置redis叢集Redis
- Spark 1.2.1 釋出,開源叢集計算系統Spark
- 開源叢集計算環境:Spark 1.1.0釋出Spark
- Linux叢集的安裝與平行計算(轉)Linux
- linux 怎麼配置叢集Linux
- spark叢集的配置檔案Spark
- docker 配置 Mysql主從叢集DockerMySql
- Vert.x 叢集配置 TCPTCP
- redis sentinel 叢集監控 配置Redis
- weblogic8.1叢集配置Web
- Weblogic10 叢集配置Web
- 實時計算框架:Spark叢集搭建與入門案例框架Spark
- 邊緣計算,如何啃下叢集管理這塊硬骨頭?
- 雲端計算-伺服器叢集技術的分類伺服器
- Elastic Search 7.x 叢集配置AST
- redis原理及叢集主從配置Redis
- Hadoop完全分散式叢集配置Hadoop分散式
- 大資料Spark叢集模式配置大資料Spark模式
- Elasticsearch分散式搜尋叢集配置Elasticsearch分散式
- Quartz叢集原理及配置應用quartz
- hadoop叢集配置和啟動Hadoop
- ray-分散式計算框架-叢集與非同步Job管理分散式框架非同步