Log rotate not working for /drbd/nagios/var/archives
Posted: Sun Nov 21, 2021 1:26 am
Hi Team,
We need to do a log rotation for directory"/drbd/nagios/var/archives" as the disk is getting filled very often.
Need to know how to do it and will it create any impact or data loss if we do a log rotate on /drbd/nagios/var/archives directory.
Please suggest.
[root@nagios archives]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 150G 34G 117G 23% /
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 39M 16G 1% /dev/shm
tmpfs 16G 1.6G 15G 11% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/mpatha1 1014M 200M 815M 20% /boot
/dev/mapper/centos-var 30G 24G 6.1G 80% /var
/dev/drbd0 188G 127G 62G 68% /drbd
tmpfs 3.2G 0 3.2G 0% /run/user/1003
tmpfs 3.2G 0 3.2G 0% /run/user/1001
tmpfs 3.2G 0 3.2G 0% /run/user/0
You have new mail in /var/spool/mail/root
[root@qy-nagios-a archives]#
Thanks
We need to do a log rotation for directory"/drbd/nagios/var/archives" as the disk is getting filled very often.
Need to know how to do it and will it create any impact or data loss if we do a log rotate on /drbd/nagios/var/archives directory.
Please suggest.
[root@nagios archives]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 150G 34G 117G 23% /
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 39M 16G 1% /dev/shm
tmpfs 16G 1.6G 15G 11% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/mpatha1 1014M 200M 815M 20% /boot
/dev/mapper/centos-var 30G 24G 6.1G 80% /var
/dev/drbd0 188G 127G 62G 68% /drbd
tmpfs 3.2G 0 3.2G 0% /run/user/1003
tmpfs 3.2G 0 3.2G 0% /run/user/1001
tmpfs 3.2G 0 3.2G 0% /run/user/0
You have new mail in /var/spool/mail/root
[root@qy-nagios-a archives]#
Thanks