solr-operator icon indicating copy to clipboard operation
solr-operator copied to clipboard

Solr inbuilt backup restore issue

Open Dhru205 opened this issue 2 years ago • 1 comments

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.

Dhru205 avatar Jul 13 '23 13:07 Dhru205

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.

HoustonPutman avatar Jul 21 '23 15:07 HoustonPutman