* Hang when mapping a long name rbd image
@ 2011-12-17 2:21 Eric_YH_Chen
2011-12-17 2:40 ` Josh Durgin
0 siblings, 1 reply; 2+ messages in thread
From: Eric_YH_Chen @ 2011-12-17 2:21 UTC (permalink / raw)
To: ceph-devel; +Cc: Chris_YT_Huang
Hi, all:
My ceph version is
ceph version 0.39 (commit:321ecdaba2ceeddb0789d8f4b7180a8ea5785d83)
When I try to map a long name rbd image to device, it would hang for
long time.
For example:
sudo rbd map iqn.2012-01.com.sample:storage.ttttttt --secret
/etc/ceph/secretfile sudo rbd map iqn.2012-01.com.sample:storage.abcdef
--secret /etc/ceph/secretfile
It would not hang at every long name image, however, it only happens
when the image name is very long.
Is it a known issue?
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Hang when mapping a long name rbd image
2011-12-17 2:21 Hang when mapping a long name rbd image Eric_YH_Chen
@ 2011-12-17 2:40 ` Josh Durgin
0 siblings, 0 replies; 2+ messages in thread
From: Josh Durgin @ 2011-12-17 2:40 UTC (permalink / raw)
To: Eric_YH_Chen; +Cc: ceph-devel, Chris_YT_Huang
On 12/16/2011 06:21 PM, Eric_YH_Chen@wistron.com wrote:
> Hi, all:
>
> My ceph version is
> ceph version 0.39 (commit:321ecdaba2ceeddb0789d8f4b7180a8ea5785d83)
>
> When I try to map a long name rbd image to device, it would hang for
> long time.
>
> For example:
> sudo rbd map iqn.2012-01.com.sample:storage.ttttttt --secret
> /etc/ceph/secretfile sudo rbd map iqn.2012-01.com.sample:storage.abcdef
> --secret /etc/ceph/secretfile
The limit was increased in this commit:
commit 224736d9113ab4a7cf3f05c05377492bd99b4b02
Author: Stratos Psomadakis <psomas@grnet.gr>
Date: Thu Nov 10 15:45:37 2011 +0200
libceph: Allocate larger oid buffer in request msgs
ceph_osd_request struct allocates a 40-byte buffer for object names.
RBD image names can be up to 96 chars long (100 with the .rbd suffix),
which results in the object name for the image being truncated, and a
subsequent map failure.
Increase the oid buffer in request messages, in order to avoid the
truncation.
There is still an outstanding issue with the limits in the kernel not
being enforced by userspace tools though
(http://tracker.newdream.net/issues/1701).
>
> It would not hang at every long name image, however, it only happens
> when the image name is very long.
>
> Is it a known issue?
>
> Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-17 2:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-17 2:21 Hang when mapping a long name rbd image Eric_YH_Chen
2011-12-17 2:40 ` Josh Durgin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.