Huge MDS log crashing the cluster
Hi,
I have dedicated 10G space for /var partition. But, MDS log has filled the entire /var partition and my cluster is not responding. How shall I fix this? and what I need to make so that /var partition won't fill up again.
Appreciate any solution/suggestion on this. My entire ceph cluster became unresponsive.
Thanks__M
Quoted 7 lines · Madhusudhana U
Hi,
I have dedicated 10G space for /var partition. But, MDS log has filled the entire /var partition and my cluster is not responding. How shall I fix this? and what I need to make so that /var partition won't fill up again.Appreciate any solution/suggestion on this. My entire ceph cluster became unresponsive.
The default logrotate script installed by ceph.deb rotates log files daily and preserves 7 days of logs. If your /var is tiny, or you have heavy debugging turned on, you probably need to rotate more often and retain fewer log files. Or, if you're not using the debs, you'll need to provide some other means of rotating the log files.
Quoted 5 lines · Tommi Virtanen <tv <at> inktank.com> writes:
The default logrotate script installed by ceph.deb rotates log files daily and preserves 7 days of logs. If your /var is tiny, or you have heavy debugging turned on, you probably need to rotate more often and retain fewer log files. Or, if you're not using the debs, you'll need to provide some other means of rotating the log files.
In order to log rotate, we need to stop the deamon accessing the log file and them rename it right? I have removed the log file using rm command to check whether it will release the space, but even after the file removal, my /var partition is still full.
So, do I have to stop MDS deamon and then remove the log file ? i am not finding any command through which i can stop MDS on node. Can you please let me know how i can safely stop the MDS and then start it back ?
Thanks
Quoted 7 lines · Madhusudhana U
Quoted 5 lines · Tommi Virtanen <tv <at> inktank.com> writes:
The default logrotate script installed by ceph.deb rotates log files daily and preserves 7 days of logs. If your /var is tiny, or you have heavy debugging turned on, you probably need to rotate more often and retain fewer log files. Or, if you're not using the debs, you'll need to provide some other means of rotating the log files.
Quoted 8 lines
In order to log rotate, we need to stop the deamon accessing the log file and them rename it right? I have removed the log file using rm command to check whether it will release the space, but even after the file removal, my /var partition is still full.
So, do I have to stop MDS deamon and then remove the log file ? i am not finding any command through which i can stop MDS on node. Can you please let me know how i can safely stop the MDS and then start it back ?
1. rename the file
2. send SIGHUP to the daemon and it will reopen (/create a new file)
sage