找回密码
 注册
查看: 4307|回复: 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/
$ I7 B: C8 x2 d) Y% P+ H+ a. p[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf$ F$ D- V; \% }5 o- c1 ]
[ceph_deploy.cli][INFO  ] Invoked (1.5.39): /usr/bin/ceph-deploy purgedata ceph1 ceph2 ceph3
. f! f& z; u* k7 D/ b[ceph_deploy.cli][INFO  ] ceph-deploy options:& X  ^/ ~: ~- j
[ceph_deploy.cli][INFO  ]  username                      : None
! ]3 Z' {$ ^9 M[ceph_deploy.cli][INFO  ]  verbose                       : False
6 T  Z" o1 |: p% D1 h2 h: c6 c0 E* Q[ceph_deploy.cli][INFO  ]  overwrite_conf                : False8 m, A) L: U, d
[ceph_deploy.cli][INFO  ]  quiet                         : False# i, f: a/ l" f5 a
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fcba8528290>
! H) ^( k8 i; Q1 Q[ceph_deploy.cli][INFO  ]  cluster                       : ceph
: y2 Z% W0 ]% e: }  b[ceph_deploy.cli][INFO  ]  host                          : ['ceph1', 'ceph2', 'ceph3']
+ i" c* |9 L/ K) ^' D3 k[ceph_deploy.cli][INFO  ]  func                          : <function purgedata at 0x7fcba902f1b8>
6 Q, U1 ]9 C( t' ][ceph_deploy.cli][INFO  ]  ceph_conf                     : None8 t) t9 a: B; G+ l  z0 m" i# \
[ceph_deploy.cli][INFO  ]  default_release               : False
6 x8 u' j5 b" f; ]: y[ceph_deploy.install][DEBUG ] Purging data from cluster ceph hosts ceph1 ceph2 ceph3
* }# x1 `' j" _[ceph1][DEBUG ] connected to host: ceph1
$ J) `+ ?$ w/ W0 {. p* k! s2 n+ m[ceph1][DEBUG ] detect platform information from remote host; F$ L- Q2 E6 X1 k
[ceph1][DEBUG ] detect machine type
* {, y4 n5 r5 h$ p[ceph1][DEBUG ] find the location of an executable
+ h) T1 q: _. X- |  [[ceph2][DEBUG ] connected to host: ceph2 4 @8 T5 {6 d& W/ ~8 Z3 P$ R( P
[ceph2][DEBUG ] detect platform information from remote host
4 j/ H2 j! y( ^" H  s[ceph2][DEBUG ] detect machine type
! ?# h) u  _0 @) U, f, a[ceph2][DEBUG ] find the location of an executable/ L8 b" T' l6 F. e
[ceph3][DEBUG ] connected to host: ceph3
6 l" C# A2 k( V2 A9 d2 s* @[ceph3][DEBUG ] detect platform information from remote host
- ]8 ]0 T9 b, }3 E. b1 w8 x[ceph3][DEBUG ] detect machine type! P  x' |" h5 Z% n0 S" X9 N
[ceph3][DEBUG ] find the location of an executable
( G4 c& A3 Q) a' Z2 y[ceph1][DEBUG ] connected to host: ceph1
+ Z2 \% n) T: f0 M[ceph1][DEBUG ] detect platform information from remote host
% ?' m, E" \* J[ceph1][DEBUG ] detect machine type
5 c( K% t( A. T; ?7 R0 x[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core  G0 u9 H/ R* }8 {; X) l% C
[ceph1][INFO  ] purging data on ceph1
/ K+ v  E% d0 P& b( P0 G( Z& m% h2 U[ceph1][INFO  ] Running command: rm -rf --one-file-system -- /var/lib/ceph4 e2 D' f- E$ ]! p$ c# x
[ceph1][INFO  ] Running command: rm -rf --one-file-system -- /etc/ceph/( o+ O3 [! g" n& W9 f3 ^7 c, c
[ceph2][DEBUG ] connected to host: ceph2
' m+ x: Z( ~, w$ \' p6 s+ n; s[ceph2][DEBUG ] detect platform information from remote host
7 b" E& d7 {9 r4 p[ceph2][DEBUG ] detect machine type
% t% {/ S1 w  }8 y% [, \5 u[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core% c: o6 ?1 Z$ ~! i. j
[ceph2][INFO  ] purging data on ceph2
; P( h2 @' C" Y6 c$ R: r( a[ceph2][INFO  ] Running command: rm -rf --one-file-system -- /var/lib/ceph
6 F) d0 p0 o* O' Y" Z# b* ~+ W# c! ~0 w[ceph2][INFO  ] Running command: rm -rf --one-file-system -- /etc/ceph/- q" }2 z+ w) e& y4 t. l. l
[ceph3][DEBUG ] connected to host: ceph3
9 M0 }+ p: X9 W0 V. q6 G5 D[ceph3][DEBUG ] detect platform information from remote host
. k$ u4 e  S9 J) u) q[ceph3][DEBUG ] detect machine type: @7 p7 D% \+ N- V& t& l1 X% i# }
[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core+ k7 g! n4 O8 T$ q: k
[ceph3][INFO  ] purging data on ceph3' ?7 w: l  ~  F6 e  g
[ceph3][INFO  ] Running command: rm -rf --one-file-system -- /var/lib/ceph9 H4 @' ~% \& J. M
[ceph3][INFO  ] Running command: rm -rf --one-file-system -- /etc/ceph/
3 L7 i# Y7 [; \0 [; n, N2 A) K; H. `  t# y: u
ceph删除安装包:* V, |: B5 E! W/ J6 m  V
[root@ceph1 deploy]# ceph-deploy purge ceph1 ceph2 ceph3  Q; P- v5 i6 b- y& c% W5 x
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
9 p+ D" S6 N$ ?: [6 S  N+ [[ceph_deploy.cli][INFO  ] Invoked (1.5.39): /usr/bin/ceph-deploy purge ceph1 ceph2 ceph3' c7 x. r' o, P1 O) N! E+ V
[ceph_deploy.cli][INFO  ] ceph-deploy options:) S; T! S5 D/ Z( c8 b1 O
[ceph_deploy.cli][INFO  ]  username                      : None
6 }$ Z( ~) h5 V8 ^0 ?) q3 e* \[ceph_deploy.cli][INFO  ]  verbose                       : False
3 K/ k* G: n) j, i& b2 N$ F9 T[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
; Z1 G1 N- \. w1 I$ r3 E/ ?1 T[ceph_deploy.cli][INFO  ]  quiet                         : False
/ X. J, j; Z3 K' W% W[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fb83f035368># p0 i2 i' x2 D
[ceph_deploy.cli][INFO  ]  cluster                       : ceph/ y  e. Y8 P/ a
[ceph_deploy.cli][INFO  ]  host                          : ['ceph1', 'ceph2', 'ceph3']
3 B4 O- N! H- n+ x( J# w! V' |[ceph_deploy.cli][INFO  ]  func                          : <function purge at 0x7fb83fb3c140>  N% Y2 F3 C, v+ h6 ?
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
: g+ j8 w8 g" S  m9 F% L[ceph_deploy.cli][INFO  ]  default_release               : False
$ W0 O, R0 W  d1 T6 E) W# {[ceph_deploy.install][INFO  ] note that some dependencies *will not* be removed because they can cause issues with qemu-kvm
5 Z; _' @( @' l9 C! C[ceph_deploy.install][INFO  ] like: librbd1 and librados2
/ x% _( X$ z; l2 z7 l0 J  T" j8 k[ceph_deploy.install][DEBUG ] Purging on cluster ceph hosts ceph1 ceph2 ceph34 o: P% t. l; A, m2 }
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph1 ...+ M# f1 D9 N1 T6 F3 V) u
[ceph1][DEBUG ] connected to host: ceph1 1 F7 H! r5 L0 r4 J: o
[ceph1][DEBUG ] detect platform information from remote host+ h7 T' l8 d/ i3 d  e" m. f
[ceph1][DEBUG ] detect machine type
; [) ~. L! D  k  }9 {4 i, N[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core
+ m/ o  f( u, T& `; E6 Z[ceph1][INFO  ] Purging Ceph on ceph1! [, a2 E* o$ d; `
[ceph1][INFO  ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw
+ q$ N. l! r5 _( g[ceph1][WARNIN] No Match for argument: ceph: P" P  Z) e6 |* A1 L5 P0 m, w
[ceph1][WARNIN] No Match for argument: ceph-release$ v& J) Y% p3 T1 _& q
[ceph1][WARNIN] No Match for argument: ceph-common
4 f( y: P  M. u" M+ U& h9 `" T/ Z[ceph1][WARNIN] No Match for argument: ceph-radosgw. |% e2 t" S6 P9 y8 ~
[ceph1][INFO  ] Running command: yum clean all$ G  ^9 K! d4 m
[ceph1][DEBUG ] Loaded plugins: fastestmirror, priorities
6 q* g# t3 Z$ N& G% ]# d  L5 A[ceph1][DEBUG ] Cleaning repos: base elrepo epel extras updates; F$ P  U3 u% C: j! w7 w
[ceph1][DEBUG ] Cleaning up everything5 z% |* Q& ^! F0 I9 i- ~
[ceph1][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos- h6 x8 V+ S( E; j% ~% w( w
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph2 ...
+ S+ i0 M) v0 u5 a: J# ][ceph2][DEBUG ] connected to host: ceph2
+ C) Z: `$ R$ J4 @8 K3 |% M: j& I2 z% m[ceph2][DEBUG ] detect platform information from remote host
7 ?1 O1 I+ \" }8 V# Z2 B; C[ceph2][DEBUG ] detect machine type
8 E/ T2 h2 X# U: H+ L% [3 x[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core
. o! G/ \9 n3 y) m[ceph2][INFO  ] Purging Ceph on ceph2
8 U9 U& J) c" [# T  k[ceph2][INFO  ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw0 e3 k! b2 m; I6 I5 v- F, G. X
[ceph2][WARNIN] No Match for argument: ceph
: a5 t, v1 E- C1 f[ceph2][WARNIN] No Match for argument: ceph-release
% e- T/ b9 i! p, m7 Y[ceph2][WARNIN] No Match for argument: ceph-common
. m1 E3 J4 W7 c" L[ceph2][WARNIN] No Match for argument: ceph-radosgw
: q& Y' G3 I7 \[ceph2][INFO  ] Running command: yum clean all* E, p! C, a. b" X9 V& q. T
[ceph2][DEBUG ] Loaded plugins: fastestmirror, priorities# v  Q; B! Y: B2 P; M4 u& N$ n
[ceph2][DEBUG ] Cleaning repos: base elrepo epel extras updates
& W# P. V4 y& `! j[ceph2][DEBUG ] Cleaning up everything) C3 P, l2 y1 Q/ E2 u
[ceph2][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
* q$ f/ x' \1 j' I! n7 O[ceph_deploy.install][DEBUG ] Detecting platform for host ceph3 ...
! X# u1 J8 Z: m[ceph3][DEBUG ] connected to host: ceph3
$ C& N5 H* f" E: d- o# e[ceph3][DEBUG ] detect platform information from remote host' r  y  V# ?% }) t$ {0 f
[ceph3][DEBUG ] detect machine type
& g- t8 w+ U- p$ _1 F% T[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.5.1804 Core( @5 V& c% Q. G& A' E' o3 `* x. p
[ceph3][INFO  ] Purging Ceph on ceph3% b5 R- r4 G( n9 k( I: l1 ~5 J
[ceph3][INFO  ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw
! x  U, s% c6 A4 @! Z% e0 M# G[ceph3][WARNIN] No Match for argument: ceph! d' A2 m: z$ f% w) }
[ceph3][WARNIN] No Match for argument: ceph-release
" I3 e$ U1 E- M5 s[ceph3][WARNIN] No Match for argument: ceph-common. ~2 T) G3 I, i% X' r5 h2 w3 o
[ceph3][WARNIN] No Match for argument: ceph-radosgw; a. c" u6 }0 o/ \* i
[ceph3][INFO  ] Running command: yum clean all6 k9 u5 m* e  l6 o
[ceph3][DEBUG ] Loaded plugins: fastestmirror) s& f; R& N4 s, R& i
[ceph3][DEBUG ] Cleaning repos: Ceph-SRPMS Ceph-noarch Ceph-x86 base ceph-aarch64 elrepo epel% e3 N+ @& S. r
[ceph3][DEBUG ]               : extras updates& Y* E- U- j. G2 u$ _! c
[ceph3][DEBUG ] Cleaning up everything
5 g) u+ H) e% Z: s% v. Y2 s" V[ceph3][DEBUG ] Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
7 X, y% P) B& W9 N
2 a1 s$ s" ^: u) ^
* h/ T, U2 b( i
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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