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

易陆发现论坛

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

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

[复制链接]
发表于 2021-7-12 09:39:21 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 3 金钱 才能浏览
 楼主| 发表于 2021-7-12 09:52:56 | 显示全部楼层
根据提示查询打印的信息
8 X* c4 d# ]7 }/ X1 j+ f! |  @3 p9 A" ^$ z( J) }( T4 ^
[root@ceph1 ~]# dmesg | tail: W8 [1 p6 b& G0 U, I9 q) X! E
[10440.462708] rbd: image mytest: image uses unsupported features: 0x3c% L  A4 V& R$ a5 T7 \* Q
这个地方提示的很清楚了,不支持的属性0x3c,0x3c是16进制的数值,换算成10进制是3*16+12=60
/ V' a. V" ~/ |$ C) o2 d# X60的意思是不支持:
5 J# q9 }3 Q1 D- @5 f: A- C$ o& W" L3 ?
32+16+8+4 = exclusive-lock, object-map, fast-diff, deep-flatten
/ x1 _' d2 E1 n也就是不支持这些属性,现在动态关闭这些属性( R2 @3 s$ ]. g1 n
关闭这些属性
0 g0 Y) \; h4 j) n1 H% K$ ?7 c3 v2 g. _2 }
rbd feature disable {poolname}/{imagename} {feature}
) T, i  ]7 u" e- O% ?3 U3 b$ X如果不想动态的关闭,那么在创建rbd之前,在配置文件中设置这个参数即可2 ^/ @, x" `+ B9 K+ U" m0 J  }1 M

; ~4 }+ i- M# V6 ~rbd_default_features = 3' Y7 f: e" |6 M3 Z% X2 q
关于属性支持的,目前到内核4.6仍然只支持
2 R  V1 e- l" W3 `1 Ulayering,striping = 1 + 2
% b! d- n0 |% ^; h3 }2 V- s3 n( L这两个属性
 楼主| 发表于 2021-7-12 16:00:15 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep fb1cbc25-dc18-4e8f-99f8-5db9295698832 n, p) N" Y. B5 K
volume-fb1cbc25-dc18-4e8f-99f8-5db929569883
" L' w% x6 g$ O( U( H7 y( Y  x3 q[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db9295698832 o5 V/ _4 F. m) a: s+ \8 W
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':
/ ^6 Z8 c7 a# }8 y/ V        size 80 GiB in 20480 objects
8 O, H2 X% C* v        order 22 (4 MiB objects)* i- H% z7 Z4 x* }3 h% u3 {
        snapshot_count: 0
# H! X* T2 j( Q8 P        id: 38dd3abc54d56
0 t* ~9 C& G+ D- C- s+ p        block_name_prefix: rbd_data.38dd3abc54d56( }4 w5 p. W  c( Y6 Q6 d
        format: 2
8 h1 i+ G" a+ c3 Z" j        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
" ~) i4 J: g  p, C        op_features:
; A4 s3 V9 D" J4 Z" I        flags: ! L9 @- V& y$ J- R% H. a0 K8 Y
        create_timestamp: Thu Jul  1 16:59:55 2021
; U9 F: Y' T6 Y9 W. P& b, s        access_timestamp: Thu Jul  1 16:59:55 20219 u' s$ M4 n) f$ g; n0 U" @) K: H
        modify_timestamp: Thu Jul  1 16:59:55 2021+ L- r' [" k, A. z2 z# Z
        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap% G6 T) r) F0 U8 Y! J3 ^6 S5 F* E. M
        overlap: 4 GiB$ k2 C3 V1 \! M- b/ @& E8 n+ X7 U" ~( C
[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image volume-fb1cbc25-dc18-4e8f-99f8-5db929569883  -p vms
! [3 i3 }9 O1 }2 ]; n, a% @3 N[root@compute01 ~]# rbd showmapped 8 L, h) ?' x2 |& l
[root@compute01 ~]# rbd -p vms info volume-fb1cbc25-dc18-4e8f-99f8-5db929569883# s6 r9 [: `% N' ?( r$ ^9 e) Z& f
rbd image 'volume-fb1cbc25-dc18-4e8f-99f8-5db929569883':% _- I* a2 T9 S  d" [& w2 R
        size 80 GiB in 20480 objects
7 W1 a5 Y0 k. y: M6 K        order 22 (4 MiB objects)8 |" h9 J- S% u& D0 {! e
        snapshot_count: 0
0 s: d# a. X& X6 u- b. z        id: 38dd3abc54d56* |( U/ Y( v- c
        block_name_prefix: rbd_data.38dd3abc54d56, Q+ H6 f! X. n
        format: 2
/ m) W' K* e- Z        features: layering* D4 q5 P  b: t" ?1 J
        op_features: / G4 _/ B9 ~) V+ x$ _: W
        flags: * a& Z* B2 t7 E( [* L0 X/ O; m! D
        create_timestamp: Thu Jul  1 16:59:55 2021
3 D; K+ X% G4 N$ F        access_timestamp: Thu Jul  1 16:59:55 2021; z; w; K2 N+ }0 Z" }
        modify_timestamp: Thu Jul  1 16:59:55 2021
% }5 P9 X! {9 h1 S6 }0 t  m% J$ i        parent: images/09de3444-8be6-41f3-b91f-6091afdb56b0@snap
3 ^* }1 t! P% x9 F        overlap: 4 GiB  p/ N/ U: {- \' U4 {
[root@compute01 ~]# ceph daemon mon.`hostname -s` config show  | grep rbd_default_features
1 D7 w# S* z0 c; O& z8 Q$ N8 e    "rbd_default_features": "3",
 楼主| 发表于 2021-7-12 16:08:49 | 显示全部楼层
[root@compute01 ~]# rbd -p vms ls |grep 6b44b22d-cd07-429c-883a-1a38ebdf84157 R2 y1 d$ r2 B) ~; x7 T
volume-6b44b22d-cd07-429c-883a-1a38ebdf84157 N& a, [6 C, i, [5 l# T2 Z
[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415
% o8 [; W6 x* krbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':0 I4 N5 t  _0 x1 L
        size 50 GiB in 12800 objects
8 v( n0 U1 H5 o. {. e( t; W6 W4 m        order 22 (4 MiB objects)$ I$ E; N' L9 I2 p/ Y& x
        snapshot_count: 0
: G* y! F/ m- _! x0 w        id: 2aab40cfafa34
. z. m8 a  Z3 t2 n        block_name_prefix: rbd_data.2aab40cfafa34
1 W0 Z+ l, v7 Y- f7 s        format: 24 s3 F( n) U% F) V3 G* K
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten! b% W' T, Q3 x; h) ^- F5 r1 q
        op_features: ; U4 c5 ~% ^1 K  p- r7 F
        flags:
. [# Z& A2 @/ h2 a( u        create_timestamp: Wed Jun 30 12:32:57 2021% ^0 k/ O; r& f3 r9 d
        access_timestamp: Wed Jun 30 12:32:57 2021
8 Y; u( D  j% G1 |- D4 z& h5 j        modify_timestamp: Wed Jun 30 12:32:57 2021
. q+ O5 s3 p) q/ q: K        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap, H' ]: Z7 `4 d, k. l! m- p0 @0 A( T
        overlap: 4 GiB- d( C) w9 {, R+ ?
[root@compute01 ~]# rbd feature
$ e" j5 x9 f1 ]% {disable  enable   & T0 N+ C% q, N
[root@compute01 ~]# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-6b44b22d-cd07-429c-883a-1a38ebdf8415: i4 ?5 @$ H! ^
[root@compute01 ~]# rbd -p vms info volume-6b44b22d-cd07-429c-883a-1a38ebdf8415% a" M- O2 D) Y
rbd image 'volume-6b44b22d-cd07-429c-883a-1a38ebdf8415':
. t4 g8 ~0 d/ Y7 G( W  \        size 50 GiB in 12800 objects
1 i5 z* x& H: g6 B7 `' T8 @" v3 h. \        order 22 (4 MiB objects)8 C' M: K/ ?, C" i* W. a4 q
        snapshot_count: 0/ V) t5 m& n. }) g$ g2 x$ O4 A
        id: 2aab40cfafa34" b, e% ]( r$ D3 P! o
        block_name_prefix: rbd_data.2aab40cfafa34/ A/ I5 L' {9 M3 W* G) w4 u, ]- X
        format: 2
: @" l- k( k2 y9 |% v$ z% X        features: layering' {" j% E9 @# z7 \% p& R% E' c$ _
        op_features: . B3 w' Z( @' N2 G/ {
        flags:
1 D8 F, M/ a7 T% q" [        create_timestamp: Wed Jun 30 12:32:57 20215 A$ @7 N8 d# j# o  j+ ?" p9 j
        access_timestamp: Wed Jun 30 12:32:57 2021
1 S" ~. H; ^* t8 ~% B  V        modify_timestamp: Wed Jun 30 12:32:57 2021, q  r8 ?* P+ Y' A
        parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
, G/ x; @. U, t% a        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-1-31 23:52 , Processed in 0.278373 second(s), 24 queries .

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

© 2012-2022 Comsenz Inc.

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