Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
gemechisd
Contributor

SMS Gateway Disk Usage

We are us7ing 2 gateways and 1 SMS. All of them have R80.40 version with a JHF Installed T197. Our SMS Gateway has a total of 4TB storage. The SMS is configured when the disk usage is below 40%, the retention period is for 3 days. So, how can we fix the disk usage issue? Is it possible to take backup and free the disk space? Any possible scenarios would be accepted. Below, I have attached the screenshot of the Storage space. The log ststorage location is /var/log on the SMS gateway.

0 Kudos
10 Replies
the_rock
Legend
Legend

You can run multiple examples of below command:

find /var/log -size +400000000c

That will look for any files bigger than 400 MBs in /var/log dir...replace 4 with any number to search for relevant size (1 for 100 MBs, 2 for 200 MBs and so on)

example from my lab (R81.20)

[Expert@QUANTUM-MANAGEMENT:0]# find /var/log -size +400000000c
[Expert@QUANTUM-MANAGEMENT:0]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current 55G 16G 40G 29% /
/dev/sda2 291M 42M 235M 15% /boot
/dev/mapper/vg_splat-lv_log 60G 9.5G 51G 16% /var/log
tmpfs 7.8G 25M 7.7G 1% /dev/shm
cgroup 7.8G 0 7.8G 0% /sys/fs/cgroup
[Expert@QUANTUM-MANAGEMENT:0]#

 

Andy

gemechisd
Contributor

@the_rock 

Yeah thank you for the command find. I have found some larger files. But what could I do in order to free up some? space

0 Kudos
the_rock
Legend
Legend

Please send the output.

Andy

0 Kudos
gemechisd
Contributor

@the_rock 

Kindly find the below attachments 

0 Kudos
the_rock
Legend
Legend

You can verify with TAC, but Im fairly sure those logs in cpm_doctor dir can be deleted, those are probably really large files. You can do ls -lh on them and verify. Also, check how big backup files is.

Andy

0 Kudos
the_rock
Legend
Legend

Do below and see what you get ()expert mode)

Andy

cd /var/log/opt/CPsuite-R80.30/fw1/log
ls -lh diff_*

0 Kudos
G_W_Albrecht
Legend Legend
Legend

I do not see any issue here, please explain ! 66% is OK to most of us...

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
the_rock
Legend
Legend

I guess they must be doing lots of logging...you are right, to most of us, 66% would be fine, but in this case, not really : - )

0 Kudos
gemechisd
Contributor

@the_rock @G_W_Albrecht 

So, how can we take a backup of those old log files and delete the log file from the SMS Server?

0 Kudos
the_rock
Legend
Legend

You can use rm command to remove them and to back them up, you can connect with win scp application, navigate to right dir, and get them off the box. To enable winscp access temporarily, simply run chsh -s /bin/bash admin command from expert mode (assuming admin name is admin, or whatever else it might be)

To revert back, run chsh -s /etc/cli.sh admin

Cheers,

Andy

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events