I have a directory that is about 1 GB worth of JPG images. When I add a new
server into the configuration, it starts to replicate everything but copies only
a few files in this directory and then stops. I ultimately have to rsync that
directory from another box. Any thoughts of what is going on here? I cannot seem
to google the answer. thank you!
Here are my configs:
cat glusterfs.vol
### Add client feature and attach to remote subvolume of server1
volume brick1
type protocol/client
option transport-type tcp
option remote-host x.x.x.x # IP address of the remote brick
option ping-timeout 10 # seconds to wait for a reply
option transport.socket.nodelay on
option remote-subvolume brick # name of the remote volume
end-volume
### Add client feature and attach to remote subvolume of server2
volume brick2
type protocol/client
option transport-type tcp
option remote-host x.x.x.x # IP address of the remote brick
option ping-timeout 10 # seconds to wait for a reply
option transport.socket.nodelay on
option remote-subvolume brick # name of the remote volume
end-volume
### Add client feature and attach to remote subvolume of server2
volume brick3
type protocol/client
option transport-type tcp
option remote-host x.x.x.x # IP address of the remote brick
option ping-timeout 10 # seconds to wait for a reply
option transport.socket.nodelay on
option remote-subvolume brick # name of the remote volume
end-volume
#The replicated volume with data
volume replicate
type cluster/replicate
# optionally but useful if most is reading
# !!!different values for box a and box b!!!
# option read-subvolume remote1
# option read-subvolume remote2
subvolumes brick1 brick2 brick3
option favorite-child brick1
end-volume
### Performance translators below
### Add IO-Cache feature
volume iocache
type performance/io-cache
option cache-size 1000MB # default is 32MB
option cache-timeout 1 # default is 1 second
subvolumes replicate
end-volume
### Add writeback feature
volume writeback
type performance/write-behind
option cache-size 500MB # default is equal to aggregate-size
option flush-behind off # default is 'off'
# too aggressive and slow background flush!
# do not enable for php sessions behaviour
subvolumes iocache
end-volume
### Add quick-read for small files
volume quickread
type performance/quick-read
option cache-timeout 1 # default 1 second
option max-file-size 256KB # default 64Kb
subvolumes writeback
end-volume
### Add io-threads for parallel requisitions
volume iothreads
type performance/io-threads
option thread-count 16 # default is 16
subvolumes quickread
end-volume
cat glusterfsd.vol
# file: /etc/glusterfs/glusterfs-server.vol
volume posix
type storage/posix
option directory /home/root
end-volume
volume locks
type features/locks
option mandatory-locks on
subvolumes posix
end-volume
volume iothreads
type performance/io-threads
option thread-count 16 # default is 16
subvolumes locks
end-volume
volume writebehind
type performance/write-behind
option cache-size 1000MB # default is equal to aggregate-size
option flush-behind off # default is 'off'
subvolumes iothreads
end-volume
volume brick
type performance/io-cache
option cache-timeout 1 # default is 1 second
subvolumes writebehind
end-volume
volume server
type protocol/server
option transport-type tcp
option transport.socket.nodelay on
option auth.addr.brick.allow *
subvolumes brick
end-volume
-Jenn
Hi Jenn: On Wed, Sep 22, 2010 at 1:11 PM, Jenn Fountain <jfountai at comcast.net> wrote:> I have a ?directory that is about 1 GB worth of JPG images. ?When I add a new server into the configuration, it starts to replicate everything but copies only a few files in this directory and then stops. ?I ultimately have to rsync that directory from another box. Any thoughts of what is going on here? I cannot seem to google the answer. thank you!Have you tried the solution for question 1 in the FAQs? http://www.gluster.com/community/documentation/index.php/Understanding_AFR_Translator#Frequently_Asked_Questions Cheers, Bernard
Hi Jenn: [Replying back to the mailing-list] On Wed, Sep 22, 2010 at 3:06 PM, Jenn Fountain <jfountai at comcast.net> wrote:> Yes, but it only replicates subdirectories and all of their content but not files. > > IE: > > [root at stag02 upload]# ls -la > total 1140 > drwxr-xr-x 69 xx xx 589824 Sep 22 14:42 . > drwxrwxr-x 39 xx xx ?16384 Sep 22 14:34 .. > drwxr-xr-x ?6 xx xx ? 4096 Feb 16 ?2010 lo_273 <-- replicated > -rw-rw-r-- ?1 xx xx ? ?8398 Sep 10 ?2007 nplantsmall.jpg <-- not replicatedThat's kind of odd, perhaps you can post snippets of your log file for the developers to see. P.S. It probably is a typo but the command you should be using is "ls -alR" (you didn't have -R above). Have you also tried `find`? Cheers, Bernard