Badger Error while running step-ca

I have a very limited knowledge of badger. While trying to setup step-ca using persistent volume, i am encountering the following error.
Error opening database of Type badgerv2: error opening Badger database: While syncing directory: /home/step/db.: sync /home/step/db: invalid argument
What might be the issue in this case? It was working fine in local with minikube and hostpath persistent volume.
Please tell if any further information is required.