How to create a new pool with EC4+2 on hdd
Create the EC pool
ceph osd pool create <poolname> 32 32 erasure profile-4-2-hdd ceph osd pool set <poolname> crush_rule ecrule-4-2-hdd ceph osd pool set <poolname> allow_ec_overwrites true
Create the metadata pool in replica3:
ceph osd pool create metadata-<poolname> 32 32 ceph osd pool set metadata-<poolname> crush_rule replicated_hdd