All of lore.kernel.org
 help / color / mirror / Atom feed
* Character limit for rbd block device
@ 2012-11-27  0:10 brady
  2012-11-27  0:52 ` Josh Durgin
  2012-11-27  3:00 ` Alex Elder
  0 siblings, 2 replies; 4+ messages in thread
From: brady @ 2012-11-27  0:10 UTC (permalink / raw)
  To: ceph-devel

Hello,
     I have a general question. Is there a specific character limit for 
rbd block devices? In attempting to map a block device with a name that 
is 36 characters or more, I am getting the following error:

rbd map (36+ character name) --user admin --secret /etc/ceph/keyring.key
add failed: (2) No such file or directory

     When using the same command to map a device with 35 characters or 
less, the device is mapped as expected. Any insight into this issue 
would be greatly appreciated.

-Brady

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Character limit for rbd block device
  2012-11-27  0:10 Character limit for rbd block device brady
@ 2012-11-27  0:52 ` Josh Durgin
  2012-11-27 21:32   ` brady
  2012-11-27  3:00 ` Alex Elder
  1 sibling, 1 reply; 4+ messages in thread
From: Josh Durgin @ 2012-11-27  0:52 UTC (permalink / raw)
  To: brady; +Cc: ceph-devel

On 11/26/2012 04:10 PM, brady wrote:
> Hello,
>      I have a general question. Is there a specific character limit for
> rbd block devices? In attempting to map a block device with a name that
> is 36 characters or more, I am getting the following error:
>
> rbd map (36+ character name) --user admin --secret /etc/ceph/keyring.key
> add failed: (2) No such file or directory
>
>      When using the same command to map a device with 35 characters or
> less, the device is mapped as expected. Any insight into this issue
> would be greatly appreciated.
>
> -Brady

Which kernel version are you using?

A year ago there was a 40-char limit on objects names in the kernel's
libceph module, hence the failure at 36 char rbd image names (36 char
name + ".rbd" is the format 1 header object name).

This was extended to a 96-char limit in linux 3.2. There's no real limit
in userspace still (http://tracker.newdream.net/issues/1701).

Josh


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Character limit for rbd block device
  2012-11-27  0:10 Character limit for rbd block device brady
  2012-11-27  0:52 ` Josh Durgin
@ 2012-11-27  3:00 ` Alex Elder
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Elder @ 2012-11-27  3:00 UTC (permalink / raw)
  To: brady; +Cc: ceph-devel

On 11/26/2012 06:10 PM, brady wrote:
> Hello,
>     I have a general question. Is there a specific character limit for
> rbd block devices? In attempting to map a block device with a name that
> is 36 characters or more, I am getting the following error:
> 
> rbd map (36+ character name) --user admin --secret /etc/ceph/keyring.key
> add failed: (2) No such file or directory

We can set the maximum supported length almost arbitrarily high,
although we use the image name in a path component.  Linux limits
such file names to 255 bytes normally.

As Josh said, the limit is higher than what you mention.  Do
you have any thoughts on what constitutes a reasonable limit?
Are you using some sort of naming convention that produces
your 36+ byte image names?

Thanks.

					-Alex

>     When using the same command to map a device with 35 characters or
> less, the device is mapped as expected. Any insight into this issue
> would be greatly appreciated.
> 
> -Brady
> -- 
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Character limit for rbd block device
  2012-11-27  0:52 ` Josh Durgin
@ 2012-11-27 21:32   ` brady
  0 siblings, 0 replies; 4+ messages in thread
From: brady @ 2012-11-27 21:32 UTC (permalink / raw)
  To: Josh Durgin; +Cc: ceph-devel

On 11/26/2012 04:52 PM, Josh Durgin wrote:
> On 11/26/2012 04:10 PM, brady wrote:
>> Hello,
>>      I have a general question. Is there a specific character limit for
>> rbd block devices? In attempting to map a block device with a name that
>> is 36 characters or more, I am getting the following error:
>>
>> rbd map (36+ character name) --user admin --secret /etc/ceph/keyring.key
>> add failed: (2) No such file or directory
>>
>>      When using the same command to map a device with 35 characters or
>> less, the device is mapped as expected. Any insight into this issue
>> would be greatly appreciated.
>>
>> -Brady
>
> Which kernel version are you using?
>
> A year ago there was a 40-char limit on objects names in the kernel's
> libceph module, hence the failure at 36 char rbd image names (36 char
> name + ".rbd" is the format 1 header object name).
>
> This was extended to a 96-char limit in linux 3.2. There's no real limit
> in userspace still (http://tracker.newdream.net/issues/1701).
>
> Josh
>
Thanks, Josh. This information was exactly what we were looking for. 
Looks like a version issue that we will need to work around. Thanks again!

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-27 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27  0:10 Character limit for rbd block device brady
2012-11-27  0:52 ` Josh Durgin
2012-11-27 21:32   ` brady
2012-11-27  3:00 ` Alex Elder

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.