From 13a643feb899d4b328ce97638ce8a0e9338b8fd9 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Mon, 2 Aug 2021 11:06:07 +0530 Subject: [PATCH] ceph: add a directory layout for secondary ec data pool when creating ec fs, create replicated pool as primary pool and ec pool as secondary pool, creating ec pool as primary is not encouraged and it will lead to failure. Closes: https://github.com/rook/rook/issues/8210 Signed-off-by: subhamkrai --- Documentation/ceph-filesystem-crd.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/ceph-filesystem-crd.md b/Documentation/ceph-filesystem-crd.md index 4b2b533cc05d2..2e1bc9d3226a7 100644 --- a/Documentation/ceph-filesystem-crd.md +++ b/Documentation/ceph-filesystem-crd.md @@ -86,6 +86,8 @@ spec: replicated: size: 3 dataPools: + - replicated: + size: 3 - erasureCoded: dataChunks: 2 codingChunks: 1 @@ -94,8 +96,8 @@ spec: activeStandby: true ``` -(These definitions can also be found in the [`filesystem-ec.yaml`](https://github.com/rook/rook/blob/{{ branchName }}/cluster/examples/kubernetes/ceph/filesystem-ec.yaml) file. -Also see an example in the [`storageclass-ec.yaml`](https://github.com/rook/rook/blob/{{ branchName }}/cluster/examples/kubernetes/ceph/csi/cephfs/storageclass-ec.yaml) for how to configure the volume.) +**IMPORTANT**: For erasure coded pools, we have to create a replicated pool as the primary pool and erasureCoded as the secondary pool. +Separately, a directory layout property needs to be added to use the secondary EC data pool. ### Mirroring