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

易陆发现论坛

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

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

[复制链接]
发表于 2021-7-12 09:39:21 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览
 楼主| 发表于 2021-7-12 09:52:56 | 显示全部楼层
根据提示查询打印的信息
& P* h4 }7 f5 _/ G8 v0 I% H7 R1 O1 `4 g3 x/ n4 H
[root@ceph1 ~]# dmesg | tail
" C( Y  t9 |+ T9 g7 c8 W[10440.462708] rbd: image mytest: image uses unsupported features: 0x3c
3 Z5 J* D* `# V, I% B2 `4 Y2 V* g3 ~这个地方提示的很清楚了,不支持的属性0x3c,0x3c是16进制的数值,换算成10进制是3*16+12=609 c" I2 N. A( d% t4 Q6 A! i0 p" J
60的意思是不支持:
. c( m4 \+ a, {. B4 x
$ D% a5 O( b5 |2 R32+16+8+4 = exclusive-lock, object-map, fast-diff, deep-flatten
  n9 s" Z+ f( t  {- b4 E5 j4 u也就是不支持这些属性,现在动态关闭这些属性
9 b3 f' h; `; f4 e1 c8 `5 K" C/ _关闭这些属性% k. X% X) K7 J5 r1 X7 a$ K( r1 v5 d

$ B8 w. x) S- v2 Z' Nrbd feature disable {poolname}/{imagename} {feature}8 H+ l# b7 S# L( r6 J4 M
如果不想动态的关闭,那么在创建rbd之前,在配置文件中设置这个参数即可
" w: ^4 c. [/ Y. Q0 b  s+ W& i( y# s! e  X- s" X# i
rbd_default_features = 3
3 p' J1 K; h, A& S关于属性支持的,目前到内核4.6仍然只支持
, N$ ^6 c' d+ `- T) {- s% [0 Jlayering,striping = 1 + 2
6 S$ o: R. l0 O8 {+ L  r这两个属性
 楼主| 发表于 2021-7-12 16:00:15 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep fb1cbc25-dc18-4e8f-99f8-5db929569883! Z# B' o3 H( z
volume-fb1cbc25-dc18-4e8f-99f8-5db929569883+ e9 k) r  D9 k$ I
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883+ v+ _8 {5 s7 |" C/ |' Z
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':9 C7 m  k! z2 |0 k+ Y) t) D
        size 80 GiB in 20480 objects/ T7 |( ^6 D7 V' [3 K7 u9 [7 [3 a
        order 22 (4 MiB objects)  b& J0 Z: x: ]* }4 A8 M
        snapshot_count: 0
0 V0 I4 {1 j- L& ^1 u& p        id: 38dd3abc54d56
" q" q( }, C, E+ M9 }7 h, I$ Y        block_name_prefix: rbd_data.38dd3abc54d56
, h& K) g6 k7 ]9 B9 B/ ^. o% O, c        format: 2& N1 l. r( b1 P: n
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
6 B( x; t3 W9 v9 Y  h        op_features: 0 [2 q& n8 {+ W! E0 N" M" ~# N
        flags: ; f$ \9 M# [- }: _2 p
        create_timestamp: Thu Jul  1 16:59:55 2021
; q5 G. C- Z8 H        access_timestamp: Thu Jul  1 16:59:55 2021
/ c' v; L4 @7 g/ a) D# J" F        modify_timestamp: Thu Jul  1 16:59:55 2021( i3 c; N7 F# Y) G
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap2 i( b% B1 y2 P3 @: P! V
        overlap: 4 GiB
7 H$ J6 t# n5 c" Q9 C) F" D4 u[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volume-fb1cbc25-dc18-4e8f-99f8-5db929569883  -p vms% A+ q0 \! i: m) n+ l' S
[root@compute01 ~]# rbd showmapped
8 ?, v2 \) |7 C7 r" ~, W; @[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883
/ N8 d6 g4 o' p7 _rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':/ Q7 Z5 O( Z+ Z( m& l2 V' D0 M
        size 80 GiB in 20480 objects/ M4 h% |3 u3 @& p$ F
        order 22 (4 MiB objects)
1 E+ P! Z- n8 g2 p9 y1 T        snapshot_count: 02 ?7 s$ I( B8 j& ?2 }* Y
        id: 38dd3abc54d56
% u3 u0 @. M3 k9 A  |        block_name_prefix: rbd_data.38dd3abc54d56
% l* c/ `, K( `& i' _) _        format: 27 t% k8 r: Y4 Z+ ?5 O' c3 Q8 `3 }
        features: layering
$ Y9 w2 F: `5 t$ |7 ~        op_features:   h" }- j$ l+ k+ Z: ~
        flags:
8 t; U2 l; n0 O! ]6 W6 P- u7 z  o        create_timestamp: Thu Jul  1 16:59:55 20213 I$ u/ }" U& e3 a- ^
        access_timestamp: Thu Jul  1 16:59:55 2021- x( _( G5 L1 ^- w) H) ]" Y) I
        modify_timestamp: Thu Jul  1 16:59:55 20211 {. c) M7 F. m7 K% A* B. P
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
1 J6 k8 W9 }. [& A        overlap: 4 GiB% p# n" t* H# K, x
[root@compute01 ~]# ceph daemon mon.`hostname -s` config show  | grep rbd_default_features3 U: W% G0 g6 B) Y8 K( h/ ]
    "rbd_default_features": "3",
 楼主| 发表于 2021-7-12 16:08:49 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep 6b44b22d-cd07-429c-883a-1a38ebdf8415
! _6 L+ K  R! U! Yvolume-6b44b22d-cd07-429c-883a-1a38ebdf8415, E& ^3 R% |" e  y6 s* H
[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415  U" \4 |" {3 t; E
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':
) [, f0 Q' m  }% i9 X7 I        size 50 GiB in 12800 objects) a5 ?4 U1 A1 h1 z
        order 22 (4 MiB objects)
  H6 D7 [* X8 x# n0 e        snapshot_count: 0
, A8 C" r, L4 m4 w1 k        id: 2aab40cfafa34
. y: n: L( A4 y1 p: p        block_name_prefix: rbd_data.2aab40cfafa34
  C* Q  p( |+ C# f        format: 2
: \: Y% W' r" Y) n8 n" ~" D$ J* X        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten! x$ r7 g& |& E2 ~
        op_features: ) P3 ^! i! o; F# V+ h' c
        flags:
; u8 F# K% h5 N' H$ m4 F        create_timestamp: Wed Jun 30 12:32:57 2021
1 A& n( p1 }/ r+ l" ^        access_timestamp: Wed Jun 30 12:32:57 2021; e, D! w, O9 m8 @2 ?5 Y# m) `) [% |/ ~
        modify_timestamp: Wed Jun 30 12:32:57 2021
, _/ u2 ^( [5 \* i        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
& P* O. `# z2 b8 H, }1 O        overlap: 4 GiB$ e' V- g( k% g2 K: ~; E- w$ U
[root@compute01 ~]# rbd feature 8 _  `9 x6 F4 \, z
disable  enable   , G  |( ^7 e  w" u/ w9 J/ N
[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
) W% @; J4 w8 t' _, D# N[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415* k4 R: b6 {8 t: N1 V/ z- @
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':7 i5 y7 {# \& @$ J  m" u7 }, U
        size 50 GiB in 12800 objects
1 \0 Q( f: U$ Q# \8 C" K        order 22 (4 MiB objects)
2 l6 z, J2 g! X( z; D- `4 F4 E# j        snapshot_count: 04 f5 N5 D% }) n. p' `1 C! K
        id: 2aab40cfafa344 h$ W! `0 z! p5 Q" L* k6 O
        block_name_prefix: rbd_data.2aab40cfafa34; ?0 J2 t% r' D+ D* N
        format: 23 h/ |) y5 I: {9 Q% y5 W
        features: layering$ O0 n  t9 X: K9 o8 q) x% z0 g
        op_features: " l# L  T2 E6 C- `: ^! M% ^- y
        flags:
* ]8 J" e) ?. j; j& Y( L2 v; d6 V        create_timestamp: Wed Jun 30 12:32:57 2021
6 V5 p3 s' F+ U$ |2 _1 e  ^6 t        access_timestamp: Wed Jun 30 12:32:57 2021
8 S; P+ ~( `: m8 u% h1 n/ i: K        modify_timestamp: Wed Jun 30 12:32:57 2021$ x* e! S- g; v9 Y! R
        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap/ H9 Z# h- D7 D
        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, 2022-7-4 10:24 , Processed in 0.046757 second(s), 25 queries .

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

© 2012-2022 Comsenz Inc.

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