[DRBD-user] csync2

Clifford Wolf clifford.wolf at linbit.com
Thu Oct 6 09:34:39 CEST 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,

On Thursday 06 October 2005 06:53, S P Arif Sahari Wibowo wrote:
> I guess csync2 will still need to scan the all the directories
> in the group to be able to tell which files were modified,
> right?

yes. but this scanning is in fact nothing else than executing stat(). the 
actual content is not read unless a change in the metadata has been detected.

> Will it possible to narrow the scope of particular execution of
> csync2? So if there is a way to know which files / directories
> were possibly modified, csync2 only scan those directories
> instead of the whole group.

sure. just pass the file or path name:

  csync2 -x /  ...... check and sync everything in the config
  csync2 -x /etc  ... check and sync only the csync2-managed files in /etc

  csync2 -x  ........ check and sync everything in the hint database

> BTW, anybody use fschange
> <http://stefan.buettcher.org/cs/fschange/> already? This kernel
> patch report which files were modified.

thanks for the tip. I will have a look at this.

(unfortunately inotify can't mointor directory structures recusively
because it is inode-based and not named-based. so there is no checking
deamon for filling the csync2 hint database on the fly for linux yet.)

yours,
 - clifford

-- 
: Clifford Wolf                                 Tel +43-1-8178292-00 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :



More information about the drbd-user mailing list