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

易陆发现论坛

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

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

[复制链接]
发表于 2021-7-12 09:39:21 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览
 楼主| 发表于 2021-7-12 09:52:56 | 显示全部楼层
根据提示查询打印的信息
( B, r) o, k' w2 I# ~+ u# H+ D
  e5 q4 ?6 c; A[root@ceph1 ~]# dmesg | tail
) v" C  O9 m! e/ \[10440.462708] rbd: image mytest: image uses unsupported features: 0x3c3 F, {/ ?' w( u* y+ N- O. M/ D+ ?
这个地方提示的很清楚了,不支持的属性0x3c,0x3c是16进制的数值,换算成10进制是3*16+12=60! ?$ V9 X, D1 X1 t+ A& a
60的意思是不支持:
; A. I' c. |0 P% ]3 i: k) b9 n4 w9 X
32+16+8+4 = exclusive-lock, object-map, fast-diff, deep-flatten
' v, y: J* A2 G- ]也就是不支持这些属性,现在动态关闭这些属性7 X& h$ `- a* R6 V7 A
关闭这些属性/ z; [( ~# d& x* ?: v8 M

/ N$ O9 ~2 }3 {rbd feature disable {poolname}/{imagename} {feature}: \, f8 l3 E9 s# V
如果不想动态的关闭,那么在创建rbd之前,在配置文件中设置这个参数即可4 z  L3 Q/ v* A- |2 S* v
6 ]* B- I( k' a& N$ l4 B7 m8 T
rbd_default_features = 3; x. ~5 u# ^8 t& C; O
关于属性支持的,目前到内核4.6仍然只支持
2 V& W' i# s9 G  P4 Ilayering,striping = 1 + 2
. }$ [7 u9 t+ d0 k( l2 s5 [这两个属性
 楼主| 发表于 2021-7-12 16:00:15 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep fb1cbc25-dc18-4e8f-99f8-5db929569883
7 @9 `1 \; S) U$ T$ avolume-fb1cbc25-dc18-4e8f-99f8-5db9295698832 q. Z' ?9 q0 c% {. T, [- s
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883
8 z( l5 q$ O6 d* Q; \7 A/ wrbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':: o6 c& Q& u, ]; C
        size 80 GiB in 20480 objects7 y+ k/ c$ _4 Q" b3 E3 p' Q
        order 22 (4 MiB objects)) ^9 w9 g" L, v+ e2 B8 y8 a7 F
        snapshot_count: 06 [9 |' ?1 h* w% f' O
        id: 38dd3abc54d56/ n" z7 ]0 E  H) x' v# n
        block_name_prefix: rbd_data.38dd3abc54d56
/ i( E" j$ ~, `' Z; w        format: 2
5 `% J( k1 @! `( h/ x        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten) Q  Z7 |. F8 D8 k5 X+ g  C
        op_features:
' i# C$ X" J5 P: E0 ]" d        flags: ( J; \, ~9 H, w# d4 Q. T6 n# i
        create_timestamp: Thu Jul  1 16:59:55 2021, O2 Y* r$ K8 q) q+ U/ s8 f5 T
        access_timestamp: Thu Jul  1 16:59:55 2021
* M, ^" L$ Q1 f5 c0 D* M        modify_timestamp: Thu Jul  1 16:59:55 2021& |2 N  Z7 ^1 V0 i! s' w" P
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
2 C; v- Q; n8 q# E        overlap: 4 GiB/ t+ l" V4 ~* F% X# `/ V8 s
[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volume-fb1cbc25-dc18-4e8f-99f8-5db929569883  -p vms
, p6 @+ {3 L) e+ l/ F6 l[root@compute01 ~]# rbd showmapped 6 C3 G/ y2 y- v2 ~
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883
0 K# Y$ e6 w7 v) c: lrbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':% Q# b- ]8 {( i
        size 80 GiB in 20480 objects, A: o3 a% e5 v8 Y( g6 {- I7 N& G" E2 `
        order 22 (4 MiB objects)
1 v. O3 \; T/ p2 x1 `1 Q$ R2 x        snapshot_count: 02 W6 R% K- F8 F/ }0 b; v0 n
        id: 38dd3abc54d56/ d! q- w1 z& f9 E& }+ P$ p4 Y
        block_name_prefix: rbd_data.38dd3abc54d56
1 ^0 Q; ?# Y! D$ p' F; M. M/ O        format: 2
7 ^8 Y4 G2 K, l, s+ a        features: layering- W1 n: ~9 v; t' e5 {* D2 l
        op_features: ( |+ l2 R: F6 |0 t+ E) ?8 L
        flags:
1 `7 ~: m4 |1 V1 _3 a5 t9 U6 P        create_timestamp: Thu Jul  1 16:59:55 20212 }% I7 M8 ~3 I; n
        access_timestamp: Thu Jul  1 16:59:55 2021
" X' v* F/ D, F        modify_timestamp: Thu Jul  1 16:59:55 20212 o2 D; e) [, p8 c
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
  @; f2 a; n5 y$ q1 i0 w        overlap: 4 GiB
, y( y+ O' Y* |' P5 h3 ?2 a[root@compute01 ~]# ceph daemon mon.`hostname -s` config show  | grep rbd_default_features5 b; C3 r! [+ T! ^
    "rbd_default_features": "3",
 楼主| 发表于 2021-7-12 16:08:49 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep 6b44b22d-cd07-429c-883a-1a38ebdf8415. j8 @% N3 g" L/ P7 K# j7 N
volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
3 v$ g0 a" w$ ?: I5 n[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415. G# N9 c9 O& H" L% h
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':( ?, N0 x& a5 V& `
        size 50 GiB in 12800 objects8 g; @6 Q& z) R  u3 C+ r
        order 22 (4 MiB objects): T8 X! _$ C  t# i) b; i! B7 s
        snapshot_count: 01 J0 X, @5 A7 D# c
        id: 2aab40cfafa34
, g" r* ]9 C; Z- d$ ^$ w9 A- o        block_name_prefix: rbd_data.2aab40cfafa348 E  v" C6 {0 u& Q: y! z  P2 r
        format: 2  S: p2 _8 I: L
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten- S- l  k+ f/ @! x* A
        op_features: 1 v9 z2 K2 X, Q" w
        flags:
6 H/ [- [6 o+ ^        create_timestamp: Wed Jun 30 12:32:57 2021; B% C+ J+ [+ L3 ^) O
        access_timestamp: Wed Jun 30 12:32:57 2021
1 u6 p- }5 p8 ?- j& V8 ]9 s. Q2 T        modify_timestamp: Wed Jun 30 12:32:57 2021
' N0 H2 `/ F9 I" I) z        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
* y7 G6 V. t( u, B+ o4 p        overlap: 4 GiB
4 a9 }8 H; _7 C[root@compute01 ~]# rbd feature
+ S3 t# e6 K; Cdisable  enable   
8 }2 V2 j( O* ]& r; n[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-6b44b22d-cd07-429c-883a-1a38ebdf8415( e& |3 B, N1 q$ `
[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
3 C- k) i, o6 {- s& g* w. z; G; arbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':
! |6 `1 C8 w6 {# `- Z$ j8 R) z  ]        size 50 GiB in 12800 objects
' \% M, n& T$ O" _        order 22 (4 MiB objects)
3 b4 |% K, _6 Z# x5 x5 D; f; t% S        snapshot_count: 0/ G( R8 C3 c( Q/ `& v
        id: 2aab40cfafa34
, X7 ^2 H5 [2 t3 a5 `- D0 C, K5 V        block_name_prefix: rbd_data.2aab40cfafa34
3 w: S& l! T& j2 C8 u) t3 z        format: 2
# W  r: V( Y9 Q# b9 e; f9 O        features: layering" H/ v) `" ]) r0 T  L5 k7 Z: A
        op_features:
% [2 ^; X: J- @. V7 {        flags: : d- ?$ ?. U& ]- v9 P& F# b! \7 X. p
        create_timestamp: Wed Jun 30 12:32:57 2021+ [5 E$ b* A1 X2 {) }
        access_timestamp: Wed Jun 30 12:32:57 2021+ F3 F. r. ?, P2 K, a# {
        modify_timestamp: Wed Jun 30 12:32:57 2021
- M2 W0 O+ F8 |& a4 Y0 D' U7 K) U/ l        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap0 Y, ~( K7 l* \- l) P
        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, 2023-2-3 01:15 , Processed in 0.055371 second(s), 24 queries .

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

© 2012-2022 Comsenz Inc.

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