6. Configuring Initialization options
I like to set runlevel to 3.
vi /etc/inittab
Change this line only (leaving everything else untouched):
id:3:initdefault:
I like remove some services from automatic initialization, to maintain only services that really will be used.
These are the active services that we'll need:
chkconfig --list | grep 3:sim
6.1 At this point, we need to reboot both nodes to apply configuration.
7. proxy 설정
vi /etc/profile
아래 내용 추가
# proxy
http_proxy="http://a.b.c.d:8080/"
https_proxy="http://a.b.c.d:8080/"
no_proxy="localhost,127.0.0.1,192.168.21.140,127.0.0.0/8,127.0.1.1,10.0.0.0/8,192.168.0.0/16"
export http_proxy
export https_proxy
export no_proxy
7.1 proxy 설정 for root
vi /root/.bashrc
아래 내용 추가
# proxy
http_proxy="http://a.b.c.d:8080/"
https_proxy="http://a.b.c.d:8080/"
no_proxy="localhost,127.0.0.1,192.168.21.140,127.0.0.0/8,127.0.1.1,10.0.0.0/8,192.168.0.0/16"
export http_proxy
export https_proxy
export no_proxy
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget -O /etc/yum.repos.d/pacemaker.repo http://clusterlabs.org/rpm/epel-5/clusterlabs.repo
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
yum update -y
아래 에러 발생시
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
vi /etc/yum.repos.d/epel.repo 의 모든
mirrorlist=https:// -> mirrorlist=http:// 로 변경 후
yum update -y 재시도
yum install -y pacemaker corosync drbd84 kmod-drbd84 heartbeat
* 아래와 같은 에러 나는 경우
Error: Package: cluster-glue-1.0.6-1.6.el5.x86_64 (clusterlabs)
Requires: libltdl.so.3()(64bit)
Error: Package: cluster-glue-1.0.6-1.6.el5.x86_64 (clusterlabs)
Requires: libnetsnmp.so.10()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
아래 2개 패키지 설치 후 시도
rpm -Uvh http://ftp.muug.mb.ca/mirror/centos/6.6/os/x86_64/Packages/cluster-glue-libs-1.0.5-6.el6.x86_64.rpm
rpm -Uvh http://ftp.muug.mb.ca/mirror/centos/6.6/os/x86_64/Packages/cluster-glue-1.0.5-6.el6.x86_64.rpm
-> 아래 에러 발생하는 경우
error: Failed dependencies:
perl-TimeDate is needed by cluster-glue-1.0.5-6.el6.x86_64
-> yum install perl-TimeDate
8. VM 복제
여기까지 node1 해놓고 node2 복제한다.
만약 ifconfig 해서 eth0 -> eth1, eth1 -> eth2 로 바뀌었다면 아래 링크 참고해서 해결한다.
http://www.cyberciti.biz/tips/vmware-linux-lost-eth0-after-cloning-image.html
9. PPAS 설치 (both)
# ./ppasmeta-9.4.1.3-linux-x64.run --optionfile ppas.cfg
- ppas.cfg:
mode=unattended
serverport=5444
serviceaccount=enterprisedb
servicepassword=enterprisedb
servicename=ppas-9.4
superaccount=enterprisedb
superpassword=enterprisedb
datadir=/var/lib/pgsql/data
xlogdir=/var/lib/pgsql/data/pg_xlog
댓글 없음:
댓글 쓰기