# Kubectl get pxc cluster1 shows error due to not being able to resize the pv

**URL:** <https://forums.percona.com/t/kubectl-get-pxc-cluster1-shows-error-due-to-not-being-able-to-resize-the-pv/31649>\
**Category:** Percona XtraDB Cluster 8.x\
**Tags:** percona\
**Created:** [July 17, 2024, 6:15am UTC](https://forums.percona.com/t/kubectl-get-pxc-cluster1-shows-error-due-to-not-being-able-to-resize-the-pv/31649 "2024-07-17T06:15:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bram](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bram](https://forums.percona.com/u/bram)\
**Post date:** [July 17, 2024, 6:15am UTC](https://forums.percona.com/t/kubectl-get-pxc-cluster1-shows-error-due-to-not-being-able-to-resize-the-pv/31649/1 "2024-07-17T06:15:47Z")

</div>

## Description:

Hi, when I do a kubectl get pxc cluster1 it shows status: error

## Steps to Reproduce:

Conditions:  
kc describe pxc cluster1 snippet:

```
Last Transition Time: 2024-05-18T14:40:02Z
Status: True
Type: initializing
Last Transition Time: 2024-05-18T14:40:02Z
Message: update persistentvolumeclaim/datadir-cluster1-pxc-0: persistentvolumeclaims "datadir-cluster1-pxc-0" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
Reason: ErrorReconcile
Status: True
Type: error

```

## Version:

1.14.0

It shows it cannot resize de pv. That’s right because I use local-path-provisioner. I’ve tried reconstructing the cluster with 100G pvc’s and copying the data back in the new directories but that didn’t work.

Is there any way I can get rid of this error? I simply don’t have resizable volumes at my disposal and now I can’t get the backups to run. I’ve figured out a mysldump strategy with turning pxc-strict mode to disabled, but I really like the error to go away.

Hope anyone can help me on this one

Thx,

Bram

---

<div class="post-metadata">

**Author:** ![anil.joshi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anil.joshi/32/13100_2.png) [@anil.joshi](https://forums.percona.com/u/anil.joshi)\
**Post date:** [August 16, 2024, 2:05pm UTC](https://forums.percona.com/t/kubectl-get-pxc-cluster1-shows-error-due-to-not-being-able-to-resize-the-pv/31649/2 "2024-08-16T14:05:19Z")

</div>

@bram

You should refer to this blog post - [Percona Operator Volume Expansion Without Downtime](https://www.percona.com/blog/percona-operator-volume-expansion-without-downtime/) which discussing the steps for the **volume expansion** and also covers the details when PVC volume expansion not possible and have to copy the data over a new PVC. Let us know if that helps!

Moreover, please share the below details from your environment for a quick looking.

```auto
kubectl get pvc <your-pvc-name> -o yaml
kubectl describe pvc <your-pvc-name>

```

`kubectl get pv <your-volume-name>`

```auto
kubectl get storageclass
kubectl get storageclass <your-storage-class> -o yaml
kubectl describe storageclass <your-storage-class>

```

Regards,  
Anil
