티스토리 뷰
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# ps auxw | grep post
postgres 19005 0.0 0.4 4498784 154852 ? S Apr13 0:00 /usr/local/postgresql-9.0.2/bin/postgres -D /usr/local/postgresql9/data
postgres 19006 0.0 0.0 70872 800 ? Ss Apr13 0:00 postgres: logger process
postgres 19007 0.0 0.0 4500968 1372 ? Ss Apr13 0:00 postgres: startup process waiting for 00000001000000000000000C
postgres 19010 0.0 0.0 4500836 27596 ? Ss Apr13 0:00 postgres: writer process
postgres 19012 0.0 0.0 72960 804 ? Ss Apr13 0:00 postgres: stats collector process
postgres 19014 0.0 0.0 4507232 1656 ? Ss Apr13 0:00 postgres: wal receiver process streaming 0/C000078
root 21818 0.0 0.0 61144 744 pts/1 S+ 04:47 0:00 grep post
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# ps auxw | grep wal
postgres 19014 0.0 0.0 4507232 1656 ? Ss Apr13 0:00 postgres: wal receiver process streaming 0/C000078
root 21820 0.0 0.0 61144 740 pts/1 S+ 04:47 0:00 grep wal
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# yum -y install heartbeat-stonith
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package heartbeat-stonith.x86_64 0:2.1.3-3.el5.centos set to be updated
--> Processing Dependency: heartbeat-pils = 2.1.3-3.el5.centos for package: heartbeat-stonith
--> Processing Dependency: libpils.so.1()(64bit) for package: heartbeat-stonith
--> Running transaction check
---> Package heartbeat-pils.x86_64 0:2.1.3-3.el5.centos set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
heartbeat-stonith x86_64 2.1.3-3.el5.centos extras 348 k
Installing for dependencies:
heartbeat-pils x86_64 2.1.3-3.el5.centos extras 220 k
Transaction Summary
================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 568 k
Downloading Packages:
(1/2): heartbeat-pils-2.1.3-3.el5.centos.x86_64.rpm | 220 kB 00:00
(2/2): heartbeat-stonith-2.1.3-3.el5.centos.x86_64.rpm | 348 kB 00:00
--------------------------------------------------------------------------------
Total 8.3 MB/s | 568 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : heartbeat-pils [ ] 1/2 Installing : heartbeat-pils [# ] 1/2 Installing : heartbeat-pils [###### ] 1/2 Installing : heartbeat-pils [################### ] 1/2 Installing : heartbeat-pils [####################### ] 1/2 Installing : heartbeat-pils [######################## ] 1/2 Installing : heartbeat-pils [################################## ] 1/2 Installing : heartbeat-pils [#################################### ] 1/2 Installing : heartbeat-pils [##################################### ] 1/2 Installing : heartbeat-pils [###################################### ] 1/2 Installing : heartbeat-pils 1/2
Installing : heartbeat-stonith [ ] 2/2 Installing : heartbeat-stonith [## ] 2/2 Installing : heartbeat-stonith [### ] 2/2 Installing : heartbeat-stonith [#### ] 2/2 Installing : heartbeat-stonith [##### ] 2/2 Installing : heartbeat-stonith [####### ] 2/2 Installing : heartbeat-stonith [######### ] 2/2 Installing : heartbeat-stonith [########## ] 2/2 Installing : heartbeat-stonith [########### ] 2/2 Installing : heartbeat-stonith [############# ] 2/2 Installing : heartbeat-stonith [############## ] 2/2 Installing : heartbeat-stonith [############### ] 2/2 Installing : heartbeat-stonith [################ ] 2/2 Installing : heartbeat-stonith [################# ] 2/2 Installing : heartbeat-stonith [################## ] 2/2 Installing : heartbeat-stonith [#################### ] 2/2 Installing : heartbeat-stonith [##################### ] 2/2 Installing : heartbeat-stonith [###################### ] 2/2 Installing : heartbeat-stonith [####################### ] 2/2 Installing : heartbeat-stonith [######################## ] 2/2 Installing : heartbeat-stonith [######################### ] 2/2 Installing : heartbeat-stonith [########################## ] 2/2 Installing : heartbeat-stonith [########################### ] 2/2 Installing : heartbeat-stonith [############################ ] 2/2 Installing : heartbeat-stonith [############################# ] 2/2 Installing : heartbeat-stonith [############################## ] 2/2 Installing : heartbeat-stonith [############################### ] 2/2 Installing : heartbeat-stonith [################################ ] 2/2 Installing : heartbeat-stonith [################################# ] 2/2 Installing : heartbeat-stonith [################################## ] 2/2 Installing : heartbeat-stonith [################################### ] 2/2 Installing : heartbeat-stonith 2/2
Installed:
heartbeat-stonith.x86_64 0:2.1.3-3.el5.centos
Dependency Installed:
heartbeat-pils.x86_64 0:2.1.3-3.el5.centos
Complete!
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# yum -y install heartbeat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package heartbeat.x86_64 0:2.1.3-3.el5.centos set to be updated
--> Processing Dependency: PyXML for package: heartbeat
--> Running transaction check
---> Package PyXML.x86_64 0:0.8.4-4.el5_4.2 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
heartbeat x86_64 2.1.3-3.el5.centos extras 1.8 M
Installing for dependencies:
PyXML x86_64 0.8.4-4.el5_4.2 base 1.0 M
Transaction Summary
================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 2.8 M
Downloading Packages:
(1/2): PyXML-0.8.4-4.el5_4.2.x86_64.rpm | 1.0 MB 00:00
(2/2): heartbeat-2.1.3-3.el5.centos.x86_64.rpm | 1.8 MB 00:00
--------------------------------------------------------------------------------
Total 39 MB/s | 2.8 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : PyXML [ ] 1/2 Installing : PyXML [# ] 1/2 Installing : PyXML [## ] 1/2 Installing : PyXML [### ] 1/2 Installing : PyXML [#### ] 1/2 Installing : PyXML [##### ] 1/2 Installing : PyXML [###### ] 1/2 Installing : PyXML [####### ] 1/2 Installing : PyXML [######## ] 1/2 Installing : PyXML [######### ] 1/2 Installing : PyXML [########## ] 1/2 Installing : PyXML [########### ] 1/2 Installing : PyXML [############ ] 1/2 Installing : PyXML [############# ] 1/2 Installing : PyXML [############## ] 1/2 Installing : PyXML [############### ] 1/2 Installing : PyXML [################ ] 1/2 Installing : PyXML [################# ] 1/2 Installing : PyXML [################## ] 1/2 Installing : PyXML [################### ] 1/2 Installing : PyXML [#################### ] 1/2 Installing : PyXML [##################### ] 1/2 Installing : PyXML [###################### ] 1/2 Installing : PyXML [####################### ] 1/2 Installing : PyXML [######################## ] 1/2 Installing : PyXML [######################### ] 1/2 Installing : PyXML [########################## ] 1/2 Installing : PyXML [########################### ] 1/2 Installing : PyXML [############################ ] 1/2 Installing : PyXML [############################# ] 1/2 Installing : PyXML [############################## ] 1/2 Installing : PyXML [############################### ] 1/2 Installing : PyXML [################################ ] 1/2 Installing : PyXML [################################# ] 1/2 Installing : PyXML [################################## ] 1/2 Installing : PyXML [################################### ] 1/2 Installing : PyXML [#################################### ] 1/2 Installing : PyXML [##################################### ] 1/2 Installing : PyXML [###################################### ] 1/2 Installing : PyXML [####################################### ] 1/2 Installing : PyXML [######################################## ] 1/2 Installing : PyXML [######################################### ] 1/2 Installing : PyXML [########################################## ] 1/2 Installing : PyXML [########################################### ] 1/2 Installing : PyXML [############################################ ] 1/2 Installing : PyXML [############################################# ] 1/2 Installing : PyXML [############################################## ] 1/2 Installing : PyXML [############################################### ] 1/2 Installing : PyXML 1/2
useradd: user hacluster exists
error: %pre(heartbeat-2.1.3-3.el5.centos.x86_64) scriptlet failed, exit status 9
error: install: %pre scriptlet failed (2), skipping heartbeat-2.1.3-3.el5.centos
Installed:
heartbeat.x86_64 0:2.1.3-3.el5.centos
Dependency Installed:
PyXML.x86_64 0:0.8.4-4.el5_4.2
Complete!
[root@tmc_db02 interdev]# rpm -qa | grep heartbeat
heartbeat-pils-2.1.3-3.el5.centos
heartbeat-stonith-2.1.3-3.el5.centos
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# rpm -qa | grep heartbeatyum -y install
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package heartbeat.x86_64 0:2.1.3-3.el5.centos set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
heartbeat x86_64 2.1.3-3.el5.centos extras 1.8 M
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 1.8 M
Downloading Packages:
heartbeat-2.1.3-3.el5.centos.x86_64.rpm | 1.8 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : heartbeat [ ] 1/1 Installing : heartbeat [# ] 1/1 Installing : heartbeat [## ] 1/1 Installing : heartbeat [### ] 1/1 Installing : heartbeat [#### ] 1/1 Installing : heartbeat [##### ] 1/1 Installing : heartbeat [###### ] 1/1 Installing : heartbeat [####### ] 1/1 Installing : heartbeat [######## ] 1/1 Installing : heartbeat [######### ] 1/1 Installing : heartbeat [########## ] 1/1 Installing : heartbeat [########### ] 1/1 Installing : heartbeat [############ ] 1/1 Installing : heartbeat [############# ] 1/1 Installing : heartbeat [############## ] 1/1 Installing : heartbeat [############### ] 1/1 Installing : heartbeat [################ ] 1/1 Installing : heartbeat [################# ] 1/1 Installing : heartbeat [################## ] 1/1 Installing : heartbeat [################### ] 1/1 Installing : heartbeat [#################### ] 1/1 Installing : heartbeat [##################### ] 1/1 Installing : heartbeat [###################### ] 1/1 Installing : heartbeat [####################### ] 1/1 Installing : heartbeat [######################## ] 1/1 Installing : heartbeat [######################### ] 1/1 Installing : heartbeat [########################## ] 1/1 Installing : heartbeat [########################### ] 1/1 Installing : heartbeat [############################ ] 1/1 Installing : heartbeat [############################# ] 1/1 Installing : heartbeat [############################## ] 1/1 Installing : heartbeat [############################### ] 1/1 Installing : heartbeat [################################ ] 1/1 Installing : heartbeat [################################# ] 1/1 Installing : heartbeat [################################## ] 1/1 Installing : heartbeat [################################### ] 1/1 Installing : heartbeat [#################################### ] 1/1 Installing : heartbeat [##################################### ] 1/1 Installing : heartbeat [###################################### ] 1/1 Installing : heartbeat [####################################### ] 1/1 Installing : heartbeat [######################################## ] 1/1 Installing : heartbeat [######################################### ] 1/1 Installing : heartbeat [########################################## ] 1/1 Installing : heartbeat [########################################### ] 1/1 Installing : heartbeat 1/1
Installed:
heartbeat.x86_64 0:2.1.3-3.el5.centos
Complete!
[root@tmc_db02 interdev]# yum -y install heartbeatrpm -qa | grep
heartbeat-2.1.3-3.el5.centos
heartbeat-pils-2.1.3-3.el5.centos
heartbeat-stonith-2.1.3-3.el5.centos
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# useradd -D
bash: useradd: command not found
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# useradd hacluster
bash: useradd: command not found
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# /sbin/useradd hacluster
bash: /sbin/useradd: No such file or directory
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# ls -l | grep useradd
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# /sbin/ifconfig
bond0 Link encap:Ethernet HWaddr 00:1F:1F:B1:DA:30
inet addr:172.29.1.113 Bcast:172.29.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:1fff:feb1:da30/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:809925 errors:0 dropped:0 overruns:0 frame:0
TX packets:78852 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:606764443 (578.6 MiB) TX bytes:21294884 (20.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:1F:1F:B1:DA:30
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:209694 errors:0 dropped:0 overruns:0 frame:0
TX packets:6886 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66545121 (63.4 MiB) TX bytes:1401618 (1.3 MiB)
Interrupt:225 Base address:0x2c00
eth1 Link encap:Ethernet HWaddr 00:1F:1F:B1:DA:30
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:600237 errors:0 dropped:0 overruns:0 frame:0
TX packets:71972 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:540219718 (515.1 MiB) TX bytes:19894462 (18.9 MiB)
Memory:fafe0000-fb000000
eth2 Link encap:Ethernet HWaddr 00:30:48:F5:AD:7B
inet addr:172.29.2.113 Bcast:172.29.2.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fef5:ad7b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:153358 errors:0 dropped:0 overruns:0 frame:0
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49342064 (47.0 MiB) TX bytes:19800 (19.3 KiB)
Memory:faf60000-faf80000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6874 errors:0 dropped:0 overruns:0 frame:0
TX packets:6874 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:643238 (628.1 KiB) TX bytes:643238 (628.1 KiB)
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# uname -n
tmc_db02
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]# [root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# useraddrpm -qa | grep heartbeat
heartbeat-2.1.3-3.el5.centos
heartbeat-pils-2.1.3-3.el5.centos
heartbeat-stonith-2.1.3-3.el5.centos
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# cp /usr/share/doc/heartbeat-2.1.3/authkeys /etc/ha.d/
[root@tmc_db02 interdev]# cp /usr/share/doc/heartbeat-2.1.3/ha.cf /etc/ha.d/
[root@tmc_db02 interdev]# cp /usr/share/doc/heartbeat-2.1.3/haresources /etc/ha.d/
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]#
[root@tmc_db02 interdev]# vi /etc/ha.d./ha.cdff
"/etc/ha.d/ha.cf" "/etc/ha.d/ha.cf" 344L, 10843C#
#There are lots of options in this file. All you have to have is a set
#of nodes listed {"node ...} one of {serial, bcast, mcast, or ucast},
#and a value for "auto_failback".
#
#ATTENTION: As the configuration file is read line by line,
#THE ORDER OF DIRECTIVE MATTERS!
#
#In particular, make sure that the udpport, serial baud rate
#etc. are set before the heartbeat media are defined!
#debug and log file directives go into effect when they
#are encountered.
#
#All will be fine if you keep them ordered as in this example.
#
#
#Note on logging:
#If any of debugfile, logfile and logfacility are defined then they
#will be used. If debugfile and/or logfile are not defined and
#logfacility is defined then the respective logging and debug
#messages will be loged to syslog. If logfacility is not defined
#then debugfile and logfile will be used to log messges. If
'Opensource > Hearbeat' 카테고리의 다른 글
Heartbeat, LVS 를 이용한 고가용성 서버 구축하기 (0) | 2016.05.04 |
---|---|
High Availability Cluster (0) | 2016.05.04 |