rbd error: rbd: listing images failed: (2) No such file or directory (500)

出现背景

ceph出现意外断电,或者还原失败什么的场景,可能会出现这样的报错。

出现原因

ceph中的某个rbd损坏

解决方案

使用命令rbd ls -l {poolname}这里吧poolname换成自己的池。

oot@node1:~# rbd ls -l nvme_pool
rbd: error opening vm-101-disk-1: (2) No such file or directory
rbd: error opening vm-116-disk-0: (2) No such file or directory
rbd: error opening vm-116-disk-1: (2) No such file or directory
NAME                        SIZE     PARENT                              FMT  PROT  LOCK
base-301-disk-0               1 MiB                                        2
base-301-disk-0@__base__      1 MiB                                        2  yes
base-301-disk-1             120 GiB                                        2
base-301-disk-1@__base__    120 GiB                                        2  yes
base-301-disk-2               4 MiB                                        2
base-301-disk-2@__base__      4 MiB                                        2  yes
base-996-disk-0               1 MiB                                        2
base-996-disk-0@__base__      1 MiB                                        2  yes
base-996-disk-1             250 GiB                                        2
base-996-disk-1@__base__    250 GiB                                        2  yes

不出意外,会出现error,然后把出现error的rbd删了就行。

使用命令 rbd -p {poolname} rm  {rbdname}

root@node1:~#  rbd -p nvme_pool rm vm-101-disk-1
Removing image: 100% complete...done.
root@node1:~#  rbd -p nvme_pool rm vm-116-disk-1
Removing image: 100% complete...done.
root@node1:~#  rbd -p nvme_pool rm vm-116-disk-0
2023-11-03T16:42:32.999+0800 7fcf0091b6c0 -1 librbd::image::OpenRequest: failed to retrieve initial metadata: (2) No such file or directory
Removing image: 100% complete...done.

 

 

https://foxi.buduanwang.vip/virtualization/pve/kb/3045.html/
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇