The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20140508-Delphi-2007--Project-Options--Cannot-Edit-Application-Title-HelpFile-Icon-Theming

    20140430-Fiddler-Filter-Actions-Button-Run-Filterset-now

    20140424-Windows-7-free-disk-space

    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,724 other followers

Archive for July 21st, 2014

Using inotify-wait to check filesystem events

Posted by jpluimers on 2014/07/21

Thanks to Using inotify-wait to check filesystem events I got pointed to How to use inotify-tools to trigger scripts on filesystem events which is now on my research list.

–jeroen

Note that Kristian later on commented this:

The solution shown in the article has race conditions and should not be used.

It is based on

while :
do
inotifywait $options && run-backup
done

and that means that while the backup runs, the directory in question is unmonitored. When the backup finishes, new changes may have been accumulating during backup run, but without being picked up by the backup.

A proper solution would do something like

inotifywait -m $options | while read line
do
do-something-that-logs-multile-changes-and-triggers-backup-once
done

The important thing is that “inotifywait -m” does not terminate and hence no changes will be lost. It is wrong to run the backup once in full for each change, though.

 

Posted in *nix, *nix-tools, Linux, Monitoring, Power User, SuSE Linux | Leave a Comment »

Good starting point for RAID information

Posted by jpluimers on 2014/07/21

Accurate information about RAID is scattered around the internet.

This is a good starting point IBM’s Understanding RAID technology.

–jeroen

Posted in Power User, RAID | Leave a Comment »

 
%d bloggers like this: