Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Fix
-
5.5.29
-
None
-
None
-
CentOS 6.3
Description
Using as data directory a partition mounted like
[root@mysql mysql]# cat /etc/fstab | grep data
UUID=63de9746-cda7-45f2-b397-7a25ca4ff8be /data ext4 defaults,noatime,nodiratime,noacl,data=journal 1 2
Will result in:
130209 12:37:54 InnoDB: Failed to set O_DIRECT on file ./a/b.ibd: CREATE: Invalid argument, continuing anyway
130209 12:37:54 InnoDB: O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662
For every InnoDB table (even for innodb_data)
130209 12:29:41 InnoDB: Failed to set O_DIRECT on file ./innodb_data: OPEN: Invalid argument, continuing anyway
130209 12:29:41 InnoDB: O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662
MySQL Bug 26662 -> http://bugs.mysql.com/bug.php?id=26662
Also please note that /data is a partition on a software RAID.
The 2 underlying disks have write cache disabled:
[root@mysql mysql]# hdparm -W /dev/sda
/dev/sda:
write-caching = 0
[root@mysql mysql]# hdparm -W /dev/sdb
/dev/sdb:
write-caching = 0