heddhunter
June 3rd, 2008, 11:31 PM
i'm having a very weird problem installing mysql. i created a big RAID-5 array (/dev/md0) mounted on /var/media. if i do
mysql_install_db --datadir=/var/media/mysql
i get:
$ sudo mysql_install_db --datadir=/var/media/mysql
Installing MySQL system tables...
080603 20:22:53 [Warning] Can't create test file /var/media/mysql/monolith.lower-test
080603 20:22:53 [Warning] Can't create test file /var/media/mysql/monolith.lower-test
ERROR: 1005 Can't create table 'db' (errno: 13)
080603 20:22:53 [ERROR] Aborting
080603 20:22:53 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
It works just fine if I install it on /var/lib/mysql, or /tmp, or anywhere else basically. Of course, I'm out of space everywhere else and I want to use the giant RAID i put together specifically for this purpose...
I don't have any problem creating files on this partition as root, or as a normal user in a directory that has user write permission.
I just noticed message like this in the system log:
Jun 3 20:22:53 monolith kernel: [ 9834.697327] audit(1212549773.394:53): type=1503 operation="inode_create" requested_mask="w::" denied_mask="w::" name="/var/media/mysql/monolith.lower-test" pid=11679 profile="/usr/sbin/mysqld" namespace="default"
That's a new one on me... ?
mysql_install_db --datadir=/var/media/mysql
i get:
$ sudo mysql_install_db --datadir=/var/media/mysql
Installing MySQL system tables...
080603 20:22:53 [Warning] Can't create test file /var/media/mysql/monolith.lower-test
080603 20:22:53 [Warning] Can't create test file /var/media/mysql/monolith.lower-test
ERROR: 1005 Can't create table 'db' (errno: 13)
080603 20:22:53 [ERROR] Aborting
080603 20:22:53 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
It works just fine if I install it on /var/lib/mysql, or /tmp, or anywhere else basically. Of course, I'm out of space everywhere else and I want to use the giant RAID i put together specifically for this purpose...
I don't have any problem creating files on this partition as root, or as a normal user in a directory that has user write permission.
I just noticed message like this in the system log:
Jun 3 20:22:53 monolith kernel: [ 9834.697327] audit(1212549773.394:53): type=1503 operation="inode_create" requested_mask="w::" denied_mask="w::" name="/var/media/mysql/monolith.lower-test" pid=11679 profile="/usr/sbin/mysqld" namespace="default"
That's a new one on me... ?