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

易陆发现论坛

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

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

[复制链接]
发表于 2021-7-12 09:39:21 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览
 楼主| 发表于 2021-7-12 09:52:56 | 显示全部楼层
根据提示查询打印的信息' T5 r8 R+ j" Q% Z! o( f7 `
- ^6 V- d9 `& L; K" P
[root@ceph1 ~]# dmesg | tail
" i6 x4 `# t$ O5 U0 ]$ P[10440.462708] rbd: image mytest: image uses unsupported features: 0x3c1 N4 M8 }+ y% b. j, k  g
这个地方提示的很清楚了,不支持的属性0x3c,0x3c是16进制的数值,换算成10进制是3*16+12=60
1 s$ d% \4 j! h% e! T+ u2 E60的意思是不支持:7 _% E- y3 b6 C! h6 F  h  K

% l/ O) o+ B" ~! i! T9 u32+16+8+4 = exclusive-lock, object-map, fast-diff, deep-flatten, p, G) C: }! F  W, A7 w5 x
也就是不支持这些属性,现在动态关闭这些属性
$ Q; c) R& v0 o( N) o关闭这些属性
8 @8 O5 M$ b7 A0 @, G& c0 a
6 [" N7 m  X0 r6 L/ S8 u) Q6 A3 \rbd feature disable {poolname}/{imagename} {feature}  v4 \% i& x7 s1 F
如果不想动态的关闭,那么在创建rbd之前,在配置文件中设置这个参数即可
2 n* V# @' P' O4 C& y4 O  G5 w1 a
1 X. F6 y8 b( }: @) ?1 xrbd_default_features = 3
# ~8 v4 h7 D# F' h关于属性支持的,目前到内核4.6仍然只支持
+ ~1 t* S* S* olayering,striping = 1 + 2/ \* t, `+ d* _% J+ A1 }8 U
这两个属性
 楼主| 发表于 2021-7-12 16:00:15 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep fb1cbc25-dc18-4e8f-99f8-5db929569883
+ U+ k$ R! R3 T4 w! }( bvolume-fb1cbc25-dc18-4e8f-99f8-5db929569883
+ G  z0 a* c3 I0 I. E[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883( z4 L  a" v. G' B; u; ?
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':5 z# b7 G3 E/ g+ k3 g
        size 80 GiB in 20480 objects
; _* o. U% s. B8 |, L        order 22 (4 MiB objects)
9 M( M9 `* r8 ~" v0 A! `        snapshot_count: 0- h( g7 ^4 v5 a
        id: 38dd3abc54d56
' g$ P  ^0 [8 i( j        block_name_prefix: rbd_data.38dd3abc54d56
5 D* l3 g; x$ D7 i        format: 2
3 {/ a* w/ H  g. g        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
; U0 S7 F& M+ w; X9 G. l        op_features: # G# r/ j, G8 f$ w
        flags: & ^8 Y  U; b# _; h- u
        create_timestamp: Thu Jul  1 16:59:55 20216 a$ }: q9 f) ]# D2 H. n8 [8 Z
        access_timestamp: Thu Jul  1 16:59:55 20213 q) H2 A; _. v: J$ w
        modify_timestamp: Thu Jul  1 16:59:55 2021+ f* B. M+ v) u6 c. r
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
7 j" r2 F4 e6 U5 @% c' q! R) P        overlap: 4 GiB
" A8 @2 \! e4 v+ j5 s, X3 g6 P[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volume-fb1cbc25-dc18-4e8f-99f8-5db929569883  -p vms5 u: U; G) z  K8 U# z' Z" C. U6 G
[root@compute01 ~]# rbd showmapped
9 m% U, ?* q( z) r6 W" A& t[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db9295698835 e6 d" b8 a8 Y/ V
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':2 N& |! a) S0 f. ?
        size 80 GiB in 20480 objects) \- I( x' _4 G: x0 P0 C+ v) c
        order 22 (4 MiB objects)
4 C# i( a( r! W4 G2 E' m2 z        snapshot_count: 0
- f$ C% \7 ^3 @7 v  h3 K, v0 S        id: 38dd3abc54d56
4 c' C, A6 I, M7 f+ d        block_name_prefix: rbd_data.38dd3abc54d56
# |6 h; N0 `+ b+ I9 S        format: 2
8 ^' h7 A' Y7 ]/ c; ?: v        features: layering4 x. O, V" Z. ~$ Y2 O9 Z; l
        op_features: $ T6 L7 S# |. @. N: R
        flags: * L9 f7 V- h1 m$ m
        create_timestamp: Thu Jul  1 16:59:55 20213 K6 m' U4 J8 Y/ Z9 a
        access_timestamp: Thu Jul  1 16:59:55 2021" t1 ^+ Y2 S, E$ l
        modify_timestamp: Thu Jul  1 16:59:55 2021
; i* |. E( f+ R! j! o        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap. e1 p+ G# {/ ]# I
        overlap: 4 GiB( F  B( n3 p, }! b+ E/ @' X
[root@compute01 ~]# ceph daemon mon.`hostname -s` config show  | grep rbd_default_features0 ]" L1 ?4 x7 x2 d. C! W2 N
    "rbd_default_features": "3",
 楼主| 发表于 2021-7-12 16:08:49 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep 6b44b22d-cd07-429c-883a-1a38ebdf8415
( n6 o. T0 z; P% l5 E* V! `. E% f: Hvolume-6b44b22d-cd07-429c-883a-1a38ebdf8415
& X3 k1 q. l( i7 c/ d0 e4 e* X[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf84157 Z$ J; e3 ?/ o$ |0 Q
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':
3 P' B# m: {$ p' r        size 50 GiB in 12800 objects+ e' T1 e2 L9 N) F
        order 22 (4 MiB objects)
2 O9 s! o% H0 t; z0 a$ S        snapshot_count: 0
1 B7 R. `/ a$ \9 {        id: 2aab40cfafa34
( t! q/ ~2 v8 d2 P4 q3 _$ G        block_name_prefix: rbd_data.2aab40cfafa34
9 \- O& S- f# j5 Q4 Z        format: 25 x/ W# _$ ?& G8 ]. l$ H# C
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten' E8 }$ w3 i+ ~" f
        op_features:
7 Q% G7 b% U" H. T& C$ Y# F        flags:
. g, t6 O  g. a; e        create_timestamp: Wed Jun 30 12:32:57 2021
! J0 ^  b0 \) z) \3 q        access_timestamp: Wed Jun 30 12:32:57 20219 T  C5 c9 p: L; Y( u; \
        modify_timestamp: Wed Jun 30 12:32:57 2021
" [9 ^1 D) ]: W! l! C& J        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
3 N( ^0 P: r. T- G" i        overlap: 4 GiB3 f( R/ c5 i4 C/ `8 v- i
[root@compute01 ~]# rbd feature
9 C+ Y9 \' j  U4 Q0 f4 n) jdisable  enable   + {) Y* s- I' ]! O* ]
[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
  |+ I' r& _$ d* X, M; ?$ `) f& g[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf84152 k' W1 W6 z9 f% ]- }8 e
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':# q$ a* p4 X: U+ r  @& @
        size 50 GiB in 12800 objects
- p: r; B/ b: i5 L) D* j4 s& x        order 22 (4 MiB objects)
- `+ x; v. T& \8 o* A        snapshot_count: 0& v1 y  C( i9 v8 Q! R5 W2 S2 A
        id: 2aab40cfafa34
9 G% y! J) l; I8 s& f        block_name_prefix: rbd_data.2aab40cfafa34$ }- A% c$ x- ~& r4 e3 I- D
        format: 2
. b# V2 S" O/ b" }' s        features: layering
" J9 A+ q0 ~- W+ d$ c; L7 ?        op_features:
8 ]& P, }# d' ]# G) }$ k        flags:
6 b# ^# s8 b# U$ a  W9 R        create_timestamp: Wed Jun 30 12:32:57 2021. i+ E/ K2 O, q) Z  V# l3 Q
        access_timestamp: Wed Jun 30 12:32:57 2021
1 L1 p! F1 \5 x5 ^0 W        modify_timestamp: Wed Jun 30 12:32:57 20212 N. A) s) }$ c" Z9 v3 j! g* [
        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap2 w' J- i7 ?0 u6 H
        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-10-4 04:09 , Processed in 0.674434 second(s), 24 queries .

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

© 2012-2022 Comsenz Inc.

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