How to resize the PersistentVolume used by the Elasticsearch pods in OpenShift 4?

Solution Verified - Updated -

Issue

  • If the underlying storage of a PersistentVolume does not allow dynamic resizing, an error like the following will appear when trying to resize the PersistentVolumeClaim:
An error occurred
persistentvolumeclaims "elasticsearch-elasticsearch-xxx-yyyyyyyy-1" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x
  • Elasticsearch Operator

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content