I’m trying to put together a script to install a single node couchbase server but modfiy the data directory. After I install, via the msi I do the following:
- Initialize the cluster
- Stop couchbaseserver service.
- Change the database_dir value in C:\Program Files\Couchbase\Server\etc\couchdb\default.d\capi.ini
- Change the database_dir value in C:\Program Files\Couchbase\Server\etc\couchdb\default.ini
- Restart couchbase server
I do this via a powershell script, which runs successfully (i.e. ini files have the proper values changed) but when I log into the couchbase server web dashboard the server does not show the new path to the data directory.
I have occasionally had success modifying the capi.ini manually, and restarting couchbase server service but when running from a script it never works.
Does anyone know the correct steps to change the data directory? Do I modify capi.ini & default.ini?..do I only modify one of those files?..is there another file that needs to be modified?
Any help is greatly appreciated.