disk space logs
count files
find /opt/CPmds-R81.10/customers/*/CPsuite-R81.10/fw1/log/ -mtime +11 -type f -name "20[0-9][0-9]*" -print| wc -l
(15299 files)
Review space
[Expert@SITE-mdsm1:0]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current 200G 46G 155G 23% /
/dev/sda1 291M 99M 178M 36% /boot
tmpfs 126G 70M 126G 1% /dev/shm
/dev/mapper/vg_splat-lv_log 13T 13T 87G 100%/var/log
cgroup 126G 0 126G 0% /sys/fs/cgroup
Dry run
find /opt/CPmds-R81.10/customers/*/CPsuite-R81.10/fw1/log/ -mtime +11 -type f -name "20[0-9][0-9]*" -print
Delete older than 11 days
find /opt/CPmds-R81.10/customers/*/CPsuite-R81.10/fw1/log/ -mtime +11 -type f -name "20[0-9][0-9]*" -print -delete
Review space
[Expert@SITE-mdsm1:0]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current 200G 46G 155G 23% /
/dev/sda1 291M 99M 178M 36% /boot
tmpfs 126G 70M 126G 1% /dev/shm
/dev/mapper/vg_splat-lv_log 13T 8.0T 5.1T 62%/var/log
cgroup 126G 0 126G 0% /sys/fs/cgroup