Thank you Konstantin!
Tony
From: Konstantin Shalygin
Sent: August 9, 2021 01:20 AM
To: Tony Liu
Cc: ceph-users; d...@ceph.io
Subject: Re: [ceph-users] rbd object mapping
On 8 Aug 2021, at 20:10, Tony Liu
mailto:tonyliu0...@hotmail.com>> wrote:
That's
> On 8 Aug 2021, at 20:10, Tony Liu wrote:
>
> That's what I thought. I am confused by this.
>
> # ceph osd map vm fcb09c9c-4cd9-44d8-a20b-8961c6eedf8e_disk
> osdmap e18381 pool 'vm' (4) object
> 'fcb09c9c-4cd9-44d8-a20b-8961c6eedf8e_disk' -> pg 4.c7a78d40 (4.0) -> up
> ([4,17,6], p4)
>> There are two types of "object", RBD-image-object and 8MiB-block-object.
>> When create a RBD image, a RBD-image-object is created and 12800
>> 8MiB-block-objects
>> are allocated. That whole RBD-image-object is mapped to a single PG, which
>> is mapped
>> to 3 OSDs (replica 3). That means,
> There are two types of "object", RBD-image-object and 8MiB-block-object.
> When create a RBD image, a RBD-image-object is created and 12800
> 8MiB-block-objects
> are allocated. That whole RBD-image-object is mapped to a single PG, which is
> mapped
> to 3 OSDs (replica 3). That means, all
There are two types of "object", RBD-image-object and 8MiB-block-object.
When create a RBD image, a RBD-image-object is created and 12800
8MiB-block-objects
are allocated. That whole RBD-image-object is mapped to a single PG, which is
mapped
to 3 OSDs (replica 3). That means, all user data on
Object map show where your object with any object name will be placed in
defined pool with your crush map, and which of osd will serve this PG.
You can type anything in object name - and the the future placement or
placement of existing object - this how algo works.
12800 means that your 100GiB