"sudo: Can't mkdir /var/run/sudo/%user%: File exists"
For some reason, my mysql server (debian lenny) has begun having semi-frequent flakiness. I don't think it's MySql itself that is causing the problems - but rather something "system related".
I have looked at all the typical suspects (/var being full, etc), and nothing in any of the log files jumps out at me. But there is 1 thing that might be an indicator: The error message in the subject line. What is really wierd is that the sudo command DOES work. Rebooting the machine resolves the problem ... for a while. Which is to say, I do not get the error message every time I use the sudo command. Last indicator is in /var/log/auth.log - logons (and sudo's) during the period of time of system flakiness show no entries in the auth.log file. Despite the fact that I can indeed logon, su to root, and reboot the computer. |
Quote:
What happened at that time? Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
touch: cannot touch `/var/tmp/testfile': Read-only file system And then this: vmsql:~# mount /dev/sda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) vmsql:~# ls -alF total 0 vmsql:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 16T 16T 2.7G 100% / tmpfs 1015M 0 1015M 0% /lib/init/rw udev 10M 52K 10M 1% /dev tmpfs 1015M 0 1015M 0% /dev/shm Ok, so what would cause /dev/sda1 to mount ro? |
Quote:
|
Just a follow - we finally figured out what was corrupting the sda1 disk.
Answer: VMWare This server is a VMWare 4.0 virtual machine. The Lenny kernal we were running was *slightly* older (2.6.18). Upgrading to 2.6.26-2-688 seems to have solved the problem. |
All times are GMT -5. The time now is 05:51 AM. |