apache / solr-operator

Official Kubernetes operator for Apache Solr
https://solr.apache.org/operator
Apache License 2.0
243 stars 112 forks source link

Solr inbuilt backup restore issue #591

Open Dhru205 opened 11 months ago

Dhru205 commented 11 months ago

Hi @HoustonPutman, I am facing error while taking backup of solr cluster using the following command which is defined in the documentation. You can also see the attached screenshot of the same.

image

image

As you can see above the location of the shards is also correct which is specified in the path. Even after I create a folder in the pod in which backup should be happening, I am facing the same error. I fired the same command from inside the pod but error still persists.

HoustonPutman commented 11 months ago

You need to provide the SolrCloud yaml that you are using. You are using a local backup, but the volume you selected is the Solr data volume which is not write-many. Each Solr pod gets its own PVC or ephemeral volume that has separate data. The local backup requires that the directory you backup to is backed by a shared file system, like NFS. That's why its complaining.

So either use the Solr backup feature to do this for you, and use a write-many shared volume type, or use S3 or GCS.