<div dir="ltr"><div dir="ltr" style="font-size:12.8px">Yup, thanks a lot, it did work.</div><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 December 2017 at 14:39, Silvio Knizek <span dir="ltr"><<a href="mailto:killermoehre@gmx.net" target="_blank">killermoehre@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am Montag, den 04.12.2017, 14:25 +0300 schrieb Andrey Klimentyev:<br>
> Hi,<br>
><br>
> Is it possible to register local mount as a remote-fs?<br>
><br>
> I've got a rather peculiar problem with Kubernetes and Ceph:<br>
> 1. kubelet creates an rbd device in /dev;<br>
> 2. it mounts it to some location;<br>
> 3. systemd adds local-fs.target and local-fs-pre.target to Before=<br>
> and<br>
> After= directives on auto-created .mount Units.<br>
><br>
> Unfortunately, with that approach thing get rather messy on shutdown.<br>
> Ceph<br>
> RBD kernel client detects network outage (since we've already<br>
> disabled the<br>
> network) and stops all I/O to those filesystems, while systemd<br>
> actively<br>
> tries to umount them. systemd depends on umounting those filesystems,<br>
> and<br>
> Ceph depends on an online network to properly finish all I/O and<br>
> unmount<br>
> them, thus creating a kind of a deadlock.<br>
<br>
</span>Hi,<br>
<br>
use the mount option »_netdev«, which declares a device as dependent on<br>
network. See »man mount« for more information.<br>
<br>
BR<br>
Silvio<br>
______________________________<wbr>_________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/systemd-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Andrey Klimentyev,</div><div>DevOps engineer @ JSC «Flant»</div><div><a href="http://flant.ru/" target="_blank">http://flant.com/</a></div><div>+7 (495) 721-10-27, ext. 487</div><div>+7 (960) 180-38-98</div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>