i have vms that run nginx and php fpm on separate machines, for now i use a very stupid method of synchronizing directories by hand since cluster is not that big. However i have another server laying around that i would like to utilize as a shared storage device.
So far i understood that i can provide storage via iscsi with ocfs2 filestytem. What bothers me is that initial setup requires to specify each node in advance and then to add a node i would need to shutdown the o2cb to apply changes.
The goal is to provide shared storage to nginx and php-fpm nodes via iscsi (so i dont have to do replication), however number of nodes can grow depending on the load of the cluster.
Idea #1: Maybe i somehow can provide storage to my vms via host, so only host is dealing with ocfs2 directly ? that way the node is known.