Resolving 'Root Partition Is Filling Up' Issue on Sophos UTM Firewall
from:
https://wandersick.blogspot.com/2016/06/resolving-root-partition-is-filling-up.html
This is a quick guide on how to resolve an occasional problem that could happen to neglected Sophos UTM firewall with default settings, where updates are automatically downloaded to device, filling up storage after some time.
An email alert similar to the below is sent to administrator when it happens:
From: Firewall Notification System [do-not-reply@fw-notify.net]
Sent: 18 June 2016 11:58 PM
To: Administrator [admin@wandersick.com]
Subject: [SOPHOS][INFO-150] Root partition is filling up - please checkRoot partition is filling up - please check. Current usage: 86%
--
System Uptime : 362 days 1 hour 2 minutes
System Load : 0.05
System Version : Sophos UTM 9.210-20Please refer to the manual for detailed instructions.
To solve it, one way is to
- SSH into Sophos UTM firewall using root login
- Remove content under Sophos update directory (Main focus of this blog post)
- Configure firmware download interval for System Up2Date packages from Automatic to Manual
1. SSH into Sophos UTM firewall using root with public key authentication
In order for root
login to be made possible, it is required to first generate a private
key and set up public key authentication. You may refer to any guide
found on the Internet such as this one.
After enabling root login, we can then authenticate using
the private key file using SCP/SSH clients such as WinSCP, PuTTy by
specifying private key file as shown below.
a. Specifying private key file in WinSCP SCP client:
b. Specifying private key file in PuTTy SSH client:
2. Remove content under Sophos update directory
Commands for determining storage utilization on directory /var
- cd /var
- du -shx *
After root SSH login, executing the above directory size checking commands revealed the /var/up2date folder (containing downloaded firmware updates) took 2GB of space on the device.
Mitigate the situation by removing the update files under /var/up2date/sys. Below screenshot shows a way to do it using WinSCP. (Backing up the files is recommended prior to deletion.)
Command for listing space utilization statistics on each file system mounted on device
- df -h
Before removing the files, the disk utilization was 86%:
After removing the files, the disk utilization lowered to 46%:
3. Configure download interval for System Up2Date packages as Manual
To prevent this problem from recurring, firmware download interval can be set to Manual
on the firewall. After configuring the setting, firewall updates will
not be automatically downloaded, hence device storage won’t be filled up
as easily.
Tip: Be sure to do this quickly after
moving/deleting the files. Otherwise, the device storage will be filled
up again by the update download next time
Hope this post provides a quick way to resolve this problem for those who encounter it.
Update in April 2017:
Fix it as early as we can! It was found that if we leave the problem
unresolved until the firewall disk partition becomes 100% full, web
administration console (httpd) will fail with the error below, and we
must recover the firewall via console logon (or using Windows PE/Linux
boot disc USB).
Internal Server Error
The server encounted an internal error or misconfiguration and was unable to complete your request.
Please
contact the server administrator at admin to inform them of the time
this error occurred, and the actions you performed just before this
error.More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Troubleshooting firewall 100% disk full – can't believe we can boot up #firewall with Windows PE or Linux boot disc (USB) like a PC #Sophos pic.twitter.com/AhGFOzeMqj
— a wandersick (@wandersick) April 5, 2017
Reference
Root partition filling up…
https://community.sophos.com/products/unified-threat-management/f/52/t/30237
let's find where the problem is, from the command line as root:
cd /
du -shx *And then go into the largest in the list and do du -shx * again.
It looks like you're now on 9.318, so I would set the Download interval to "Manual" and delete everything in /var/up2date/sys
Resolving 'Root Partition Is Filling Up' Issue on Sophos UTM Firewall的更多相关文章
- raspi-config Expand root partition to fill SD card 原理
/********************************************************************************** * raspi-config E ...
- 解决Sophos UTM 9防火墙上的“根分区填满”问题
Resolving 'Root Partition Is Filling Up' Issue on Sophos UTM Firewall 收到“Sophos UTM 9”防火墻的“根分區填满”问题的 ...
- Extend a root LVM partition online
There is also a quick remedy for the emergency situation when your root partition runs out of disk s ...
- /etc/issue 查看系统版本号
查看系统版本号 [root@mysql bin]# cat /etc/issue CentOS release 6.4 (Final) Kernel \r on an \m
- CentOS5.4安装redmine详细步骤
>>>>概述<<<< 这里不解释什么是redmine及用来做什么,如果不知道用来做什么,估计也不会把它安装到CentOS5.4上.哈哈…… 以下为详细的 ...
- linux tcp调优
Linux TCP Performance Tuning News Linux Performance Tuning Recommended Books Recommended Links Linux ...
- 数据仓库006 - MySQL 5.6.x - Linux最佳生产环境离线部署
一.离线安装包 文件准备 这里以mysql-5.6.23-linux-glibc2.5-x86_64.tar.gz为例,记一次MySQL 5.6.x 的生产环境离线部署过程.使用SecureCRT连接 ...
- Linux基础介绍【第三篇】
更改SSH服务端远程登录的配置 windows服务端的默认远程管理端口是3389,管理员用户是administrator,普通用户是guest.Linux的管理用户是root,普通用户默认有很多个,远 ...
- Centos6版本升级
1.查看当前版本 [root@IDC-D-1699 docker]# cat /etc/issue CentOS release 6.8 (Final) Kernel \r on an \m 2.升级 ...
随机推荐
- Notepad++ WebEdit插件
虽然PHP的IDE有很多,但是,我还是比较喜欢用Notepad++这款编辑器,因为比较轻量级,而且用起来比较顺手. 但是最近在改别人写的代码的时候,经常要在选定的php前后插入<?php ?& ...
- Selenium WebDriver-判断页面中某一元素是否已经显示,通常用于断言
判断界面中某一元素是否已经呈现,多用于断言,代码如下: #encoding=utf-8 import unittest import time from selenium import webdriv ...
- 洛谷9月月赛II 赛后瞎写
看错比赛时间了....结果发现的时候已经开始了半个小时,并且当时正准备睡午觉qwq 于是就水了个t1就 去睡 跑了 T2 写着写着然后看了一发评讲被辣鸡思路给绕了进去最后发现自己宛若一个智障 类似桶的 ...
- GloVe词分布式表示
GloVe 模型介绍 下面的内容主要来自https://blog.csdn.net/u014665013/article/details/79642083 GloVe的推导 GloVe是基于共现信息来 ...
- oracle主键设置与oracle序列
第一步:添加主键(如果已有且是自己命名的可略过) 一个表中要有主键,我们建主键的时候要自己命名,如果不是可能在后边遇到“主键唯一,不能自动添加”的问题. 设置主键: alter table " ...
- java 8:I / O 基础
原文地址:https://docs.oracle.com/javase/tutorial/essential/io/index.html 说明:每一个点都有一篇详细的文章与之对应,每翻译完一篇文章会更 ...
- hdu2094 stl之set的应用
产生冠军 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submis ...
- 【Luogu】P2155沙拉公主的困惑(数论)
题目链接 数论果然是硬伤qwq 还是智商上的硬伤 我们来讲两个道理 No.1 求1~i!中与i!互质的数的个数 实际上就是求i!的欧拉函数 有如下递推式: f[1]=1 if(i为合数) f[i]=f ...
- centos中代理的设置
最近在校园网中使用一个centos的主机,链接网络是需要代理的,如果是windows主机在Internet选项里设置一下就可以,可是在linux这个任何配置都要更改配置文件的系统里我还真是纠结了好大一 ...
- [luoguP2762] 太空飞行计划问题(最大权闭合图—最小割—最大流)
传送门 如果将每一个实验和其所对的仪器连一条有向边,那么原图就是一个dag图(有向无环) 每一个点都有一个点权,实验为收益(正数),仪器为花费(负数). 那么接下来可以引出闭合图的概念了. 闭合图是原 ...