crm status
; R2 G9 a9 ~- [' n( e) m-bash: crm: command not found
( h8 D6 e1 }0 G" p4 a' _( P' @% h0 A4 t解决办法:
+ L( q0 d- k+ ]1 D
6 i7 r" s9 o; f+ {! c/ Z7 @' G- B0 t5 U
) \8 U: v0 O4 L% a4 J$ p' B5 Z* b. d' F2 i( w7 B1 Q
) E3 R5 ]2 d( I9 d2 u2 D) Z% i$ B" A+ g" \
; H0 N5 c( m) b) O9 u cat network\:ha-clustering\:Stable.repo
+ g- g: u' w7 F5 P& G[network_ha-clustering_Stable]# d1 x. a7 ~- ?' i; D9 P
name=Stable High Availability/Clustering packages (CentOS_CentOS-7)
* s7 E8 D+ O1 m. n9 Ktype=rpm-md4 e: y" L% z; r9 ]- k! u
baseurl=http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/4 i0 M9 m5 f, w/ p) g0 c
gpgcheck=1
% k8 P4 }2 A6 s. tgpgkey=http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/repodata/repomd.xml.key4 |& b/ f; E/ X2 s0 L1 q
enabled=1 / c8 ^" n# n O* n
( g Z; A3 ~( j* ~# G& J( u$ @
; Q: j+ R: `8 D( r; W5 E) |修改配置文件:" g+ y$ C8 k9 X% C3 {- T: F a/ i
* G9 Y" f4 c8 Q4 C* V8 e: t; Z
2 ? e; h M t' x vim /etc/yum.repos.d/network\:ha-clustering\:Stable.repo
* B" Z* M* k9 x' F. @name=Stable High Availability/Clustering packages (CentOS_CentOS-7)
5 R! f2 c. ?( l y/ X; l1 ^type=rpm-md' P& B- Y5 J7 P% m) l2 P8 e
baseurl=http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/
8 O6 Q8 T5 {" e2 x4 Fgpgcheck=0" S" a) C8 ~+ B+ f! d7 g
gpgkey=http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-7/repodata/repomd.xml.key
8 x/ T" j; o: t+ ~; R+ @9 Renabled=1
4 o) e. C* }: A4 A0 {
- X8 ?9 [& {4 V; V% k# `4 H& S/ y! q6 C
yum clean all
# ^: L/ b1 w. p# T6 R7 ?
" o; m s' j/ d- Myum install -y crmsh- S% }/ K$ {& B/ v7 H# u5 J
: t7 Z/ b p1 c
6 A# _* ]' F. \; q R* V
|