Skip to contentSkip to conversation

extent rbd ls to show size and free space?

DISCUSSION Stefan Priebe - Profihost AG 2 participants 5 messages Jun 18, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi,

Quoted 5 lines

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

Quoted 5 lines · Stefan Priebe - Profihost AG

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

#2 lore raw

Am 18.06.2012 14:47, schrieb Wido den Hollander:

Quoted 8 lines

Hi,

Quoted 5 lines

Hello list,

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

Quoted 7 lines

You want something like:

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

Yes

Quoted 3 lines

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.

Quoted 1 line

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

ah OK.

Quoted 4 lines

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

#3 lore raw
Quoted 25 lines · Stefan Priebe - Profihost AG

Am 18.06.2012 14:47, schrieb Wido den Hollander:

Quoted 8 lines

Hi,

Quoted 5 lines

Hello list,

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

Quoted 7 lines

You want something like:

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

Yes

Quoted 3 lines

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.

Quoted 8 lines
Quoted 1 line

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

ah OK.

Quoted 4 lines

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

Quoted 7 lines

Stefan

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

#4 lore raw

Thanks a lot!

Am 18.06.2012 15:10, schrieb Wido den Hollander:

Quoted 52 lines · Stefan Priebe - Profihost AG
Quoted 28 lines

Am 18.06.2012 14:47, schrieb Wido den Hollander:

Quoted 9 lines

Hi,

Quoted 3 lines

Hello list,

are there any plans to extent rbd ls in a way that it shows, image

size

Quoted 2 lines

and free space of the pool?

Quoted 7 lines

You want something like:

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

Yes

Quoted 3 lines

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.

Quoted 2 lines

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

Quoted 7 lines

ah OK.

Quoted 4 lines

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

Quoted 7 lines

Stefan

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html