|
|
ceph osd crush rm ssd-smalldata9 r, U8 _/ B) G* [% d: _: B
Error EBUSY: (16) Device or resource busy 5 x# ^8 V- i3 E7 a5 m+ V& L E
$ q2 S+ C% B- h } x% y$ k
: [% I S( @7 @6 {( F未找到解决办法' h/ J7 B; d" |; Y0 M
2 h% ~& @) A) `( J$ h在众多的测试中,! @; f1 N" B" e& L/ L% ~
删除了rule 的操作后出现:4 W% L. c- `4 n) l; O, a9 u# {7 `
[root@compute01 src]# ceph osd crush rule ls
7 c. l4 k$ m( F- f* D: x' ~replicated_rule# |: z7 t; I2 N# {3 c( ^
ssd-bigdata_rule
( p% i4 I8 s% ~: m; Q7 r- ?ssd-smalldata_rule
) f1 T# h9 U; f+ _hdd-bigdata_rule! M$ C {) i" b/ i
hdd-smalldata_rule
$ C" r9 f- p3 e; v8 ~" Y[root@compute01 src]# ceph osd crush rule rm ssd-smalldata_rule' }. ]/ U5 W0 h- v
[root@compute01 src]# ceph osd crush rule ls$ H H& @8 C9 J5 h7 u7 _1 B7 X8 z6 d
replicated_rule
' |* b9 ^" e: a; O. cssd-bigdata_rule1 C# O( x" r4 T$ r6 p
hdd-bigdata_rule) h- q+ E/ d) m9 i0 n8 v
hdd-smalldata_rule
- E6 d: ^8 _# b3 i[root@compute01 src]# ceph osd crush rule rename
+ F# i1 \9 K, I( { #rename crush rule <srcname> to <dstname>
* I( m- A# D" b* |$ w
2 H& a" ^! y1 k4 O' @3 W: N1 W/ \# \8 c, [0 l4 T: j/ r1 r
[root@compute01 src]# ceph osd crush rule rename ssd-bigdata_rule ssd
) G2 G4 ^7 E# v' O
- Y* a# z* X; M" M2 O[root@compute01 src]# ceph osd crush rule ls
2 y* [9 k: x" h: {0 d Treplicated_rule! b9 x `2 r/ A) @- q
ssd3 b6 e# a5 t! @" q# W) I
hdd-bigdata_rule& g7 B! [( y; W! K1 h
hdd-smalldata_rule, ]$ h4 [$ t# r& K
! i5 i4 F4 K: l& g: C0 L
无辜删除了root。- l9 C) k- f9 x5 b
[root@compute01 src]# ceph osd crush rm ssd-smalldata root
4 r/ j; \" P0 iError ENOENT: ancestor item 'root' does not appear in the crush map
4 |. J. c4 R R1 _ {6 o
i" U: ~) d& f[root@compute01 src]# ceph osd crush rm root ssd-smalldata 4 \* [) w, o9 J* F" o1 S0 Y% X' |
device 'root' does not appear in the crush map
$ W; z3 e1 k3 N0 ]( r6 `- p) Q3 C) F' W
[root@compute01 src]# ceph osd crush rm ssd-smalldata
3 o f# z k# J+ I$ \
+ E5 G3 {9 u; G0 wremoved item id -5 name 'ssd-smalldata' from crush map) d; v/ {- U w' M
# [3 K( D. ?9 ^: w$ C6 s) g
8 _9 T: C, Z, J- T6 ], E[root@compute01 src]# ceph osd tree" ^+ `/ U% D2 ~* m( [
ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
1 k7 l& r- M8 ~" X1 A' ^5 f+ [$ t1 Z -7 2.00000 root hdd-bigdata
) ?2 w5 M9 v: ?# D P8 _-14 1.00000 host hdd-bigdata-compute01 - c% ]2 l" B4 p6 h, M9 T! G0 B
12 hdd 1.00000 osd.12 up 1.00000 1.00000
/ E+ t' Y4 [- o-15 1.00000 host hdd-bigdata-compute02
- @6 B; O" o5 z9 X 13 hdd 1.00000 osd.13 up 1.00000 1.00000 7 p# P, Q+ t0 W( D. v8 l9 z) }9 \
-16 0 host hdd-bigdata-compute03 ' ~) _1 x0 }0 h4 P* }) Y l
-6 3.00000 root hdd-smalldata 4 l* _7 K1 w# D6 G
-17 1.00000 host hdd-smalldata-compute01
: c- T* r* O7 _9 W. _) X! S 9 hdd 1.00000 osd.9 up 1.00000 1.00000
7 F1 \1 o% f8 l7 m-18 1.00000 host hdd-smalldata-compute02 Z( g9 T$ W4 \( v
10 hdd 1.00000 osd.10 up 1.00000 1.00000
* J# | q$ d- q# m7 `. N' o-19 1.00000 host hdd-smalldata-compute03
$ W6 E% U+ P( t2 f 11 hdd 1.00000 osd.11 up 1.00000 1.00000
, P8 e8 Z l- k4 q0 r, m3 W -4 9.00000 root ssd & Z- e4 O+ N; B4 _1 R, }
-8 3.00000 host ssd-compute01
6 ]6 w! |. z; D 0 ssd 1.00000 osd.0 up 1.00000 1.00000
- d' C! p! T3 W( Q 1 ssd 1.00000 osd.1 up 1.00000 1.00000
7 ]! k3 T: \; M) M 6 ssd 1.00000 osd.6 up 1.00000 1.00000 ' x* B0 L9 e2 W K4 J0 a( k
-9 3.00000 host ssd-compute02
: L4 J$ C- O, e" y6 r 2 ssd 1.00000 osd.2 up 1.00000 1.00000 . J7 c# j5 g# }" @2 l/ t
3 ssd 1.00000 osd.3 up 1.00000 1.00000 ' z+ m3 }+ J: [
7 ssd 1.00000 osd.7 up 1.00000 1.00000 ) y6 |0 J: k% o% z$ i1 G9 L
-10 3.00000 host ssd-compute03 ' g3 t( z4 A6 q- R
4 ssd 1.00000 osd.4 up 1.00000 1.00000
# I; \( P% d" h% e$ k- z7 G+ t 5 ssd 1.00000 osd.5 up 1.00000 1.00000 % q7 K9 `5 u$ C. D' Q
8 ssd 1.00000 osd.8 up 1.00000 1.00000
* P4 V+ J9 z1 W/ W: w" c$ k C -1 0 root default
$ G) D( R, m+ c! `% s
: p; @4 R, V9 Y( m3 c( g) U
9 ~ h) [* S/ m& o7 u3 R! Q问题解决了。. L; z. p4 k5 Z9 S' Z
% @) ^- m; ?% ~ |
|