[Gluster-users] missing files

Krzysztof Strasburger strasbur at chkw386.ch.pwr.wroc.pl
Tue Nov 24 07:25:33 UTC 2009


On Mon, Nov 23, 2009 at 07:39:09PM -0600, Jeremy Enos wrote:
> I have another clue to report:
> So I have my export directory as:
> /export
> Mounted as:
> /scratch
> 
> If I do "ls -lR /scratch", it's supposed to synchronize all files and
> metadata, right?  Well, it doesn't seem to be doing that.
> 
> I have approx 100 files in one problematic folder.  Only 50 show up to
> ls.  That is, until I list it specifically.  They also don't show up in
> the export directory until ls'd by name in /scratch.
> 
> ls /scratch/file* # results in files1-49 being listed
> ls /export/file*  # same result as above
> ls /export/file50.dat  #  no such file or directory
> ls /scratch/file50.dat  # lists file as if nothing was ever wrong
> ls /export/file50.dat  # shows up now after specific ls call in /scratch
> ls /scratch/file*  # results in files 1-50 being listed now  (magic?)
> ls /export/file*  # also results in files 1-50 being listed now
OK, this seems to be the same problem (as mine) in a different configuration.
Only the first subvolume of replicated data is checked.
> >>>
> >>> volume stripe1
> >>>   type cluster/stripe
> >>>   option block-size 1MB
> >>>   subvolumes remote1 remote2 remote3 remote4 remote5
> >>> end-volume
> >>>
> >>> volume stripe2
> >>>   type cluster/stripe
> >>>   option block-size 1MB
> >>>   subvolumes remote6 remote7 remote8 remote9 remote10
> >>> end-volume
> >>>
> >>> volume replicate
> >>>   type cluster/replicate
> >>>   option metadata-self-heal on
> >>>   subvolumes stripe1 stripe2
> >>> end-volume
> >>>
Glusterfs developers claim that it is unsafe, to shuffle subvolumes, as the
first one is used as the lock server.
But it should be safe (IMHO) to workaround in the following manner:
1. umount the replicated volume on all clients,
2. modify the config file (everywhere!):
   subvolumes stripe2 stripe1
3. mount it again.
Now stripe2 appears as the first subvolume and ls -R should do the
synchronization, as expected.
Krzysztof



More information about the Gluster-users mailing list