Data lost or missing buckets due to subPath - cniackz/public GitHub Wiki
Objective:
To document how subPath
can impact the ability for a user to find the buckets of a previous installation.
User Story:
- Previous Tenant was installed with subPath as:
## Mount path where PV will be mounted inside container(s).
mountPath: /export
## Sub path inside Mount path where MinIO stores data.
subPath: /
or
## Mount path where PV will be mounted inside container(s).
mountPath: /export
## Sub path inside Mount path where MinIO stores data.
subPath: ""
-
Meaning buckets were located at /export folder
-
Then User changed the Tenant Spec and add
subPath
as/data
as in our Helm chart:
## Mount path where PV will be mounted inside container(s).
mountPath: /export
## Sub path inside Mount path where MinIO stores data.
subPath: /data
-
As a result two .minio.sys are created and same PV can hold onto two different MinIO deployments.
-
Solution is to revert back to just
/
instead of/data
because old buckets are in/
and not in/data