Score:0

How to sync two overlay network shares?

cn flag

There is a ceph mount on two nodes. The content should be available to applications running on one of the two nodes but they should not make changes to the content. Instead I want those applications to make their changes synced on another place (synced via network) using OverlayFS.

  1. Try

mount -t overlay overlay -o lowerdir=/media/ceph/A,upperdir=/media/ceph/B,workdir=/media/ceph/C /media/available

but as ceph seemingly does not support d_type, and RENAME_WHITEOUT - both of which are required (https://elixir.bootlin.com/linux/latest/source/fs/overlayfs/super.c#L1370) at least for upperdir and workdir - this didn't work.

  1. Try Create a file in cephs with ext4Fs inside to mount and use as upperdir/workdir. Even though sync attribute is set on the ext4-mount the fsImages does sync properly (without umounting/mounting them).

Does anyone have any idea for a third try?

PS: Yes, I read this comment

we never allowed remote upper fs, so we can enforce strict requirements for remote upper fs

Hoffmann avatar
cn flag
Yes, it can easily be done using unionfs-fuse
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.