What exactly does gluster volume log rotate <volume name> do?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I ask because I have this nagging concern my HA appliance I'm trying to build will someday fill its system disk with log info and I won't be able to fix it from 400 miles away.  So I want to rotate the logs and get rid of, say, anything older than 5 rotations.

All the logs are in /var/log/glusterfs, right?  I just tried a gluster volume log rotate <volume name>.  I looked at the log directory before and after, but I don't see anything significantly different.  Not shown below - now I do see evidence of rotated log files in /var/log/glusterfs/bricks.

How I rotate all the logs, not just the ones in .../bricks?

Thanks


-          Greg Scott

[root at chicago-fw2 ~]# ls /var/log/glusterfs -al
total 1012
drwxr-xr-x.  5 root root   4096 Jun 28 10:48 .
drwxr-xr-x. 25 root root   4096 Jul 18 03:08 ..
drwxr-xr-x.  2 root root   4096 Jul 18 15:22 bricks
-rw-------.  1 root root   1868 Jul 15 23:28 cli.log
-rw-------.  1 root root    201 Jul 13 18:42 .cmd_log_history
-rw-------.  1 root root 129642 Jul 18 03:07 etc-glusterfs-glusterd.vol.log
-rw-------.  1 root root  13045 Jul 13 18:43 etc-glusterfs-glusterd.vol.log-20130714
-rw-------.  1 root root 317869 Jul 18 03:08 firewall-scripts.log
drwxr-xr-x.  2 root root   4096 Jul 13 18:39 geo-replication
drwxr-xr-x.  3 root root   4096 Jul 13 18:39 geo-replication-slaves
-rw-------.  1 root root 316491 Jul 18 03:07 glustershd.log
-rw-------.  1 root root 200865 Jul 18 03:07 nfs.log
[root at chicago-fw2 ~]#
[root at chicago-fw2 ~]#
[root at chicago-fw2 ~]# gluster volume log rotate firewall-scripts
volume log-rotate: success
[root at chicago-fw2 ~]# ls /var/log/glusterfs -al
total 1012
drwxr-xr-x.  5 root root   4096 Jun 28 10:48 .
drwxr-xr-x. 25 root root   4096 Jul 18 03:08 ..
drwxr-xr-x.  2 root root   4096 Jul 18 15:25 bricks
-rw-------.  1 root root   2286 Jul 18 15:25 cli.log
-rw-------.  1 root root    278 Jul 18 15:25 .cmd_log_history
-rw-------.  1 root root 129790 Jul 18 15:25 etc-glusterfs-glusterd.vol.log
-rw-------.  1 root root  13045 Jul 13 18:43 etc-glusterfs-glusterd.vol.log-20130714
-rw-------.  1 root root 317869 Jul 18 03:08 firewall-scripts.log
drwxr-xr-x.  2 root root   4096 Jul 13 18:39 geo-replication
drwxr-xr-x.  3 root root   4096 Jul 13 18:39 geo-replication-slaves
-rw-------.  1 root root 316491 Jul 18 03:07 glustershd.log
-rw-------.  1 root root 200865 Jul 18 03:07 nfs.log
[root at chicago-fw2 ~]#

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130718/77850dd8/attachment-0001.html>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux