LoginSignup
2
1

More than 3 years have passed since last update.

lsyncdが落ちる

Posted at

(過去対応メモ)
lsyncdが以下のようなエラーを吐いて落ちることがある。

Thu May 18 23:11:32 2017 Error: Terminating since out of inotify watches.
Consider increasing /proc/sys/fs/inotify/max_user_watches

lsyncdがディレクトリを監視するのに使っているinotifyというLinuxの機能があり、
そいつが監視できるディレクトリ数の上限を超えてしまったので監視できず落ちたらしい。

現在の設定値の確認

# cat /proc/sys/fs/inotify/max_user_watches
(恐らくデフォルトは 8192)

設定値を変更

# echo 163840 > /proc/sys/fs/inotify/max_user_watches
# cat /proc/sys/fs/inotify/max_user_watches

再起動時に反映されるように設定

# vi /etc/sysctl.conf
------------------------------------
fs.inotify.max_user_watches = 163840
------------------------------------
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1