How to set MDS log size
Hi all,
In my MDS system of ceph cluster, my entire root partition is full bcz of one big mds log file
[root@ceph-node-7 ceph]# du -sh *
0 mds.admin.log
27G mds.ceph-node-7.log
[root@ceph-node-7 ceph]# df -h
Filesystem Size Used Avail Use% Mounted on/dev/sda2 39G 39G 0 100% /
tmpfs 24G 0 24G 0% /dev/shm /dev/sda1 2.0G 76M 1.8G 5% /boot /dev/sda5 19G 409M 18G 3% /ceph
How to set a max size for mds log ? does it auto rotate ? Bcz my root partition is full, will this affect read/write performance in my ceph cluster?
Thanks
Madhusudhana
Quoted 12 lines · Madhusudhana U
Hi all,
In my MDS system of ceph cluster, my entire root partition is full bcz of one big mds log file[root@ceph-node-7 ceph]# du -sh *
0 mds.admin.log
27G mds.ceph-node-7.log[root@ceph-node-7 ceph]# df -h
Filesystem Size Used Avail Use% Mounted on/dev/sda239G 39G 0 100% /
Quoted 7 lines
tmpfs 24G 0 24G 0% /dev/shm /dev/sda1 2.0G 76M 1.8G 5% /boot /dev/sda5 19G 409M 18G 3% /cephHow to set a max size for mds log ? does it auto rotate ? Bcz my root partition is full, will this affect read/write performance in my ceph cluster?
Ceph comes with a logrotate config, which should be in /etc/logrotate.d/ceph on debian-based distros. If you changed the location of the logs, you'll need to update the logrotate configuration to match.
Josh