crontab 不能开启,且报错`/var/run.bak/crond.pid': Input/output error
来源:互联网 发布:黑魂3dlc武器数据 编辑:程序博客网 时间:2024/06/16 14:01
因为突然发现,crontab 不能使用,
1、重启失败,并报 /var/run/crond.pid读写错误
[root@localhost raid]# service crond restart
Starting crond: crond: can't open or create /var/run/crond.pid: Input/output error
[FAILED]
2、ls 目录/var/run/crond.pid:显示有四个文件的读写错误,且touch /var/run/crond.pid 失败
[root@localhost raid]# ls /var/run.bak/
ls: cannot access /var/run.bak/crond.pid: Input/output error
ls: cannot access /var/run.bak/xinetd.pid: Input/output error
ls: cannot access /var/run.bak/atd.pid: Input/output error
ls: cannot access /var/run.bak/sshd.pid: Input/output error
abrt autofs-running faillock mcelog.pid pm-utils setrans
abrtd.pid certmonger hald mdadm portreserve sm-notify.pid
acpid.pid certmonger.pid haldaemon.pid memcached portreserve.pid sshd.pid
acpid.socket console httpd messagebus.pid rpcbind.lock syslogd.pid
atd.pid ConsoleKit ibacm.pid netreport rpcbind.pid udisks
auditd.pid crond.pid ipa_memcached net-snmp rpcbind.sock utmp
autofs.fifo-misc cups irqbalance.pid pki rpc.statd.pid winbindd
autofs.fifo-net cupsd.pid lvm pluto saslauthd xinetd.pid
autofs.pid dbus mcelog-client plymouth sepermit
3、备份文件夹 /var/run和/var/lock/subsys
[root@localhost raid]# mv /var/run /var/run.bak
[root@localhost raid]# mv /var/lock/subsys /var/lock/subsys.bak
4、恢复源文件
mkdir /var/run
mv /var/run.bak/ /var/run/*
[root@localhost raid]# mkdir /var/lock/subsys
[root@localhost raid]# mv /var/lock/subsys.bak/ /var/lock/subsys
5、touch crond.pid ,然后重启crond
[root@localhost raid]# service crond start
Starting crond: [ OK ]
- crontab 不能开启,且报错`/var/run.bak/crond.pid': Input/output error
- 服务器报错:“/usr/local/var/run/nginx.pid”failed
- cron can't lock /var/run/crond.pid other may be 993: Resource temporarily unavailable
- cron: can’t lock /var/run/crond.pid, otherpid may be 2699: Resource temporarily unavailable
- (CRON) DEATH (can't lock /var/run/crond.pid, otherpid may be 206): Resource temporarily unavailable
- nfs的一个报错:mount.nfs: Input/output error
- linux 报错:-bash: /root/.bash_profile: Input/output error
- nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid"
- nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”
- [OpenSIPS-Users] ERROR: PID file /var/run/opensips.pid does notexist -- OpenSIPS start faile
- nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”
- mysql 启动报错 /usr/local/mysql//libexec/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid'
- mysql启动报can't create/write to file 'var/run/mysqld/mysqld.pid 错误解决办法
- sshfs Input/output error
- linux input/output error
- MySQL启动错误:Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
- 解决nginx: [error] open() "/usr/local/var/run/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/var/run/nginx.pid" failed错误
- C++笔记之常量与如何赋值
- PAT 1048. Find Coins (25)
- 学习如何避免10种最常见的C#误区
- hdu 5402 Travelling Salesman Problem 模拟构造
- 九度OJ 题目1074:对称平方数
- crontab 不能开启,且报错`/var/run.bak/crond.pid': Input/output error
- jquery的each()详细介绍
- VS2010版最常用的快捷键和其他快捷键
- Struts2中的OGNL表达式
- Android应用的自动升级、更新模块的实现完整方案+参考程序
- hdu5392
- 经典SQL语句集锦
- 笔试题:在一个字符串中查找子字符串的个数
- R语言之多元回归实战