[pve-devel] [PATCH storage] rbd: add support for erasure coded ec pools

Alwin Antreich alwin at antreich.com
Wed Jan 26 19:30:13 CET 2022


Hello Aaron,

nice to see EC pools are coming. ;)

January 26, 2022 5:07 PM, "Aaron Lauterer" <a.lauterer at proxmox.com> wrote:

> The first step is to allocate rbd images correctly.
> 
> The metadata objects still need to be stored in a replicated pool, but
> by providing the --data-pool parameter on image creation, we can place
> the data objects on the erasure coded (EC) pool.

AFAICR, there is an undocumented location for a ceph.conf,
`/etc/pve/priv/ceph/<storage-name>.conf`.

The config should have the following content.
```
[client.admin_ec]
rbd default data pool = ceph_pool_ec
````
Then rbd will use the data pool. This should probably work for all storage operations.

Newer ceph versions should also work with the config db option.
```
ceph config set client.xxx rbd_default_data_pool ceph_pool_ec
```

Cheers,
Alwin




More information about the pve-devel mailing list