Re: rbd command error "librbd::ImageCtx: error finding header"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,
The "librbd: Error listing snapshots: (95) Operation not supported" issue has been resolved, the root cause is when I deployed the OSD, I just copy /usr/local/bin/* from MON-MDS node to the OSD, not include the /usr/lib/rados-classes. So I re-transfer the /usr/lib/rados-classes folder of MON-MDS node to OSD's, it works after this:

root@~# rbd --image odm-kvm-img -p mypool info
rbd image 'odm-kvm-img':
    size 10240 MB in 2560 objects
    order 22 (4096 KB objects)
    block_name_prefix: rb.0.1217.6b8b4567
    format: 1

BRs,
Dennis

On 04/24/2013 11:39 AM, Dennis Chen wrote:
Hi,

A different error msg after your suggestion --

root@~# rbd -p mypool --image odm-kvm-img info
rbd: error opening image odm-kvm-img: (95) Operation not supported
2013-04-24 11:32:47.757778 7f49949f7780 -1 librbd: Error listing snapshots: (95) Operation not supported

I create the "odm-kvm-img" with this command:
root@~# rbd create odm-kvm-img --size 10240 --pool mypool

BRs,
Dennis

On 04/24/2013 11:28 AM, Chris Hoy Poy wrote:
Hi,

try

# rbd -p mypool --image odm-kvm-img info

cheers
//Chris

----- Original Message -----
From: "Dennis Chen" <xschen@xxxxxxxxxxxxx>
To: ceph-users@xxxxxxxx, "Dennis Chen" <xschen@xxxxxxxxxxxxx>
Sent: Wednesday, 24 April, 2013 11:24:30 AM
Subject: rbd command error "librbd::ImageCtx: error finding header"

Hi list,

I am using a ceph cluster (version 0.56.4) with all nodes (mon, mds,
osd...) deployed in the RHEL 6 distro, the client is based on Ubuntu 12.10.
Now I am confused by a strange issue, seems the issue has been asked
before by google but no a clear answer for it. The specific details as
below--
in the client side, I want to create a rbd image, so I run the commands:

root@~# ceph osd pool create mypool 100 100
pool 'mypool' created

root@~# rbd ls -p mypool
odm-kvm-img

root@~# rbd --image odm-kvm-img info
rbd: error opening image 2013-04-24 10:43:42.800917 7fdb47d76780 -1
librbd::ImageCtx: error finding header: (2) No such file or
directoryodm-kvm-img:
(2) No such file or directory

So I tried those steps followed according the goolged:

root@~# rados ls -p mypool
odm-kvm-img.rbd
rbd_directory
root@~# rbd info odm-kvm-img.rbd
rbd: error opening image 2013-04-24 10:54:19.468770 7f8332dea780 -1
librbd::ImageCtx: error finding header: (2) No such file or directory
odm-kvm-img.rbd: (2) No such file or directory

odm-kvm-img.rbd is showed by 'rados ls' command and it's there, but why
I get an error when run the 'rbd info' command upon odm-kvm-img.rbd?
does anybody can be help about this?

BRs,
Dennis
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux