找回密码
 注册
查看: 4309|回复: 1

ceph运维常用命令总集合

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2020-12-10 20:32:07 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2020-12-10 20:35:42 | 显示全部楼层
[root@ceph1 deploy]# ceph-deploy purgedata ceph1 ceph2 ceph3     删除ceph的文件   /var/lib/ceph   /etc/ceph/
8 g, o6 Z% e9 `[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf# z, j) ~6 e# {) K: J2 J; R. W
[ceph_deploy.cli][INFO  ] Invoked (1.5.39): /usr/bin/ceph-deploy purgedata ceph1 ceph2 ceph3
/ z. A" Z- ]2 h' e. p8 N[ceph_deploy.cli][INFO  ] ceph-deploy options:2 J  Z; n$ h( \" |/ U( }# s
[ceph_deploy.cli][INFO  ]  username                      : None
* e& ?3 ^$ I2 W7 H8 ~0 P[ceph_deploy.cli][INFO  ]  verbose                       : False7 ^) o+ u3 I- Y
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False" G6 _# o# z' ~
[ceph_deploy.cli][INFO  ]  quiet                         : False
0 G; N) P1 j( J* u' S' X[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fcba8528290>' X. h9 u* I( N. J
[ceph_deploy.cli][INFO  ]  cluster                       : ceph/ {2 S7 n6 u7 U- X% U# p+ G
[ceph_deploy.cli][INFO  ]  host                          : ['ceph1', 'ceph2', 'ceph3']5 l3 t9 @9 p9 N( {
[ceph_deploy.cli][INFO  ]  func                          : <function purgedata at 0x7fcba902f1b8>
7 ?8 Q5 e0 }4 M& K! l* o/ J[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
2 ~* m- p$ v3 S: j[ceph_deploy.cli][INFO  ]  default_release               : False. D( X4 C" N7 Z0 s  U, r# {
[ceph_deploy.install][DEBUG ] Purging data from cluster ceph hosts ceph1 ceph2 ceph3
$ L( ?0 z* W* o2 L( ^, d[ceph1][DEBUG ] connected to host: ceph1
/ `' h) k- P3 H[ceph1][DEBUG ] detect platform information from remote host. ~7 `7 c) A% s7 b
[ceph1][DEBUG ] detect machine type
; T! j* D# p/ W+ |[ceph1][DEBUG ] find the location of an executable0 Z3 e! t8 n: Z2 S6 |) Q
[ceph2][DEBUG ] connected to host: ceph2
& @/ F; c- q& R) w4 I2 P6 J[ceph2][DEBUG ] detect platform information from remote host/ ~- @5 h- k) q- N
[ceph2][DEBUG ] detect machine type8 @  E2 {, c1 ?  h
[ceph2][DEBUG ] find the location of an executable
$ z- ~  `% O2 t& Z[ceph3][DEBUG ] connected to host: ceph3 4 J% e) ?( s6 W( X% _
[ceph3][DEBUG ] detect platform information from remote host& }/ w" L' h7 f( s# E
[ceph3][DEBUG ] detect machine type' f4 W4 c8 `5 b+ a& D$ i; S
[ceph3][DEBUG ] find the location of an executable" T0 j( y/ N% }  ~% t5 d
[ceph1][DEBUG ] connected to host: ceph1 - [4 j4 x" @. ^2 p" K# j
[ceph1][DEBUG ] detect platform information from remote host' Z2 U! M2 Z" c5 F
[ceph1][DEBUG ] detect machine type
; R9 c0 Z  W: B1 B' S+ H9 T5 ?6 f[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core
5 N# t& m: z  u( e[ceph1][INFO  ] purging data on ceph17 a* r6 J# |; ~1 i, Z+ l
[ceph1][INFO  ] Running command: rm -rf --one-file-system -- /var/lib/ceph
" X. y0 ~# T( Z& p[ceph1][INFO  ] Running command: rm -rf --one-file-system -- /etc/ceph// P4 `: m9 {: `5 K* k, F/ d/ d* T
[ceph2][DEBUG ] connected to host: ceph2 : K' O! F/ [$ V
[ceph2][DEBUG ] detect platform information from remote host
! d& T" A$ U7 j[ceph2][DEBUG ] detect machine type, a3 I3 P2 ~, V& Y
[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core
( \1 H. ~# k3 X1 \% S[ceph2][INFO  ] purging data on ceph2
5 h9 P2 B+ k& L9 o# n, L[ceph2][INFO  ] Running command: rm -rf --one-file-system -- /var/lib/ceph
, e: J3 I) z- [4 n6 }8 R1 m[ceph2][INFO  ] Running command: rm -rf --one-file-system -- /etc/ceph/6 o9 ?# j+ b( H! |
[ceph3][DEBUG ] connected to host: ceph3
' Y) `- ~1 L; r- f8 R[ceph3][DEBUG ] detect platform information from remote host
7 {1 ~7 w' a9 c) k! t! ~" J; i; \[ceph3][DEBUG ] detect machine type1 Y/ h5 V$ ?1 G
[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core
' U3 C; q! Z) H% O% B6 v9 O; G[ceph3][INFO  ] purging data on ceph3% o/ c0 E& ^9 Z/ z) O
[ceph3][INFO  ] Running command: rm -rf --one-file-system -- /var/lib/ceph
) f1 D/ G% B$ B. U[ceph3][INFO  ] Running command: rm -rf --one-file-system -- /etc/ceph/
+ G5 r2 f4 N# J: H! Y! ?5 m: \! Z1 c5 I( U8 U; S, E2 G) M
ceph删除安装包:# M! h8 x5 u/ w, I3 u1 H
[root@ceph1 deploy]# ceph-deploy purge ceph1 ceph2 ceph3, x4 a+ l9 h; F! b
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
8 ]6 Y: I$ z4 ?1 e6 f- S& E[ceph_deploy.cli][INFO  ] Invoked (1.5.39): /usr/bin/ceph-deploy purge ceph1 ceph2 ceph31 c% I1 ?: z7 V1 B' i0 M8 z
[ceph_deploy.cli][INFO  ] ceph-deploy options:
$ f6 @! C% s: [9 Y[ceph_deploy.cli][INFO  ]  username                      : None
$ _  i/ E1 L) b9 J3 }& y/ y7 k[ceph_deploy.cli][INFO  ]  verbose                       : False$ p& B% X! T/ t3 J+ K2 E! v4 S
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
- g9 l, v; p8 u7 y* s% U[ceph_deploy.cli][INFO  ]  quiet                         : False8 v" O0 [8 ~$ b0 \# F
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fb83f035368>
. |. b9 u, x  v9 v- v; K% }! q[ceph_deploy.cli][INFO  ]  cluster                       : ceph
% U1 a0 C. z7 `* h8 [[ceph_deploy.cli][INFO  ]  host                          : ['ceph1', 'ceph2', 'ceph3']3 T% e* R- X" E, J! C$ n
[ceph_deploy.cli][INFO  ]  func                          : <function purge at 0x7fb83fb3c140>! G+ I& e' k: b& g2 r+ I: I$ U& G
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None0 E  _+ t) Y) K5 {
[ceph_deploy.cli][INFO  ]  default_release               : False. x. V7 V9 C) j" w6 C# c  T
[ceph_deploy.install][INFO  ] note that some dependencies *will not* be removed because they can cause issues with qemu-kvm* h4 V& H  Y) C% T( k9 ?- }, @
[ceph_deploy.install][INFO  ] like: librbd1 and librados2
9 i. r  Z& ]6 \1 \[ceph_deploy.install][DEBUG ] Purging on cluster ceph hosts ceph1 ceph2 ceph34 D- ]. I7 T! |4 f8 G
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph1 ...
( e- G. m3 _$ m' P( b# B- x[ceph1][DEBUG ] connected to host: ceph1
$ k8 S3 _' h9 ~5 T( g0 o[ceph1][DEBUG ] detect platform information from remote host3 z2 [$ b- {) }1 i
[ceph1][DEBUG ] detect machine type
9 G% Q' |8 E! O" U[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core/ w- B% C! E3 u
[ceph1][INFO  ] Purging Ceph on ceph1' Y! P. c( s' I8 n. K: g8 P
[ceph1][INFO  ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw
! T+ F' O( ?. H% k) A$ y0 I[ceph1][WARNIN] No Match for argument: ceph
- N5 ~- a2 Y" o6 n6 }[ceph1][WARNIN] No Match for argument: ceph-release/ _7 d' }# a, B
[ceph1][WARNIN] No Match for argument: ceph-common
3 e2 h" q3 A& ]) w) @" j[ceph1][WARNIN] No Match for argument: ceph-radosgw
5 C: Q) U: @! N8 Z[ceph1][INFO  ] Running command: yum clean all( I# T3 T# X. A7 ]! i0 Q
[ceph1][DEBUG ] Loaded plugins: fastestmirror, priorities* v8 ~9 b, H& u- F, H! ?
[ceph1][DEBUG ] Cleaning repos: base elrepo epel extras updates
3 v& Z* A7 s6 [- R2 w7 F* s5 t[ceph1][DEBUG ] Cleaning up everything
, o% N3 P3 E! N" e' U8 ~( F' _( D( L[ceph1][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos4 z. m8 _6 M' p& M0 W' G, @7 G
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph2 ...
6 y. `( c# R2 W0 n$ ~[ceph2][DEBUG ] connected to host: ceph2 . ~  J- G: _4 g
[ceph2][DEBUG ] detect platform information from remote host4 `! G: i: Y0 M( l$ r7 N  p. E- l
[ceph2][DEBUG ] detect machine type9 p3 m9 n; s# X9 k, b8 {+ _
[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core
2 y/ b" w& ^- G[ceph2][INFO  ] Purging Ceph on ceph2, _% c6 |; M7 v+ M, A7 T1 l6 W
[ceph2][INFO  ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw- D; b, G: h' A
[ceph2][WARNIN] No Match for argument: ceph
, b/ e2 e# R) S. G[ceph2][WARNIN] No Match for argument: ceph-release) s% S+ P$ ?8 X1 w1 L
[ceph2][WARNIN] No Match for argument: ceph-common
9 s1 g9 n) _: Q1 V! X[ceph2][WARNIN] No Match for argument: ceph-radosgw6 Q% d! t" D+ A  D; F7 ?1 L% |3 r
[ceph2][INFO  ] Running command: yum clean all1 _8 Z- t# A6 R+ _9 C: _
[ceph2][DEBUG ] Loaded plugins: fastestmirror, priorities+ }2 ]4 E+ J- S: N/ O  J
[ceph2][DEBUG ] Cleaning repos: base elrepo epel extras updates
+ y( U" K& A, r# L" A5 g6 [[ceph2][DEBUG ] Cleaning up everything
( g" \! o3 _7 x" r  U; c[ceph2][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos. `% f- j' C* `* A) {
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph3 ...+ {  ~5 h9 W5 D% G5 H' H/ X
[ceph3][DEBUG ] connected to host: ceph3
* }9 w$ _, K6 L& E; z/ @[ceph3][DEBUG ] detect platform information from remote host
9 q% v2 ^, Q, K1 N! Q" s[ceph3][DEBUG ] detect machine type
$ j' }, J+ k+ E4 M3 t# V% I[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core7 e4 q( v4 a4 U! O! o6 ~+ p4 [0 g
[ceph3][INFO  ] Purging Ceph on ceph3* \1 e* X& v( b& T8 p7 w6 _
[ceph3][INFO  ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw
) f2 V5 e  |* R* D' B[ceph3][WARNIN] No Match for argument: ceph
% O6 o4 I) X% r4 }! L4 l3 e9 i[ceph3][WARNIN] No Match for argument: ceph-release
4 V0 L# G) }& D" F1 y$ ][ceph3][WARNIN] No Match for argument: ceph-common  D8 f: M( R) H* ^
[ceph3][WARNIN] No Match for argument: ceph-radosgw
' l0 o8 K- n/ g$ q[ceph3][INFO  ] Running command: yum clean all
. K# K$ q6 H% m[ceph3][DEBUG ] Loaded plugins: fastestmirror
  l4 V# n$ H8 K9 ?  |/ u[ceph3][DEBUG ] Cleaning repos: Ceph-SRPMS Ceph-noarch Ceph-x86 base ceph-aarch64 elrepo epel
. F; N  g  p" F[ceph3][DEBUG ]               : extras updates
1 `$ [( C9 w3 g& ~% j[ceph3][DEBUG ] Cleaning up everything( C: w' i6 @5 F
[ceph3][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos9 {0 f% w, b4 S  j2 |2 M1 L8 {! N* \
* H2 e8 F# ^" r7 w6 J% a+ b; m
# `8 R  A8 P, @6 R7 }% P1 Z
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:23 , Processed in 0.028938 second(s), 26 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表