bugGluster - Bugs: bug #26282, afr with read-subvolume only...

 
 

bug #26282: afr with read-subvolume only reading locally on one machine

Submitted by:  Erick Tryzelaar <erickt>
Submitted on:  Tue 21 Apr 2009 11:03:20 PM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: PostponedPrivacy: Public
Assigned to: NoneOriginator Name: -
Open/Closed: ClosedRelease: 2.0.0rc8
Operating System: GNU/LinuxReproducibility: Every Time

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 25 Jun 2009 05:51:38 AM UTC, comment #1:

This bug has been moved to http://bugs.gluster.com

Please track the progress of the bug at http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=60

--
Gowda

Basavanagowda Kanur <gowda>
Project Member
Tue 21 Apr 2009 11:03:20 PM UTC, original submission:

I ran into a problem with the latest rc release of gluster where read-subvolume only appears to work for only one machine. Here's my volume file:

volume posix
type storage/posix
option directory /tmp/gluster
end-volume

volume locks
type features/locks
subvolumes posix
end-volume

volume brick
type performance/io-threads
option thread-count 8
subvolumes locks
end-volume

volume server
type protocol/server
option transport-type tcp
option auth.addr.brick.allow *
subvolumes brick
end-volume

volume machine1
type protocol/client
option transport-type tcp
option remote-host machine1
option remote-subvolume brick
end-volume

volume machine2
type protocol/client
option transport-type tcp
option remote-host machine2
option remote-subvolume brick
end-volume

volume replicate
type cluster/replicate
option read-subvolume `hostname`
subvolumes machine1 machine2
end-volume

In this cluster I've got a 1gb file of random data that I've verified via md5sum is on both machines. On machine1, I can copy the file to > /dev/null while watching dstat, and see that the file is being read completely locally. If I do the same on machine2 though, the file is read from machine1. Only if I kill glusterfsd on machine1 then it'll read the local copy.

I've also found that If I change this line:

subvolumes machine1 machine2

to

subvolumes machine2 machine1

The behavior swaps. machine2 now will read the file locally and machine1 will read it remotely. Any idea what's going on?

Erick Tryzelaar <erickt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gowda (Posted a comment)
  • -unavailable- added by erickt (Submitted the item)
  • -unavailable- added by erickt
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Jun 2009 05:51:38 AM UTCgowdaStatusNone=>Postponed
      Originator Name=>-
      Open/ClosedOpen=>Closed
    Tue 21 Apr 2009 11:03:20 PM UTCericktCarbon-Copy-=>Added erickt

    Back to the top


    Powered by Savane 3.1-cleanup1