Re: rsync & switch scheduler?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/1/14 Dan Parsons <dparsons@xxxxxxxx>:
> 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




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux