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

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

 



My initial reaction is that you should use -p <pool> because rbd defaults to the rbd pool.  You are in effect trying to get info about mypool/odm-kvm-img from rbd/odm-kvm-img which doesn't exist.

Sent from my iPad

On Apr 23, 2013, at 11:24 PM, Dennis Chen <xschen@xxxxxxxxxxxxx> wrote:

> 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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux