I saw in other discussions where it has been noted that an NFS mounted directory is used for the dataroot.
I am taking over a installation in AWS that was spun up using the bitnami marketplace offering.
From the config I have this.
$CFG->dataroot = '/opt/bitnami/apps/moodle/moodledata';
I created a new directory in the same root called moodledata-efs, mounted that to an EFS in AWS and then copied the contents of the original moodledata to it using rsync
sudo rsync -avzh /opt/bitnami/apps/moodle/moodledata/ /opt/bitnami/apps/moodle/moodledata-efs/
So permissions and ownership of the directory and all contents are identical
I renamed moodledata to moodledata-orig
Renamed moodledata-efs to moodledata and then started up the services again and i get the below error
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
I have confirmed that the bitnami user which apache is running under can create and delete a file in the new NFS mounted path for dataroot.
I am not looking to cluster I just want to store dataroot on a more durable data store.