[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: NFS in OpenShift



Hi Den-

When you use NFS in an OpenShift pod, the NFS volume is mounted into a directory that holds the data for the pod's volumes under /var/lib/openshift.  That directory is the bind-mounted into the each container that has a 'VolumeMount' for the volume.  When a container writes to the volume, the normal process for sending data back to the NFS server is in play.

Does that clarify things?

P

On Mon, Dec 14, 2015 at 6:48 AM, Fernando Lozano <flozano redhat com> wrote:
Hi Den,


It will be same as when you use NFS without a container: the data on the mounted NFS volume is there and unless something external copies the data it will be only there. And most of the time there is no reason to copy the data.

From a containerized application point of view there is nothing special about a volume, be it backed by NFS or not: it is simply a file system mounted somewhere. It uses those filesystem files without caring where they are stored.


[]s, Fernando Lozano


A simple question:
When you're using NFS on a container. Will the content of the container be copied to the volume.
So for example: data x

Container: contains data x
Volume: contains also data x and will be updated after a change.
When some inserts new data this will be stored on the volume of the container itselfs AND it will be send to the NFS-volume.

OR will it only be stored in the volume of NFS

Container: contains nothing
Volume: contains the data x and will send the data to the container only when requested?
When someone inserts new data this will be send immediatley to the NFS-volume and the volume of the container is empty




_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]