MySQL Forums
Forum List  »  General

MySQL fails with tablespace on OCFS2
Posted by: Peter Steinbach
Date: September 30, 2009 11:27AM

I have set up an cluster with ocfs2 on top of drbd in primary/primary mode.

As long as the datadir is in /var/lib/mysql everything works fine.
But as soon as I put the datadir on the ocfs2 filesystem
/mnt/data/mysql
mysql fails with:
[Ubuntu] root@fs2:/etc# mysqld --safe-mode
090930 18:08:14 [Warning] Can't create test file /mnt/data/mysql/fs2.lower-test
090930 18:08:14 [Warning] Can't create test file /mnt/data/mysql/fs2.lower-test
090930 18:08:14 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.

When I temporarily login as user mysql and create the same file it works:
$ whoami
mysql
$ echo a >/mnt/data/mysql/fs2.lower-test
$ ls -al
-rw-r--r-- 1 mysql mysql 2 2009-09-30 19:15 fs2.lower-test

So the mysql message seems to be misleading.

Some more facts:
- still th same error if filesystem is unmounted on the other machine of the cluster
- O2CB_HEARTBEAT_THRESHOLD=31
- Ubuntu 8.043
- MySQL server is mysql-server 5.0.51a
- ocfs2-tools 1.3.9
- drbd8-utils 2:8.0.11-0

Has anybody experienced a similar problem? May it have to do with locking or Extended attributes?
I really need to have the table space on the cluster, that's the reason why we built this cluster.

Options: ReplyQuote


Subject
Written By
Posted
MySQL fails with tablespace on OCFS2
September 30, 2009 11:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.