1) directory listing:
/opt/nfsDir/postgres/9.4/ /bin /data /etc /pgAdmin3 ....
The data directory will cause you many problems. You will need one data directory that is accessed by one AND ONLY one host for each node connected. You can't run an instance on multiple machines pointing to the same 'data' directory simultaneously. Data directories cannot be shared by multiple instances simultaneously, that's an active/active shared disk cluster and most databases don't support it or require massive overhead ( network/licensing I.e. Oracle rac) to do that.
You *can* re-use the other directories, it can be wrought with issues, and you need to carefully think though upgrades, etc....
2) The way I am using PG now is that I have specified the directory above as the location to install it (from graphical installer).
Now, it appears that postgres places files in other directories besides the one specified in the installer. For instance, there are scripts in /etc/init.d to start the service.
So in answering my own question: it appears PG places files in other dirs so when I am given a new VM/different physical server with the same NFS mount I would either need to copy these files over or better yet un-install the current PG and re-install from scratch.
Thanks, ap
|