<3불전략>
<경영학 콘서트>
<일본 제국은 왜 실패하였는가? 태평양 전쟁에서 배우는 조직경영>
<전쟁론> 카를 폰 클라우제비츠, 유제승 역
<교토식 경영>
<미국의 베트남 전쟁 : 미국은 어떻게 베트남에서 패배했는가?>
2011년 2월 23일 수요일
2011년 2월 17일 목요일
Torque 설치 (Slackware 13.1 기준)
1) http://www.clusterresources.com/downloads/torque/에서 소스코드 다운로드
2) 압축해제 후 헤드 노드에 설치
2) 압축해제 후 헤드 노드에 설치
$ tar -zxvf torque-3.0.0.tar.gz3) 계산 노드에 다음 두 스크립트를 복사하여 설치.
$ cd torque-3.0.0
$ ./configure
$ make
$ make install
$ ./torque-package-clients-linux-i686.sh --install4) 설치 디렉토리의 torque.setup 스크립트 실행 (헤드 노드)
$ ./torque-package-mom-linux-i686.sh --install
$ ./torque.setup test5) /var/spool/torque/server_priv/nodes에 계산 노드 목록 기술.
node1 np=26) /var/spool/torque/mom_priv/config에 다음 기술 (계산 노드)
node2 np=2
...
$pbsserver headnode # note: hostname running pbs_server7) 데몬 실행
$logevent 255 # bitmap of which events to log
$ pbs_server (헤드노드)8) job 제출(run.sh는 실행 스크립트)
$ pbs_sched (헤드노드)
$ pbs_mom (헤드 & 계산노드)
$ qsub run.sh
$ qstat (큐상태 확인)
Ganglia 설치(Slackware 13.1 기준)
1) Ganglia 설치전에 아래 패키지가 설치해야 한다.
* APR (http://apr.apache.org/)
* libConfuse (http://www.nongnu.org/confuse/)
* expat (http://expat.sourceforge.net/)
* python (http://www.python.org/)
* PCRE (http://www.pcre.org/)
* RRDtool (http://oss.oetiker.ch/rrdtool/)
이중 libConfuse와 RRDTool은 Slackbuild에서 다운로드 받을 수있고 python은 이미 깔려 있다. 나머지 패키지는 직접 소스를 다운로드 받아 설치해야 한다.
2) 설치가 완료되면, http://sourceforge.net/projects/ganglia/ 에서 Ganglia 소스코드를 다운로드 받아 아래와 같이 설치한다.
name : 클러스터 이름
host : gmond가 수집한 정보를 보낼 서버의 주소
bind : 다른 노드에서 보내온 정보를 받을 서버의 주소
계산노드는 host만, 헤드노드는 host와 bind 모두 설정
클러스터의 이름과 gmond.conf에서 bind로 설정된 노드의 주소 또는 이름 추가
/etc/httpd/httpd.conf에서 다음 라인의 주석제거
* APR (http://apr.apache.org/)
* libConfuse (http://www.nongnu.org/confuse/)
* expat (http://expat.sourceforge.net/)
* python (http://www.python.org/)
* PCRE (http://www.pcre.org/)
* RRDtool (http://oss.oetiker.ch/rrdtool/)
이중 libConfuse와 RRDTool은 Slackbuild에서 다운로드 받을 수있고 python은 이미 깔려 있다. 나머지 패키지는 직접 소스를 다운로드 받아 설치해야 한다.
2) 설치가 완료되면, http://sourceforge.net/projects/ganglia/ 에서 Ganglia 소스코드를 다운로드 받아 아래와 같이 설치한다.
$ ./configure --sysconfdir=/etc/ganglia --with-gmetad3) gmond와 gmetad 초기화스크립트를 시작 스크립트로 복사
$ make
$ make install
$ cp gmond/gmond.init /etc/rc.d/rc.gmond4) gmond.conf를 /etc/ganglia로 복사
$ cp gmetad/gmetad.init /etc/rc.d/rc.gmetad (헤드노드만)
$ cp gmond/gmond.conf /etc/ganglia/.5) /etc/ganglia/gmond.conf 수정
$ cp gmetad/gmetad.conf /etc/ganglia/. (헤드 노드만)
name : 클러스터 이름
host : gmond가 수집한 정보를 보낼 서버의 주소
bind : 다른 노드에서 보내온 정보를 받을 서버의 주소
계산노드는 host만, 헤드노드는 host와 bind 모두 설정
cluster {
//name = "unspecified"
name = "my cluster"
}
udp_send_channel {
#bind_hostname = yes # Highly recommended, soon to be default.
# This option tells gmond to use a source address
# that resolves to the machine's hostname. Without
# this, the metrics may appear to come from any
# interface and the DNS names associated with
# those IPs will be used to create the RRDs.
//mcast_join = 239.2.11.71
host = 192.168.1.1
port = 8649
ttl = 1
/* You can specify as many udp_recv_channels as you like as well. */6) /etc/ganglia/gmetad.conf 수정 (헤드 노드만)
udp_recv_channel {
//mcast_join = 239.2.11.71
port = 8649
//bind = 239.2.11.71
bind = 192.168.1.1
}
클러스터의 이름과 gmond.conf에서 bind로 설정된 노드의 주소 또는 이름 추가
data_source "my cluster" 192.168.1.17) Web Frontend 설치
mkdir /var/www/htdoc/ganglia8) /var/www/htdoc/ganglia/conf.php에서 rrd 파일 저장위치와 rrdtool의 위치 확인
cp -a web/* /var/www/htdoc/ganglia/
# Where gmetad stores the rrd archives.9) 8)의 rrd파일 저장 위치 생성 후 nobody로 소유자 변경.
$gmetad_root = "/var/lib/ganglia";
$rrds = "$gmetad_root/rrds";
# Leave this alone if rrdtool is installed in $gmetad_root,
# otherwise, change it if it is installed elsewhere (like /usr/bin)
define("RRDTOOL", "/usr/bin/rrdtool");
mkdir -p /var/lib/ganglia/rrds10) Apache 설정에 PHP 모듈이 활성화 되어있는지 확인
chown nobody.nobody /var/lib/ganglia/rrds
/etc/httpd/httpd.conf에서 다음 라인의 주석제거
# Uncomment the following line to enable PHP:11) 모든 노드에서 gmond 시작, 헤드노드에서 gmetad , httpd 시작
#
Include /etc/httpd/mod_php.conf
$ /etc/rc.d/rc.gmond start12) gmond, gmetad 정상동작 확인
$ /etc/rc.d/rc.gmetad start
$ /etc/rc.d/rc.httpd start
$telnet node2 864913) http://localhost/ganglia/index.php로 접속
$telnet localhost 8651
2011년 2월 13일 일요일
Putty / Xming 사용을 위한 팁(Slackware 13.1 기준)
윈도우에서 리눅스 클라우드로 접속하기 위해 오픈소스 터미널 프로그램인 Putty와 Xming을 사용하였다. 하지만 Putty에서 X11 forwarding Enable을 체크하여 X-window 프로그램을 실행시켜 보았으나 되지 않았다. 구글링 결과 슬랙웨어 리눅스의 sshd 설정도 변경시켜 주어야 한다.
1. /etc/ssh/sshd_config를 root계정으로 연 후에 아래와 같이 변경한다.
2. sshd가 부팅시에 자동실행 될 수 있도록 실행권한를 부여한다.
참고자료) http://jormamakela.wordpress.com/2010/09/27/basic-configuration-on-a-linux-server-slackware-13-1/
1. /etc/ssh/sshd_config를 root계정으로 연 후에 아래와 같이 변경한다.
#X11Forwarding no
X11Forwarding yes
2. sshd가 부팅시에 자동실행 될 수 있도록 실행권한를 부여한다.
chmod +x /etc/rc.d/sshd3. sshd를 재실행한다.
/etc/rc.d/rc.sshd restart4. putty로 접속후에 xterm을 실행시켜 본다.
참고자료) http://jormamakela.wordpress.com/2010/09/27/basic-configuration-on-a-linux-server-slackware-13-1/
피드 구독하기:
글 (Atom)