<p>I was trying the local or host path volumes on a LAN bare metal servers. </p>

<p>tried local but each node was having there own copy of the data.</p>

<p>How can i use volumes across all the nodes and pods. </p>

shrw
<p>Persistent Volumes have access semantics. Example on GCE if you are using a Persistent Disk, can either be mounted as writable to a single pod or to multiple pods as read-only. If you want multi writer semantics, you need to setup NFS or some other storage that let's you write from multiple pods. NFS can support multiple read/write clients.</p>

<p>In case you are interested in running NFS take a look: <a href="https://github.com/kubernetes/kubernetes/blob/release-1.2/examples/nfs/README.md" rel="nofollow noreferrer">nfs-setup</a>.</p>

<p>The NFS persistent volume and NFS claim gives an indirection that allow multiple pods to refer to the NFS server using a symbolic name rather than the hardcoded server address.</p>

<p>Take a look: <a href="https://stackoverflow.com/questions/36506791/how-do-i-make-a-persistent-volume-accessible-to-multiple-kubernetes-pods">pv-multiple-pods</a>.</p>
