Re: Hang when mapping a long name rbd image

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

 



On 12/16/2011 06:21 PM, Eric_YH_Chen@xxxxxxxxxxx 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@xxxxxxxx>
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!

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux