MySql启动报 write error: No space left on device问题解决
来源:互联网 发布:防止流量偷跑软件 编辑:程序博客网 时间:2024/06/18 04:10
启动MySQL数据库时报如下错误:
[root@localhost redmine-3.1.1-1]# ./ctlscript.sh start171023 09:36:32 mysqld_safe Logging to '/opt/redmine-3.1.1-1/mysql/data/mysqld.log'.171023 09:36:32 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-3.1.1-1/mysql/data/opt/redmine-3.1.1-1/mysql/bin/mysqld_safe: line 128: echo: write error: No space left on device/opt/redmine-3.1.1-1/mysql/bin/mysqld_safe: line 165: 16298 Killed
其中,引人注目的就是No space left on device
。
使用df -h
命令查看磁盘使用情况如下:
[root@localhost ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/sda2 50G 50G 0 100% /tmpfs 3.8G 100K 3.8G 1% /dev/shm/dev/sda1 485M 54M 407M 12% /boot/dev/sda5 404G 227M 383G 1% /home
可以看到磁盘空间已经被完全占满。
接着,使用du -sh *
命令查看/dev/sda2
中的磁盘占用具体情况,结果如下:
[root@localhost /]# du -sh *8.8M bin37M boot344K dev34M etc29M home122M lib27M lib644.0K media0 misc4.0K mnt0 net42G opt2.4G root19M sbin4.0K srv164K tmp[root@localhost /]# cd opt[root@localhost opt]# du -sh *15M apache-tomcat-9.0.0.M815M ksar200M nexus-3.2.0-01100M nexus-3.2.0-01-unix.tar.gz904M redmine-3.1.1-140G sonatype-work
逐级往下找,发现是nexus的日志文件已经有30多G了,删掉,再次启动mysql问题得到解决。
阅读全文
1 0
- MySql启动报 write error: No space left on device问题解决
- Write error: No space left on device-解决办法
- jboss启动报错No space left on device
- 启动namenode节点报错:No space left on device
- .[No space left on device]问题解决
- linux No space left on device 问题解决
- VIDIOC_STREAMON: No space left on device 问题解决
- Docker error : no space left on device
- make error 'No space left on device'
- ORA-09817: Write to audit file failed Linux-x86_64 Error: 28: No space left on device
- mysql无法启动,报错 Can't start server: can't create PID file: No space left on device
- No space left on device
- No space left on device
- No space left on device
- no space left on device
- No space left on device
- No space left on device
- No space left on device
- Windows进程的创建与销毁
- EPOLLLT和EPOLLET
- 面试重点
- php设计模式--单例模式
- 学生成绩录入
- MySql启动报 write error: No space left on device问题解决
- AD RMS文档管理
- 极简实现js去抖动,用于优化频繁操作.
- PHP : MySQLi【面向过程】操作数据库【 连接、建库、建表、增、删、改、查、关闭】
- Android 轻松定制属于自己的RecyclerViewAdapter
- “附加数据库失败,版本为661,无法打开,支持655版本...”和“无法执行脚本,没有足够的内存继续执...”
- Mac 通过phpize安装xdebug(与编译mysql.so 同理)
- (十五)Java设计模式之策略模式
- LeetCode.49 Group Anagrams