O_DIRECT warnings & can I trust "innobackupex: completed OK!" message?

54 views
Skip to first unread message

Xavier

unread,
Oct 7, 2011, 11:23:38 AM10/7/11
to perco...@googlegroups.com
Good morning,

I have a gluster 3.2 filesystem I'm using for storage, mounted using the gluster native mount (as opposed to nfs) for performance, and I'm perfoming backups of a mysql-5.5.15-linux2.6-x86_64 server on Fedora release 10 with innobackupex (InnoDB Backup Utility v1.5.1-xtrabackup) as described in the Percona documentation. I get tons of these messages printed for both full backup and prepare stages:

111006 17:01:31 InnoDB: Failed to set O_DIRECT on file ./myPorkyDB/myPorkyTable.ibd: OPEN: Invalid argument, continuing anyway
111006 17:01:31 InnoDB: O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662

A little later on in each process I get:

111006 17:01:35 innobackupex: completed OK!

Does this mean that the backup succeeded irrespective of the messages regarding the failure to set O_DIRECT since it was able to complete the backup by "continuing anyway"?

Thank you for your time,
X.


Steven Ayre

unread,
Oct 7, 2011, 11:41:53 AM10/7/11
to perco...@googlegroups.com
I'm a not one of the developers, but AFAIK the O_DIRECT is only to
disable caching the read data since the copy will not go back over
data it has already copied so it's better not to add it to the cache.
I don't think it'll cause a problem.

-Steve

> --
> You received this message because you are subscribed to the Google Groups
> "Percona Dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/percona-dev/-/Umz29daNntwJ.
> To post to this group, send email to perco...@googlegroups.com.
> To unsubscribe from this group, send email to
> percona-dev...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/percona-dev?hl=en.
>

Alexey Kopytov

unread,
Oct 11, 2011, 8:01:43 AM10/11/11
to perco...@googlegroups.com
Hi Xavier,

The message is more a warning than an error. Apparently O_DIRECT is not
supported by gluster. So InnoDB first tries to use it, and falls back to
a buffered IO if that fails.

So yes, you can ignore those messages.

Reply all
Reply to author
Forward
0 new messages