找回密码
 注册
查看: 1253|回复: 0

ceph osd crush rm ssd-smalldata 删除 Error EBUSY: (16) Device or resource busy

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-4-7 10:26:03 | 显示全部楼层 |阅读模式
ceph osd crush rm ssd-smalldata: b1 a1 I! ~9 r" g2 X, _; ^0 U
Error EBUSY: (16) Device or resource busy $ Y# a3 M$ O3 Q; J3 G0 B

4 Y* y0 M3 {5 S) ?; @4 N; b6 \3 A3 v+ Y9 R6 V
未找到解决办法# E: Z( `/ a7 u! j' W2 c# }4 J
& L4 `, I1 d8 {& V
在众多的测试中,
* L( b9 @& d- v* m$ ^# p0 m删除了rule 的操作后出现:
8 l4 ~& {' F$ \[root@compute01 src]# ceph osd crush rule ls
6 @( f( o1 n: F  `0 r0 jreplicated_rule0 B* Z& ?! I. r- n+ H
ssd-bigdata_rule# U8 p/ ]1 X3 O' V4 T  {: |
ssd-smalldata_rule3 ~" [( F6 G7 ]2 n3 i& |) X( M) f
hdd-bigdata_rule; F$ v5 U" S. y) p+ K, \6 y* h
hdd-smalldata_rule
0 r  w! I- q: M7 Z[root@compute01 src]# ceph osd crush rule rm ssd-smalldata_rule
) @' y( F* G# w& H2 s: Z5 X% n[root@compute01 src]# ceph osd crush rule ls/ J2 v2 n6 Q  m8 a
replicated_rule! n' G/ `! [& ^& A
ssd-bigdata_rule
. `# x! ]/ J, Y. whdd-bigdata_rule- R( R$ Y- V3 F2 K9 `- [) ^* ?
hdd-smalldata_rule" A1 t3 _: T* Y8 o" I
[root@compute01 src]# ceph osd crush rule rename
0 m% \7 m$ c, b1 d+ y1 n6 y                                           #rename crush rule <srcname> to <dstname>
! h6 W" `: E. s5 k! M, Y' h
( c+ b2 j! Y+ \$ k8 I4 U* t* n( s" Y$ }9 h4 p5 E
[root@compute01 src]# ceph osd crush rule rename ssd-bigdata_rule ssd
! e* |/ U6 Q& V# _7 a1 ^" [4 j$ T: t" k0 Y0 r0 w, {$ ~' B7 o
[root@compute01 src]# ceph osd crush rule ls. h+ S& d4 E! G) B* g
replicated_rule+ t8 r$ |: F- X1 V; Q7 X% W$ L
ssd
: o+ x; j6 X( s, A. j6 u- r& b0 R6 ?hdd-bigdata_rule
! x( q) X, \3 c' |1 [hdd-smalldata_rule
) ~; b5 g0 g1 D% Y' V6 z. n9 W6 I' K  ]
无辜删除了root。
, _8 y) v$ g& G2 U! t; B) k( w2 d1 a[root@compute01 src]# ceph osd crush rm ssd-smalldata root
9 s5 J2 w" M9 G% EError ENOENT: ancestor item 'root' does not appear in the crush map4 H2 l7 k* v5 G% n. X' f1 ?# T9 h6 v
5 x0 ^; j0 w* N! j  @
[root@compute01 src]# ceph osd crush rm root ssd-smalldata * `: _% v3 q9 ]5 R) i. E$ U
device 'root' does not appear in the crush map
4 v1 _1 q* l6 ^  }; B) W0 P9 e3 d' f
[root@compute01 src]# ceph osd crush rm ssd-smalldata * @: k2 J/ G5 J, H8 a' O
; V( G, B. T+ j# G9 Q
removed item id -5 name 'ssd-smalldata' from crush map; O* o" M2 [3 X7 ^+ \

; Y: ]& ~  W/ H0 Y" B; Y" v
" E. \( K2 P* z1 G+ r8 w[root@compute01 src]# ceph osd tree, o0 q) R4 m3 A
ID  CLASS WEIGHT  TYPE NAME                        STATUS REWEIGHT PRI-AFF
$ Z2 i% ^: [% F$ k8 m+ Q0 G -7       2.00000 root hdd-bigdata                                         
5 @0 l9 p6 k4 v* o% e: O3 N9 U-14       1.00000     host hdd-bigdata-compute01                           7 M! G8 N& E! I8 V  Q
12   hdd 1.00000         osd.12                       up  1.00000 1.00000 ; a5 G: `/ ?: K/ D
-15       1.00000     host hdd-bigdata-compute02                           
& ?! E: B% R& F) q( o 13   hdd 1.00000         osd.13                       up  1.00000 1.00000
" P7 c0 `& Q! q; J3 I9 N! p-16             0     host hdd-bigdata-compute03                           
! r( v  I# v( P5 }( y( x -6       3.00000 root hdd-smalldata                                       
: z" ~. _/ r; O- [- Q7 I) P/ B-17       1.00000     host hdd-smalldata-compute01                         0 U" R  k& H" Y, [+ _: s1 r5 D
  9   hdd 1.00000         osd.9                        up  1.00000 1.00000
! i; U& \% G- _  s-18       1.00000     host hdd-smalldata-compute02                         $ n! k9 r1 T' @
10   hdd 1.00000         osd.10                       up  1.00000 1.00000 8 Y7 @: A9 ^. {4 E3 R; f- a. M
-19       1.00000     host hdd-smalldata-compute03                        
0 d/ \: i6 F1 o2 _6 K  | 11   hdd 1.00000         osd.11                       up  1.00000 1.00000 # D) }& M: i! d4 V
-4       9.00000 root ssd                                                 9 A0 h! E) S0 q3 y6 f
-8       3.00000     host ssd-compute01                                   
: p3 `6 M% s: V1 ^) {  0   ssd 1.00000         osd.0                        up  1.00000 1.00000 . q! ~) }( a8 I, {5 H( `
  1   ssd 1.00000         osd.1                        up  1.00000 1.00000
9 D( @  V; l, o- T9 G. g& l  6   ssd 1.00000         osd.6                        up  1.00000 1.00000 ) G3 I8 x  c4 Z" P3 @; O  {
-9       3.00000     host ssd-compute02                                   : J9 l" P$ [5 v5 w3 X* j
  2   ssd 1.00000         osd.2                        up  1.00000 1.00000
, T- t! V" o+ D" |  3   ssd 1.00000         osd.3                        up  1.00000 1.00000 0 ~+ K; U$ l1 j7 {; X! L
  7   ssd 1.00000         osd.7                        up  1.00000 1.00000 $ F3 m. L, u$ W' V' \# p$ J
-10       3.00000     host ssd-compute03                                   
8 t3 `' a' E! H; b1 r9 g4 T( d  4   ssd 1.00000         osd.4                        up  1.00000 1.00000
% k3 E- R  c5 R5 P$ ~( l1 S, ]. O  5   ssd 1.00000         osd.5                        up  1.00000 1.00000 ; U: b5 ?- b7 P9 ?% [9 a$ @; W" U
  8   ssd 1.00000         osd.8                        up  1.00000 1.00000
1 S6 z9 `' K  ^6 u. H- I8 u7 W4 P5 W -1             0 root default                                      
2 \* f5 w/ e- w- z: a" B+ C( _; e" L9 D. [
# i" ]3 K- g$ y+ I1 _8 z1 G' Y* g" j+ C
问题解决了。
$ {9 T5 R" K3 o- n! D) |( {6 M6 T" S- x5 C* {
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:57 , Processed in 0.018187 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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