<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Maybe I have not expressed myself clearly.<br>
I want to add the same data directory to multiple containers (bind
mount).<br>
The data is stored in a zfs pool if this is relevant to my
question.<br>
<br>
Now, we presume there are two independant users (or services)
working on two different containers.<br>
They are editing the same file on the common data storage at the
same time. <br>
Can this corrupt my filesystem or is this managed by the host (or
kernel or whatever) correctly?<br>
Could this be a problem and I damage my filesystem this way?<br>
<br>
Thanks in advance<br>
Werner Hack<br>
</tt><br>
<br>
<div class="moz-cite-prefix">On 04/20/2017 03:37 PM, T.C 吳天健 wrote:<br>
</div>
<blockquote
cite="mid:CAAPdAfH1WfiOBqsgCc442af7dxEPjbVaydSYiZ-i1zN56sSDTg@mail.gmail.com"
type="cite">
<div dir="auto">I think lxc just do bind mount for you. It will
or not damage file depends on the device file nature. For
example, block device allows multiple process read-write. Some
other drive file might not allow multiple entry.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017年4月20日 下午9:21,"Werner Hack" <<a
moz-do-not-send="true" href="mailto:werner.hack@uni-ulm.de"
target="_blank">werner.hack@uni-ulm.de</a>>寫道:<br
type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I want to mount (lxc device add) the same path on multiple
containers.<br>
Is this possible or will I damage my filesystem this way?<br>
How is concurrent (write) access to the same directory from
multiple containers handled?<br>
Is this managed with lxd daemon or the kernel and I have not
to worry about it?<br>
Or have I to use a cluster filesystem in this case?<br>
<br>
Thanks in advance<br>
Werner Hack<br>
<br>
<br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:lxc-users@lists.linuxcontainers.org"
target="_blank">lxc-users@lists.linuxcontainer<wbr>s.org</a><br>
<a moz-do-not-send="true"
href="http://lists.linuxcontainers.org/listinfo/lxc-users"
rel="noreferrer" target="_blank">http://lists.linuxcontainers.o<wbr>rg/listinfo/lxc-users</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
</body>
</html>