[Gluster-users] try to understand how it works...

David Touzeau david at touzeau.eu
Sun Dec 27 16:03:36 UTC 2009

Thanks for this answer

i real production mode, i would like to create a cluster for cyrus-imap 

cyrus-imap use  2 directories.

I have 3 servers with cyrus-imap installed.
The goal is when a mail is saved on one of these servers
in /var/spool/cyrus/mail and in /var/lib/cyrus (indexation directory)
it is automatically replicated on the 2 servers.

According your answer how i can create this kind of structure ?

-------- Message initial --------
De: Raghavendra G <raghavendra at gluster.com>
À: david <david at touzeau.eu>
Cc: gluster-users <gluster-users at gluster.org>
Sujet: Re: [Gluster-users] try to understand how it works...
Date: Sun, 27 Dec 2009 18:03:06 +0400

Hi David,

Please find the comments inlined below.

On Sun, Dec 27, 2009 at 4:26 PM, David Touzeau <david at touzeau.eu> wrote:

        My english is poor but after several research i will not really
        understand how the replication works.
        I have created 3 clusters server that share 2 directories in
        cluster/replicate mode
        each server mount the pool clusters in /mnt/replicate
        and /mnt/replicate2
        if i add a file in /home/replicate in one node, nothing happen
        in others
        The file is not added in the desired folder /home/replicate on

you should not do any filesystem operations on the back-end directory
directly. The correct way of doing it, is to create a file
on /mnt/replicate or /mnt/replicate2 (two mount-points are not necessary
for correct working of replicate, unless you really want two mount
points) and checking the backend directories (ls on both backend
directories should show the file being created).

        But if a do an "ls mnt/replicate" in the mounted directory the
        file is
        correctly added on all nodes.
        did i must cron the "ls" in order to execute the replication ?

No, during normal operation, replicate automatically replicates. Only
when there is a node failure, and when the node comes up you need to
execute 'ls -lR /mnt/replicate" to heal the node which is up now with
the node which was running fine.

        did the cluster mode is not in "real time" and this is the
        procedure ?
        best regards
        Gluster-users mailing list
        Gluster-users at gluster.org

Raghavendra G

More information about the Gluster-users mailing list