Wednesday, 21 August 2013

Re-mounting root partition on a live server

Re-mounting root partition on a live server

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:
MySQL dying because the filesystem disappeared for a microsecond. In which
case I'd just stop it temporarily.
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?

No comments:

Post a Comment