[debian-mysql] Bug#648051: mysql-server clobbers /var/lib/mysql/lost+found if /var/lib/mysql is its own filesystem

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Nov 8 16:46:00 UTC 2011


Package: mysql-server
Version: 5.1.58-1
Severity: normal

I have /var/lib/mysql mounted as its own ext3 filesystem.

By default, the filesystem has a directory at its root named
lost+found, which is used for cleanup during bad filesystem checks.

When i install mysql-server, it mangles this directory (which doesn't
really belong to it) into "lost at 002bfound", and changes ownership on
it to mysql:mysql:

0 stylus:~# ls -l /var/lib/mysql/
total 20532
-rw-r--r-- 1 root  root         0 Nov  8 11:34 debian-5.1.flag
-rw-rw---- 1 mysql mysql 10485760 Nov  8 11:35 ibdata1
-rw-rw---- 1 mysql mysql  5242880 Nov  8 11:35 ib_logfile0
-rw-rw---- 1 mysql mysql  5242880 Nov  8 11:34 ib_logfile1
drwx------ 2 mysql mysql     4096 Nov  8 11:35 lost at 002bfound
drwx------ 2 mysql root      4096 Nov  8 11:35 mysql
-rw------- 1 root  root         6 Nov  8 11:35 mysql_upgrade_info
0 stylus:~#  

I don't think the server should be taking over this directory.

Thanks for maintaining mysql in debian,

  --dkg


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mysql-server depends on:
ii  mysql-server-5.1  5.1.58-1

mysql-server recommends no packages.

mysql-server suggests no packages.

-- no debconf information





More information about the pkg-mysql-maint mailing list