Insufficient free space for journal filesPlease make at least 3379MB available in /export/servers/mongodb-linux-x86_64-3.0.6/data/db/journal or use --smallfiles 它提示journal中至少留出3379MB可用,所以在虚拟机中安装mongodb要注意磁盘空间
repairDatabase是官方文档中认为唯一可以回收硬盘空间的方法. repairDatabase is the appropriate and the only way to reclaim disk space. 虽然可以用 db.repairDatabase()修复数据.但这种方法有两个不好的地方.1.在生产上操作如果意外停止可能会造成数据无法恢复的危险.2.如果磁盘空间不足,小于现在这个db时间占有的空间,这种情况是用不了 db.repairDatabase()的. 注意,r
一则清理MySQL大表以释放磁盘空间的案例 一.基本情况: 1.dbtest库554G,先清理st_online_time_away_ds(37G)表的数据,保留半年的数据: 1)删除的数据:select count(1),tdate from dbtest.st_online_time_away_ds where tdate < '2017-08-01';(记录数为:462171894) 2)保留的数据:select count(1),tdate from dbtest.st_online_t
检测磁盘空间,如果低于设置的预警值则发出一封预警邮件,这样的事情可以用SQL server的作业可以做,关键SQL语句如下例子所示: DECLARE @TableText NVARCHAR(MAX)='' ; --邮件正文declare @c int=15000 --C盘最低报警15G if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#aa') and type='U')drop tabl
Get the current free disk space in PostgreSQL PostgreSQL获取磁盘空间 from eshizhan Here has a simple way to get free disk space without any extended language, just define a function using pgsql. CREATE OR REPLACE FUNCTION sys_df() RETURNS SETOF text[] LANG