MySQL must not use /tmp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server papercuts |
Confirmed
|
Medium
|
Clint Byrum | ||
mysql-dfsg-5.1 (Ubuntu) |
In Progress
|
Medium
|
Clint Byrum |
Bug Description
I noticed that the my.cnd points the tmpdir to /tmp, which IMHO might be fatal.
From the MySQL site:
If the MySQL server is acting as a replication slave, you should not set --tmpdir to point to a directory on a memory-based file system or to a directory that is cleared when the server host restarts. A replication slave needs some of its temporary files to survive a machine restart so that it can replicate temporary tables or LOAD DATA INFILE operations. If files in the temporary file directory are lost when the server restarts, replication fails.
http://
From the FHS:
/tmp/ Temporary files (see also /var/tmp). Often not preserved between system reboots.
http://
It might even be, that Ubuntu clears /tmp.
Anyhow, /tmp can be considered lost upon system restart - any file that should survive a system restart belong to /var/tmp
/var/tmp/ Temporary files to be preserved between reboots.
so please consider
tmpdir=/var/tmp
I dunno if apparmor needs to be adjusted, but I guess I will soon find out...
regards
Philipp
Related branches
- Thierry Carrez (community): Disapprove
- Ubuntu branches: Pending requested
-
Diff: 124 lines (+18/-31)4 files modifieddebian/additions/my.cnf (+1/-1)
debian/apparmor-profile (+2/-1)
debian/changelog (+14/-29)
debian/mysql-server-5.1.mysql.upstart (+1/-0)
affects: | ubuntu → mysql-dfsg-5.0 (Ubuntu) |
Changed in mysql-dfsg-5.0 (Ubuntu): | |
importance: | Undecided → Medium |
affects: | mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu) |
Changed in server-papercuts: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
milestone: | none → maverick-beta |
Changed in server-papercuts: | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
Changed in mysql-dfsg-5.1 (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Clint Byrum (clint-fewbar) |
Changed in mysql-dfsg-5.1 (Ubuntu): | |
status: | In Progress → Confirmed |
assignee: | Clint Byrum (clint-fewbar) → nobody |
tags: | added: patch |
security vulnerability: | no → yes |
Changed in server-papercuts: | |
milestone: | maverick-beta → none |
Changed in mysql-dfsg-5.1 (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Confirmed → In Progress |
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Karmic Koala. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http:// www.ubuntu. com/testing/. Thanks again and we appreciate your help.