将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 621|回复: 4
收起左侧

计算节点重启后虚机无法正常运行 修复OpenStack集群重启,导致虚拟机启动失败

[复制链接]
发表于 2021-7-12 09:39:21 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览
 楼主| 发表于 2021-7-12 09:52:56 | 显示全部楼层
根据提示查询打印的信息
) s" |  F* j. [' U: y5 r, K9 Y+ v2 F! h1 h
[root@ceph1 ~]# dmesg | tail
- w9 q. G2 I5 |2 D7 ?4 H[10440.462708] rbd: image mytest: image uses unsupported features: 0x3c
$ z$ q/ ?9 X4 m$ z9 g这个地方提示的很清楚了,不支持的属性0x3c,0x3c是16进制的数值,换算成10进制是3*16+12=60
* N# S& j+ ~: V; m, M60的意思是不支持:0 M0 C( Y# N* f

% Z$ a6 @" F4 C- e32+16+8+4 = exclusive-lock, object-map, fast-diff, deep-flatten
$ }; V% E/ V7 g/ z) O, s' R# T) w也就是不支持这些属性,现在动态关闭这些属性
3 Q0 S+ a3 B8 D. c0 }1 |# v, P关闭这些属性/ C( s' q$ j5 q; ]5 u2 r" t

7 H$ d- l$ H( B+ n6 Mrbd feature disable {poolname}/{imagename} {feature}4 _/ e( \7 q7 x/ f" b# y
如果不想动态的关闭,那么在创建rbd之前,在配置文件中设置这个参数即可0 c" }# p/ U; [+ b

0 x& t! t8 F: Xrbd_default_features = 3
' B+ C; P+ W- [: ^" h# B关于属性支持的,目前到内核4.6仍然只支持3 O" d/ D# e* G. w! y9 v8 [
layering,striping = 1 + 2
9 B" _1 }/ b$ @, u6 i/ N' K; }这两个属性
 楼主| 发表于 2021-7-12 16:00:15 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep fb1cbc25-dc18-4e8f-99f8-5db929569883
$ O+ ^1 B! Y" ]  t8 Qvolume-fb1cbc25-dc18-4e8f-99f8-5db929569883! c( d* L& T7 Z2 _! \6 }
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883: r7 B: F3 }. Y. [) c! t7 \' Y" ?5 F
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':
( M9 P. l3 Z: u# C4 v) A8 S7 a        size 80 GiB in 20480 objects" V. G9 c. O3 H7 x% @
        order 22 (4 MiB objects)# W1 Y4 z$ L& D; r6 F
        snapshot_count: 0! Z  A  B0 U7 r* R7 I9 R: k. t
        id: 38dd3abc54d56
* h! `0 h6 e; x' {. ?4 f        block_name_prefix: rbd_data.38dd3abc54d56
* u, P2 A* w1 z/ O        format: 2
: W7 z0 ^; p. `7 L        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten  i* ?+ A+ d! {
        op_features: . }  v* f% r4 i# R: U
        flags: / ]+ L7 R) M* y: Y8 R
        create_timestamp: Thu Jul  1 16:59:55 2021
4 Y/ U7 V+ ?6 E" {6 t        access_timestamp: Thu Jul  1 16:59:55 2021- O; {) ^2 N! W
        modify_timestamp: Thu Jul  1 16:59:55 2021
0 Q( B: f0 B2 G4 _7 i& w* Y        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
) F& {" R; F" v  z6 t        overlap: 4 GiB
' W, B7 v3 m8 `# b3 ^- v$ D6 }[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volume-fb1cbc25-dc18-4e8f-99f8-5db929569883  -p vms! K9 E- u; R) L/ i
[root@compute01 ~]# rbd showmapped , H* d' V# ~% D* k4 d" |
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883" b" u. ~  v! o' c4 n/ @8 H
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':
; b5 r1 J8 V% p2 n        size 80 GiB in 20480 objects
+ `* ~0 B, K( t5 G        order 22 (4 MiB objects)5 @3 X9 x+ @6 M* H- Q
        snapshot_count: 0/ k1 e* q3 r# g3 m: D
        id: 38dd3abc54d56* L; L& F1 c3 M+ p5 [1 d( ~2 o6 V
        block_name_prefix: rbd_data.38dd3abc54d567 g' i/ p4 d5 M; N" p
        format: 2
+ ~7 G* g. w- Z        features: layering
2 ?# `. Q; s4 e8 ^) p. ]/ k        op_features: + `) u. w9 e/ q& }4 N
        flags:
% t5 B  A5 k+ G  w0 V        create_timestamp: Thu Jul  1 16:59:55 2021
0 p' |- V, W  A+ D, k        access_timestamp: Thu Jul  1 16:59:55 2021) x& V" D1 u. B* V# p
        modify_timestamp: Thu Jul  1 16:59:55 2021
9 J4 M. Z8 J, I- u" |* T        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap" w/ g( h! @2 R# N
        overlap: 4 GiB
. x8 ?) T6 R& a3 }6 B* P[root@compute01 ~]# ceph daemon mon.`hostname -s` config show  | grep rbd_default_features& g) f+ @, S' F5 F( Y9 V
    "rbd_default_features": "3",
 楼主| 发表于 2021-7-12 16:08:49 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep 6b44b22d-cd07-429c-883a-1a38ebdf8415
# M8 I7 a/ I! h2 Vvolume-6b44b22d-cd07-429c-883a-1a38ebdf84157 ^0 l* F& q, [& H0 N
[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415- ?, \; A" g% m5 [5 o
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':
9 o2 ]8 c. U, O) V! N6 T        size 50 GiB in 12800 objects
; W% @. e$ R8 I0 U( E6 ~% \) m        order 22 (4 MiB objects)( z+ |& L  \# ~4 P1 h$ ?
        snapshot_count: 03 M5 v& j" k$ j% [
        id: 2aab40cfafa34$ l. H1 Q1 g, f% A! T
        block_name_prefix: rbd_data.2aab40cfafa345 A! U  P) R0 O9 v* d
        format: 2. Z: f% z; m9 e& ~# z6 W4 y
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten! J( h6 i( I+ o. c' o
        op_features: 0 C" K1 R4 s2 p: F3 u
        flags:
- B# n$ _- D! b+ _/ S$ \        create_timestamp: Wed Jun 30 12:32:57 2021) |% Q% Y5 z! p) Q, Y2 O4 H
        access_timestamp: Wed Jun 30 12:32:57 2021; b8 |' N) @' ]+ A$ s
        modify_timestamp: Wed Jun 30 12:32:57 2021
, P- X7 y" u# I        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
$ w% s3 j. e- d4 _. A        overlap: 4 GiB$ I4 v- v. r& T
[root@compute01 ~]# rbd feature
# F, ], C4 n% z: r- ?disable  enable   
( f, i7 e! C& A: l4 T+ b[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
1 c) K  `; Z+ J1 Y$ x1 w# M[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415+ l. y# b6 `, k
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':8 M( ^! e% P; P. f' b
        size 50 GiB in 12800 objects
. T$ a% y4 g( [$ z6 V: ^/ n! y1 Q        order 22 (4 MiB objects)
' W! a! K! C5 p        snapshot_count: 0+ v3 H6 }* b. L7 \
        id: 2aab40cfafa34
* v: o& U5 h8 B: z1 H        block_name_prefix: rbd_data.2aab40cfafa34
9 b( m; v! F! ?+ |* [. `: f        format: 2
0 p* g, ^. R* g' q- [5 y0 X; y        features: layering7 W+ P* `4 Y8 ]$ A
        op_features: 8 v' Z0 Z* Q# R" j( t0 V
        flags:
3 n$ P0 E6 Y! M! d6 T& \2 [        create_timestamp: Wed Jun 30 12:32:57 2021
. Y! q" `( n2 y* K+ Z        access_timestamp: Wed Jun 30 12:32:57 2021- i- \9 z9 h7 B/ ?" Z( P
        modify_timestamp: Wed Jun 30 12:32:57 20215 N+ H' C% z  \5 P! ~5 G% e6 l& s( X9 ~
        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap% Y* {; k9 U# i5 S9 D. y! T
        overlap: 4 GiB
 楼主| 发表于 2021-9-29 09:28:55 | 显示全部楼层
rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volumes-hdd/volume-92d2f06c-fb75-4948-b7ba-211d2c2a43f7     disabled的第二种做法
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-11-28 19:08 , Processed in 0.047435 second(s), 25 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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