1

We've got a handful of apache/PHP/mysql servers running here, and I've noticed that not one of them have the noatime option specified in any of their fstabs. Given that the PHP applications running on them tend to spider out into dozens of includes for every request I figure we should be able to decrease a bit of the load on the filesystem by turning off atime tracking.

I've checked around and no one either needs to know the access times on anything, or was even aware that that was a thing, so what I would like to do is simply:

mount -o remount,noatime /

However, there are 2 concerns:

  1. MySQL dying because the filesystem disappeared for a microsecond. In which case I'd just stop it temporarily.
  2. The OS dying because of the same.

I'm not crazy about the prospect of rebooting these machines since most of them have several times more uptime as I've been with this company, and who knows what is going to go sideways on a reboot.

So, is there any actual, fact-based reason why I should not remount the root partition while the server is running?

Sammitch
  • 2,161

1 Answers1

1

There should be no expected issues just from running this command (otherwise the man page will be full of dire warnings for sure). If things die, then it would not be due to atime update turned off, but some hardware problems you have. that remount simply turns off the atime updates and will thus have LESS disk usage and therefore make things less likely to die.

Have done this sort of things many times and never see any issue. If you are still concerned and if you can later restart the system or mysql, you certainly can do so.

johnshen64
  • 6,035