I am testing GlusterFS to replicate data across two test servers. I have followed this excellent step by step Howto and everything worked flawlessly.

I have successfully added the peer, created a volume and glusterfs-mounted the gluster volume on a empty mount point. Files touch'ed or copied into that mount point do appear on the peer. No problem here.

But how can I replicate existing data without copying it to a already mounted gluster volume? I have the feeling that I am missing something trivial but what?


You need to move the data off it's current filesystem and onto the gluster filesystem.


Mounting a distributed filesystem, is like creating another partition on your hard disk. The elder partition has your data, while the new one is empty.

Gluster ensures that wherever it is mounted, files will be in sync. Like a newly created partition, it doesn't contain anything.

You need to move your stuff to the new "partition" (glusterfs). If you use cp, it's better to use the archive mode in order to preserve timestamps, permissions etc etc.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.