Re: [ceph-users] rbd command error "librbd::ImageCtx: error finding header"
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" To: ceph-us...@ceph.com, "Dennis Chen" Sent: Wednesday, 24 April, 2013 11:24:30 AM Subject: [ceph-users] rbd command error "librbd::ImageCtx: error findingheader" 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@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] rbd command error "librbd::ImageCtx: error finding header"
Hi, This sounds aa lot like https://bugzilla.redhat.com/show_bug.cgi?id=891993. Barry On 04/24/13 04:24, Dennis Chen 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@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] rbd command error "librbd::ImageCtx: error finding header"
specify the -p mypool will create another error msg looks like: root@~# rbd --image odm-kvm-img -p mypool info 2013-04-24 10:44:29.442715 7f8d9134b780 -1 rbd: error opening image librbd: Error listing snapshots: (95) Operation not supportedodm-kvm-img : (95) Operation not supported BRs, Dennis On 04/24/2013 11:29 AM, Michael Lowe wrote: My initial reaction is that you should use -p 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 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@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] rbd command error "librbd::ImageCtx: error finding header"
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" To: ceph-us...@ceph.com, "Dennis Chen" Sent: Wednesday, 24 April, 2013 11:24:30 AM Subject: [ceph-users] 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@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] rbd command error "librbd::ImageCtx: error finding header"
My initial reaction is that you should use -p 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 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@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
[ceph-users] 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@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com