[Gluster-devel] rsync & switch scheduler?

Harald Stürzebecher haralds at cs.tu-berlin.de
Wed Jan 14 05:12:55 UTC 2009


2009/1/14 Dan Parsons <dparsons at nyip.net>:
> I'm copying data back to my newly rebuilt glusterfs, and one of the things
> I'm doing is using unify with the switch scheduler to send certain file
> extensions to a stripe volume and others to a dht volume.
>
> When using rsync to restore this data, all files are going to dht (which I
> do not want). When I use cp, the correct file extensions go to stripe, and
> the others go to dht.
>
> What's special about rsync that's causing this problem? Is there any way
> around this?

IIRC, rsync (with default settings) creates temporary files in the
target directory and renames them after the download is complete.
As these temporary files probably don't have the same extension as the
real file the switch scheduler will not be able to choose the correct
volume.

http://www.samba.org/ftp/rsync/rsync.html says that rsync has some
options to control temporary files and file creation:
 -T, --temp-dir=DIR          create temporary files in directory DIR
--inplace
Anything that forces rsync to create the file with its real name
should help with your problem, but might have side effects.


Harald Stürzebecher





More information about the Gluster-devel mailing list