[ceph-users] rbd du

2015-12-17 Thread Allen Liao
Hi all, The online manual (http://ceph.com/docs/master/man/8/rbd/) for rbd has documentation for the 'du' command. I'm running ceph 0.94.2 and that command isn't recognized, nor is it in the man page. Is there another command that will "calculate the provisioned and actual disk usage of all imag

Re: [ceph-users] librbd - threads grow with each Image object

2015-11-20 Thread Allen Liao
at 8:24 PM, Haomai Wang wrote: > What's your ceph version? > > Do you enable rbd cache? By default, each Image should only have one > extra thread(maybe we also should obsolete this?). > > On Sat, Nov 21, 2015 at 9:26 AM, Allen Liao > wrote: > > I am developing a p

[ceph-users] librbd - threads grow with each Image object

2015-11-20 Thread Allen Liao
I am developing a python application (using rbd.py) that requires querying information about tens of thousands of rbd images. I have noticed that the number of threads in my process grow linearly with each Image object that is created. After creating about 800 Image objects (that all share a sing

[ceph-users] rbd unmap immediately consistent?

2015-10-22 Thread Allen Liao
Does ceph guarantee image consistency if an rbd image is unmapped on one machine then immediately mapped on another machine? If so, does the same apply to issuing a snapshot command on machine B as soon as the unmap command finishes on machine A? In other words, does the unmap operation flush all

[ceph-users] How expensive are 'rbd ls' and 'rbd snap ls' calls?

2015-10-12 Thread Allen Liao
How expensive are the calls to list the rbd images (rbd ls) and their snapshots (rbd snap ls). Is the metatdata for what images and snapshots are stored in ceph kept in memory on the MON (in which case the calls would be cheap)? ___ ceph-users mailing li

[ceph-users] rbd map failing for image with exclusive-lock feature

2015-09-23 Thread Allen Liao
Hi all, I'm unable to map a block device for an image that was created with exclusive-lock feature: $ sudo rbd create foo --size 4096 --image-features=4 --image-format=2 $ sudo rbd map foo rbd: sysfs write failed rbd: map failed: (6) No such device or address How do I map the image? I've tried

[ceph-users] rbd du

2015-08-24 Thread Allen Liao
Hi all, The online manual (http://ceph.com/docs/master/man/8/rbd/) for rbd has documentation for the 'du' command. I'm running ceph 0.94.2 and that command isn't recognized, nor is it in the man page. Is there another command that will "calculate the provisioned and actual disk usage of all imag