All of lore.kernel.org
 help / color / mirror / Atom feed
* extent rbd ls to show size and free space?
@ 2012-06-18 12:08 Stefan Priebe - Profihost AG
  2012-06-18 12:47 ` Wido den Hollander
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-06-18 12:08 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

Hello list,

are there any plans to extent rbd ls in a way that it shows, image size 
and free space of the pool?

Stefan

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

* Re: extent rbd ls to show size and free space?
  2012-06-18 12:08 extent rbd ls to show size and free space? Stefan Priebe - Profihost AG
@ 2012-06-18 12:47 ` Wido den Hollander
  2012-06-18 13:03   ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 5+ messages in thread
From: Wido den Hollander @ 2012-06-18 12:47 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG; +Cc: ceph-devel@vger.kernel.org

Hi,

 > Hello list,
 >
 > are there any plans to extent rbd ls in a way that it shows, image size
 > and free space of the pool?
 >

You want something like:

$ rbd ls
NAME		SIZE
alpha		50G
beta		400G
charlie		150G

That is possible, but if you want to see the allocation of an image that 
will be harder, since RBD doesn't know which objects have been written 
to and which haven't.

There is also no such thing as "free pool space", you have to look at 
the free cluster space.

But again, if you cluster has X TB of free space and you have multiple 
pools, your usage will depend on the amount of written data and the 
replication level.

If you want to know the usage of the rbd pool I suggest using "rados df".

The RBD tool could however be modified to show the image size if you 
give another flag.

$ rbd --extended ls

Wido

On 06/18/2012 02:08 PM, Stefan Priebe - Profihost AG wrote:
> Stefan
> --
> 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] 5+ messages in thread

* Re: extent rbd ls to show size and free space?
  2012-06-18 12:47 ` Wido den Hollander
@ 2012-06-18 13:03   ` Stefan Priebe - Profihost AG
  2012-06-18 13:10     ` Wido den Hollander
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-06-18 13:03 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel@vger.kernel.org

Am 18.06.2012 14:47, schrieb Wido den Hollander:
> Hi,
>
>  > Hello list,
>  >
>  > are there any plans to extent rbd ls in a way that it shows, image size
>  > and free space of the pool?
>  >
>
> You want something like:
>
> $ rbd ls
> NAME SIZE
> alpha 50G
> beta 400G
> charlie 150G

Yes

> That is possible, but if you want to see the allocation of an image that
> will be harder, since RBD doesn't know which objects have been written
> to and which haven't.

Sure i didn't mean that.

> If you want to know the usage of the rbd pool I suggest using "rados df".
ah OK.

> The RBD tool could however be modified to show the image size if you
> give another flag.
>
> $ rbd --extended ls
That would be great.

Stefan


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

* Re: extent rbd ls to show size and free space?
  2012-06-18 13:03   ` Stefan Priebe - Profihost AG
@ 2012-06-18 13:10     ` Wido den Hollander
  2012-06-18 13:11       ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 5+ messages in thread
From: Wido den Hollander @ 2012-06-18 13:10 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG; +Cc: ceph-devel@vger.kernel.org

On 06/18/2012 03:03 PM, Stefan Priebe - Profihost AG wrote:
> Am 18.06.2012 14:47, schrieb Wido den Hollander:
>> Hi,
>>
>> > Hello list,
>> >
>> > are there any plans to extent rbd ls in a way that it shows, image size
>> > and free space of the pool?
>> >
>>
>> You want something like:
>>
>> $ rbd ls
>> NAME SIZE
>> alpha 50G
>> beta 400G
>> charlie 150G
>
> Yes
>
>> That is possible, but if you want to see the allocation of an image that
>> will be harder, since RBD doesn't know which objects have been written
>> to and which haven't.
>
> Sure i didn't mean that.
>
>> If you want to know the usage of the rbd pool I suggest using "rados df".
> ah OK.
>
>> The RBD tool could however be modified to show the image size if you
>> give another flag.
>>
>> $ rbd --extended ls
> That would be great.

I created an issue in the tracker for it: 
http://tracker.newdream.net/issues/2601

>
> Stefan
>
> --
> 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] 5+ messages in thread

* Re: extent rbd ls to show size and free space?
  2012-06-18 13:10     ` Wido den Hollander
@ 2012-06-18 13:11       ` Stefan Priebe - Profihost AG
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-06-18 13:11 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel@vger.kernel.org

Thanks a lot!

Am 18.06.2012 15:10, schrieb Wido den Hollander:
> On 06/18/2012 03:03 PM, Stefan Priebe - Profihost AG wrote:
>> Am 18.06.2012 14:47, schrieb Wido den Hollander:
>>> Hi,
>>>
>>> > Hello list,
>>> >
>>> > are there any plans to extent rbd ls in a way that it shows, image
>>> size
>>> > and free space of the pool?
>>> >
>>>
>>> You want something like:
>>>
>>> $ rbd ls
>>> NAME SIZE
>>> alpha 50G
>>> beta 400G
>>> charlie 150G
>>
>> Yes
>>
>>> That is possible, but if you want to see the allocation of an image that
>>> will be harder, since RBD doesn't know which objects have been written
>>> to and which haven't.
>>
>> Sure i didn't mean that.
>>
>>> If you want to know the usage of the rbd pool I suggest using "rados
>>> df".
>> ah OK.
>>
>>> The RBD tool could however be modified to show the image size if you
>>> give another flag.
>>>
>>> $ rbd --extended ls
>> That would be great.
>
> I created an issue in the tracker for it:
> http://tracker.newdream.net/issues/2601
>
>>
>> Stefan
>>
>> --
>> 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
>
> --
> 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] 5+ messages in thread

end of thread, other threads:[~2012-06-18 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 12:08 extent rbd ls to show size and free space? Stefan Priebe - Profihost AG
2012-06-18 12:47 ` Wido den Hollander
2012-06-18 13:03   ` Stefan Priebe - Profihost AG
2012-06-18 13:10     ` Wido den Hollander
2012-06-18 13:11       ` Stefan Priebe - Profihost AG

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.