# PXC Operator not creating PVCs when it creates a cluster

**URL:** <https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774>\
**Category:** Percona Operator for MySQL\
**Created:** [July 27, 2022, 10:03am UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774 "2022-07-27T10:03:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Arntzen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/benjamin_arntzen/32/7068_2.png) [@Benjamin\_Arntzen](https://forums.percona.com/u/Benjamin_Arntzen)\
**Post date:** [July 27, 2022, 10:03am UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774/1 "2022-07-27T10:03:29Z")

</div>

Hi there,

Tearing my hair out a little bit here - I’ve got the latest PXC operator installed via Helm, Longhorn for storage, and installing the cluster in the same namespace as the operator. I can create a cluster with the following:

```auto
helm install my-db percona/pxc-db --namespace pxc \
  --set pxc.size=3 \
  --set pxc.volumeSpec.resources.requests.storage=20Gi \
  --set pxc.volumeSpec.persistentVolumeClaim.storageClassName=longhorn \
  --set backup.enabled=false

```

But while the cluster is created and works, no persistentvolumeclaims are created for the cluster.

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [July 27, 2022, 10:17am UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774/2 "2022-07-27T10:17:13Z")

</div>

Hey @Benjamin_Arntzen ,

couple of additional questions:

1. was the pxc object created at all? `kubectl get pxc -n pxc`
2. if so - was stateful set created and what does it say?  
`kubectl get sts -n pxc`  
`kubectl get sts STSNAME -n pxc -o yaml`

Could you please provide this info?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Arntzen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/benjamin_arntzen/32/7068_2.png) [@Benjamin\_Arntzen](https://forums.percona.com/u/Benjamin_Arntzen)\
**Post date:** [July 27, 2022, 2:45pm UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774/3 "2022-07-27T14:45:07Z")

</div>

Hi @Sergey_Pronin,

Yes, both the PXC and StatefulSet were created. Pods were up and as far as I could tell talking to each other, but no PVCs created. Shelling into the containers, none of their mounted volumes matched the expected size of a PVC (20GB).

I’ve since uninstalled pxc operator and reinstalled it using the generic Kubernetes installation method, which has worked perfectly.

I can provide details of my environment but likely can’t reinstall the Helm version alongside the generic version to reproduce this.

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [August 1, 2022, 9:07am UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774/4 "2022-08-01T09:07:43Z")

</div>

@Benjamin_Arntzen , yeah, i would appreciate the details on how to reproduce this issue. It can be related to many reasons - affinity configuration, storage issues, etc.

---

<div class="post-metadata">

**Author:** ![Christian\_WALDBILLIG](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/christian_waldbillig/32/7264_2.png) [@Christian\_WALDBILLIG](https://forums.percona.com/u/Christian_WALDBILLIG)\
**Post date:** [August 22, 2022, 7:31pm UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774/5 "2022-08-22T19:31:08Z")

</div>

@Benjamin_Arntzen I had the same issue, followed the documentation but those settings does not work anymore… Looks like they updated the chart.  
Please take a look at the github repo 🙂

> **[percona-helm-charts/charts/pxc-db at main · percona/percona-helm-charts](https://github.com/percona/percona-helm-charts/tree/main/charts/pxc-db)**
>
> main/charts/pxc-db

And try these settings instead:

```auto
helm install test-pxc percona/pxc-db \
  --set pxc.persistence.enabled=true \
  --set pxc.persistence.storageClass=longhorn \
  --set pxc.persistence.size=20Gi \
  --set backup.enabled=false

```

---

<div class="post-metadata">

**Author:** ![Slava\_Sarzhan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/slava_sarzhan/32/3196_2.png) [@Slava\_Sarzhan](https://forums.percona.com/u/Slava_Sarzhan)\
**Post date:** [August 26, 2022, 10:49am UTC](https://forums.percona.com/t/pxc-operator-not-creating-pvcs-when-it-creates-a-cluster/16774/6 "2022-08-26T10:49:34Z")

</div>

@Benjamin_Arntzen @Christian_WALDBILLIG I have created the task [[K8SPXC-1091] Update 'Install with Helm' documentation - Percona JIRA](https://jira.percona.com/browse/K8SPXC-1091) to fix doc issue.
