Re: Poor read performance in KVM

2012-07-16 Thread Josh Durgin
On 07/15/2012 06:13 AM, Vladimir Bashkirtsev wrote: Hello, Lately I was trying to get KVM to perform well on RBD. But it still appears elusive. [root@alpha etc]# rados -p rbd bench 120 seq -t 8 Total time run:16.873277 Total reads made: 302 Read size:4194304 Bandwidth

Re: How to compile Java-Rados.

2012-07-16 Thread Noah Watkins
Ramu, I receive the same error code in my installation when the CEPH_CONF_FILE environment variable contains an invalid path. Could you please verify that the path you are using points to a valid Ceph configuration? Thanks, - Noah On Sun, Jul 15, 2012 at 10:32 PM, ramu

Re: How to compile Java-Rados.

2012-07-16 Thread ramu
Hi Noah, I printed the CONF_FILE and file and states,the printed as following,these are in ClusterStatsTest.java. test: [junit] Running ClusterStatsTest [junit] conffile---/etc/ceph/ceph.conf [junit] state--CONFIGURING [junit] file---/etc/ceph/ceph.conf [junit]

kernel hanged when try to remove a rbd device

2012-07-16 Thread Guan Jun He
Hi, kernel hanged when try to remove a rbd device, detail steps are: Create a rbd image and map it to client; then stop ceph cluster through '/etc/init.d/ceph -a stop'; then in client side, run command 'echo id /sys/bus/rbd/remove',and this command can not return. Checking dmesg, seems

Re: [PATCH] libceph: trivial fix for the incorrect debug output

2012-07-16 Thread Alex Elder
On 07/15/2012 01:45 AM, Jiaju Zhang wrote: This is a trivial fix for the debug output, as it is inconsistent with the function name so may confuse people when debugging. Signed-off-by: Jiaju Zhang jjzh...@suse.de I have been converting these to use __func__ whenever I touch code nearby.

Re: [PATCH] libceph: trivial fix for the incorrect debug output

2012-07-16 Thread Jiaju Zhang
On Mon, 2012-07-16 at 07:55 -0500, Alex Elder wrote: On 07/15/2012 01:45 AM, Jiaju Zhang wrote: This is a trivial fix for the debug output, as it is inconsistent with the function name so may confuse people when debugging. Signed-off-by: Jiaju Zhang jjzh...@suse.de I have been

Re: How to compile Java-Rados.

2012-07-16 Thread Sage Weil
On Mon, 16 Jul 2012, Noah Watkins wrote: Ramu, I receive the same error code in my installation when the CEPH_CONF_FILE environment variable contains an invalid path. Could you please verify that the path you are using points to a valid Ceph configuration? BTW it's CEPH_CONF for the config

obsync crashes when src file is unreadable

2012-07-16 Thread Adrian Fita
Hello. I'm trying to synchronize 2 Amazon S3 buckets, but obsync keeps crashing when it tries to read a certain file. Here is the message displayed when run with --verbose --more-verbose: Mon, 16 Jul 2012 15:24:48 GMT /src-bucket/1356/file Traceback (most recent call last): File

Re: How to compile Java-Rados.

2012-07-16 Thread Noah Watkins
On Mon, Jul 16, 2012 at 8:26 AM, Sage Weil s...@inktank.com wrote: On Mon, 16 Jul 2012, Noah Watkins wrote: Ramu, I receive the same error code in my installation when the CEPH_CONF_FILE environment variable contains an invalid path. Could you please verify that the path you are using points

Re: How to compile Java-Rados.

2012-07-16 Thread Noah Watkins
Disregard that last message. Ok, I'm not sure where else EINVAL gets returned in the configuration path, but I can look into it this evening. I tested the wrappers on a clean install last night and they seem to be working for me. Can you turn on debug logging with CEPH_ARGS (as per Sage's last

Re: ceph status reporting non-existing osd

2012-07-16 Thread Gregory Farnum
On Saturday, July 14, 2012 at 7:20 AM, Andrey Korolyov wrote: On Fri, Jul 13, 2012 at 9:09 PM, Sage Weil s...@inktank.com (mailto:s...@inktank.com) wrote: On Fri, 13 Jul 2012, Gregory Farnum wrote: On Fri, Jul 13, 2012 at 1:17 AM, Andrey Korolyov and...@xdel.ru (mailto:and...@xdel.ru)

Re: ceph status reporting non-existing osd

2012-07-16 Thread Gregory Farnum
ceph pg set_full_ratio 0.95 ceph pg set_nearfull_ratio 0.94 On Monday, July 16, 2012 at 11:42 AM, Andrey Korolyov wrote: On Mon, Jul 16, 2012 at 8:12 PM, Gregory Farnum g...@inktank.com (mailto:g...@inktank.com) wrote: On Saturday, July 14, 2012 at 7:20 AM, Andrey Korolyov wrote: On

Re: ceph status reporting non-existing osd

2012-07-16 Thread Andrey Korolyov
On Mon, Jul 16, 2012 at 10:48 PM, Gregory Farnum g...@inktank.com wrote: ceph pg set_full_ratio 0.95 ceph pg set_nearfull_ratio 0.94 On Monday, July 16, 2012 at 11:42 AM, Andrey Korolyov wrote: On Mon, Jul 16, 2012 at 8:12 PM, Gregory Farnum g...@inktank.com (mailto:g...@inktank.com)

can rbd unmap detect if device is mounted?

2012-07-16 Thread Travis Rhoden
Hi folks, I've made this mistake a couple of times now (completely my fault, when will I learn?), and am wondering if a bit of protection can be put in place against user errors. I mapped a device rbd map, then formatted and and mounted the device (mkfs.extf /dev/rbd0..., mount /dev/rbd0...).

Re: can rbd unmap detect if device is mounted?

2012-07-16 Thread Josh Durgin
On 07/16/2012 12:59 PM, Travis Rhoden wrote: Hi folks, I've made this mistake a couple of times now (completely my fault, when will I learn?), and am wondering if a bit of protection can be put in place against user errors. Yeah, we've been working on advisory locking. The first step is just

Re: can rbd unmap detect if device is mounted?

2012-07-16 Thread Travis Rhoden
Thanks for the response, Josh. Sorry I didn't send in my version info with the initial message. On Mon, Jul 16, 2012 at 6:43 PM, Josh Durgin josh.dur...@inktank.com wrote: On 07/16/2012 12:59 PM, Travis Rhoden wrote: Hi folks, I've made this mistake a couple of times now (completely my

Re: can rbd unmap detect if device is mounted?

2012-07-16 Thread Tommi Virtanen
On Mon, Jul 16, 2012 at 3:43 PM, Josh Durgin josh.dur...@inktank.com wrote: I've made this mistake a couple of times now (completely my fault, when will I learn?), and am wondering if a bit of protection can be put in place against user errors. Yeah, we've been working on advisory locking. The

Re: can rbd unmap detect if device is mounted?

2012-07-16 Thread Josh Durgin
On 07/16/2012 04:37 PM, Tommi Virtanen wrote: On Mon, Jul 16, 2012 at 3:43 PM, Josh Durginjosh.dur...@inktank.com wrote: I've made this mistake a couple of times now (completely my fault, when will I learn?), and am wondering if a bit of protection can be put in place against user errors.

Re: [PATCH] Robustify ceph-rbdnamer and adapt udev rules

2012-07-16 Thread Josh Durgin
On 07/12/2012 12:49 AM, Pascal de Bruijn | Unilogic Networks B.V. wrote: On Wed, 2012-07-11 at 09:28 -0700, Josh Durgin wrote: On 07/11/2012 06:23 AM, Pascal de Bruijn | Unilogic Networks B.V. wrote: Below is a patch which makes the ceph-rbdnamer script more robust and fixes a problem with the

Intermittent loss of connectivity with KVM-Ceph-Network (solved)

2012-07-16 Thread Australian Jade
Hello, Just want to share my recent experience with KVM backed by RBD. Ceph appears to be not at fault but I post it here for others to read as my configuration is something other users of Ceph may configure. Over last three weeks I was battling some elusive issue: KVM backed by RBD

Re: can rbd unmap detect if device is mounted?

2012-07-16 Thread Travis Rhoden
On Mon, Jul 16, 2012 at 7:37 PM, Tommi Virtanen t...@inktank.com wrote: [0 tv@dreamer ~]$ sudo mount /dev/loop0 /mnt [0 tv@dreamer ~]$ sudo losetup -d /dev/loop0 loop: can't delete device /dev/loop0: Device or resource busy [1 tv@dreamer ~]$ sudo umount /mnt [0 tv@dreamer ~]$ sudo losetup -d

Re: How to compile Java-Rados.

2012-07-16 Thread ramu
Hi Noah, I hardcoded CONF_FIL=/etc/ceph/ceph.conf; and commented //System.getProperty(CEPH_CONF_FILE); in RadosTestUtils.java. And run the ant and after run ant test,but iam getting same error. Buildfile: /home/vu/java-rados/build.xml makedir: compile-rados: compile-tests: [javac]