Hello:<br><br>Recently I started an open source project "cutils" on the sourceforge:<br>   <a href="http://sourceforge.net/projects/crablfs/">http://sourceforge.net/projects/crablfs/</a><br> <br>The document can be found at:
<br><a href="http://crablfs.sourceforge.net/#ru_data_man">http://crablfs.sourceforge.net/#ru_data_man</a> <br><br>This project's mirrord/fs_mirror tool is a near realtime file system <br>mirroring application across 2 or more hosts, something like MySQL's
<br>replication, but it's for the file system especially with a great amount<br>of small files, such as the php scripts and images of a website or the <br>(vitual) websites.<br><br>There are several ways to use this tool. The simplest is to mirror a
<br>host's file system to another host for backup, and use the rotate<br>function(in the future version) or rotate scripts to get a daily or <br>hourly snapshot with the hard link.<br><br>Or futhur more, you can use it this way:
<br>  This graph should be displayed with monospaced fonts:<br>  <br>      +----------+  <br>      |  worker  | -[mirrord] -----------\<br>      +----------+                       |<br>         ......                          |
<br>                                         |<br>      +----------+                       |<br>      |  worker  | -[mirrord] -----------\<br>      +----------+                       |<br>                                         V
<br>                                    [fs_mirror]<br>                                         |<br>      +----------+                  +----------+<br>      |  worker  | -[mirrord] --->  |  backup  |<br>      +----------+                  +----------+
<br>           |                             |<br>      [take_over]                        |<br>           |                             |<br>           V                             |<br>      +----------+                       |
<br>      |  rescue  | <------------------- NFS<br>      +----------+<br><br>This is the multi to one backup, which is cost efficient. If one of the<br>worker hosts fails, you can subsitute the failed worker with the rescue
<br>host, with the aid of any high available method, such as heartbeat<br>project. By this way, you can use 1 or 2 hosts to support the HA of more<br>than 3 servers.<br><br>Or you can also use it as an IDS(Intrusion Detection System) like a
<br>realtime "tripware", or you can make a mirror chain that a host B mirrors<br>from A and be mirrored by C, etc ... I will also try to research a way<br>to use it as a distributed implemetation with one write and multi-read
<br>model.<br><br>mirrord/fs_mirror makes use of inotify, which is a function afforded by<br>the recent Linux (from 2.6.12). It is a counterpart of FAM, since Linux <br>FAM has stopped so long.<br><br>Now it works for me, on a RHEL4 system and the LFS 
6.2, I hope this tool<br>can be useful to you too.<br><br>Thanks.<br><br>-- <br>------------------------------------------------------------------------ <br>My Projects: <br> <a href="http://sourceforge.net/projects/crablfs">
http://sourceforge.net/projects/crablfs</a><br><a href="http://crablfs.sourceforge.net/">http://crablfs.sourceforge.net/</a><br><a href="http://crablfs.sourceforge.net/#ru_data_man">http://crablfs.sourceforge.net/#ru_data_man
</a> <br><a href="http://crablfs.sourceforge.net/tree.html">http://crablfs.sourceforge.net/tree.html</a><br><a href="http://cralbfs.sourceforge.net/sysadm_zh_CN.html">http://cralbfs.sourceforge.net/sysadm_zh_CN.html</a><br>
 My Blog:<br><a href="http://chowroc.blogspot.com/">http://chowroc.blogspot.com/</a><br><a href="http://hi.baidu.com/chowroc_z/">http://hi.baidu.com/chowroc_z/</a><br>Looking for a space and platform to exert my originalities (for my projects)...