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

易陆发现论坛

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

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

[复制链接]
发表于 2021-7-12 09:39:21 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览
 楼主| 发表于 2021-7-12 09:52:56 | 显示全部楼层
根据提示查询打印的信息; c% n- l9 @' v& r; ]  T$ I" ^% ~, n0 {

- A: f( P- \* f/ _( o6 ~[root@ceph1 ~]# dmesg | tail
+ f3 _1 L/ v- S- x5 `) v[10440.462708] rbd: image mytest: image uses unsupported features: 0x3c
9 i4 o" g8 A( j4 C& a8 |这个地方提示的很清楚了,不支持的属性0x3c,0x3c是16进制的数值,换算成10进制是3*16+12=60
6 A* ?+ E+ v# h  w60的意思是不支持:  r- c% u! t- v* {+ M2 F/ _

7 Z9 c2 `3 p/ R1 g$ @32+16+8+4 = exclusive-lock, object-map, fast-diff, deep-flatten
! m: r* y# X) G$ {# P也就是不支持这些属性,现在动态关闭这些属性
6 r2 c( \6 H0 L* v) Y关闭这些属性
" q! ]- ~+ q. x+ [3 ]- f4 V- P+ Z; q5 z  k9 v
rbd feature disable {poolname}/{imagename} {feature}# V. I  I4 t9 Q! d. v
如果不想动态的关闭,那么在创建rbd之前,在配置文件中设置这个参数即可
( F3 n- K; C; O0 g' {( e. b& Y3 ~8 _1 r* W
rbd_default_features = 3) d0 D5 w* U# u! z, f, h5 z
关于属性支持的,目前到内核4.6仍然只支持$ {/ _* E  B% f# c$ B7 [4 M0 W
layering,striping = 1 + 2) S  O" j6 N& |$ L+ [
这两个属性
 楼主| 发表于 2021-7-12 16:00:15 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep fb1cbc25-dc18-4e8f-99f8-5db929569883/ Y: {; ~% s( [
volume-fb1cbc25-dc18-4e8f-99f8-5db9295698831 S9 v: u2 p  J/ X6 K  |. D
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883
) x0 w; T. g2 f5 Arbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':
, k7 l; t- d+ d: Y) Y        size 80 GiB in 20480 objects
( W6 p: Y5 E: g! r5 L        order 22 (4 MiB objects)& B+ I0 E- o7 j
        snapshot_count: 0$ Q, V& B! g& u. c
        id: 38dd3abc54d56$ Q3 x5 ]- w: Q9 }* G
        block_name_prefix: rbd_data.38dd3abc54d56
' F* g% @! C, L$ |        format: 2
( f- x: I7 b. n" Y        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
) M" [  A+ r% H7 M$ A5 j0 l- F        op_features:
( g9 R+ X0 v7 ]0 u. w5 w        flags: $ I' h0 ~$ I% p& X7 n0 A4 F
        create_timestamp: Thu Jul  1 16:59:55 2021) g" P" }6 Q5 o1 s: Z: g
        access_timestamp: Thu Jul  1 16:59:55 2021
! N, h& D4 w, f9 ?, A        modify_timestamp: Thu Jul  1 16:59:55 20210 U( m( u9 T4 R. _" D1 y" N; _
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
) l0 b' V! U* B        overlap: 4 GiB# H+ O* ~; N" |' Q: z( u& v
[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volume-fb1cbc25-dc18-4e8f-99f8-5db929569883  -p vms" x2 s1 {. y# b( y
[root@compute01 ~]# rbd showmapped , {5 R0 P9 S* q4 h( Q$ C4 r" T
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883
' [6 C, D( x) ~6 B2 I1 brbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':$ o* n8 q0 j3 G/ F8 X
        size 80 GiB in 20480 objects( [. H7 j  q2 _# p! {  a
        order 22 (4 MiB objects)- N( e1 T6 H/ j7 O
        snapshot_count: 04 b0 |7 ]+ j3 {9 t  f$ o9 n3 f9 {
        id: 38dd3abc54d56# k) O. V# g+ E/ e
        block_name_prefix: rbd_data.38dd3abc54d565 f2 Z7 C$ j. r/ c" o
        format: 2" A( c5 \( L) x/ e
        features: layering$ S9 {. ?# G5 D6 o
        op_features: % Z/ }8 `7 H+ H; d8 _9 p5 s9 l
        flags: 8 ]8 j2 S6 i/ E! {' {) i; r+ e1 J
        create_timestamp: Thu Jul  1 16:59:55 2021
- n& f8 S; g+ Z; v" N3 G        access_timestamp: Thu Jul  1 16:59:55 20211 U0 E1 G3 ]* `/ b! j3 Q0 x" V
        modify_timestamp: Thu Jul  1 16:59:55 2021
  @- a6 z! b+ \% S* m        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap" L4 v) }$ [; j1 i2 S" `1 p1 M
        overlap: 4 GiB
$ g% z2 e; J% n) O[root@compute01 ~]# ceph daemon mon.`hostname -s` config show  | grep rbd_default_features
* c% J" c3 [4 D  A    "rbd_default_features": "3",
 楼主| 发表于 2021-7-12 16:08:49 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep 6b44b22d-cd07-429c-883a-1a38ebdf8415
! A" E9 e- F: E) ^; s* W: vvolume-6b44b22d-cd07-429c-883a-1a38ebdf84150 c7 c: H$ j" a  M
[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415$ k: f9 O* n. r/ \
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':. o9 \4 N7 `2 r3 j3 {$ R& G
        size 50 GiB in 12800 objects8 `* F$ x  Y! L# n1 D6 g
        order 22 (4 MiB objects)  D' b/ K, L1 G5 t( ^
        snapshot_count: 0
0 H2 M$ R0 D' X" @2 @        id: 2aab40cfafa346 b- L( I/ y7 }9 Z9 {; o8 k
        block_name_prefix: rbd_data.2aab40cfafa349 P. {; K. ]6 k! e; U
        format: 2
5 x3 L$ I% }# ~0 t  F        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten: z  e4 @$ o4 D  t% v
        op_features:
9 ?7 t! J$ k& Y* c- p0 Q        flags: 6 L6 n4 {: w6 d  J/ A
        create_timestamp: Wed Jun 30 12:32:57 2021; r, M- f# g$ D. E
        access_timestamp: Wed Jun 30 12:32:57 2021
9 Z! p& G3 b# c$ s: A4 v6 R' X        modify_timestamp: Wed Jun 30 12:32:57 20215 X9 W$ i/ l% ]6 g5 l/ A! P& r
        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap5 b' C6 L7 @2 w0 U/ d4 j
        overlap: 4 GiB
6 t3 ^* C& K6 U$ O% q, M[root@compute01 ~]# rbd feature
4 Q* u+ {5 V+ o; Y4 Zdisable  enable   
- e6 m6 V' w& K[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
0 y/ ?( N2 A8 _6 }: {4 z4 V[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
, q& [3 j  [; p; Rrbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':0 L  P4 f2 ^0 H# Z& n0 d
        size 50 GiB in 12800 objects
! @- @, `+ ]' {; K        order 22 (4 MiB objects)# r- Y1 l' I) e
        snapshot_count: 0
0 e& }) k& \8 h. u5 r5 Y- H        id: 2aab40cfafa34
" _9 i, }7 {6 |+ f, R        block_name_prefix: rbd_data.2aab40cfafa34
# Z/ s) a0 v9 @5 N+ @$ k8 B        format: 2. I4 @9 j4 U5 R4 G: R0 g+ i$ p! A0 q
        features: layering
" k3 K6 y. O* A        op_features:
# ]4 m+ S1 _/ j( C. I: a; [        flags:
" M2 d# z0 z5 l% V5 u        create_timestamp: Wed Jun 30 12:32:57 20212 @  u+ P0 L# u, }
        access_timestamp: Wed Jun 30 12:32:57 2021. b% {. N7 O9 ]0 f' Z- D/ j+ q6 G  U
        modify_timestamp: Wed Jun 30 12:32:57 2021
" U9 `8 w( f1 a+ x! P( H        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
0 N3 q4 i8 Y6 u0 h, c9 V, }        overlap: 4 GiB
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-9-27 03:05 , Processed in 0.046947 second(s), 25 queries .

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

© 2012-2022 Comsenz Inc.

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