# xtrabackup 8.0.4 prepare fails with Linux OS errors

**URL:** <https://forums.percona.com/t/xtrabackup-8-0-4-prepare-fails-with-linux-os-errors/6875>\
**Category:** Percona XtraBackup\
**Created:** [February 28, 2019, 8:42am UTC](https://forums.percona.com/t/xtrabackup-8-0-4-prepare-fails-with-linux-os-errors/6875 "2019-02-28T08:42:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cberg](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cberg](https://forums.percona.com/u/cberg)\
**Post date:** [February 28, 2019, 8:42am UTC](https://forums.percona.com/t/xtrabackup-8-0-4-prepare-fails-with-linux-os-errors/6875/1 "2019-02-28T08:42:14Z")

</div>

Hello;

When trying to build a cluster, the prepare of the backup target-dir is failing with OS errors. More details below:

Contents of xtrabackup\_info:

tool\_version = 8.0.4  
ibbackup\_version = 8.0.4  
server\_version = 8.0.13-4  
start\_time = 2019-02-27 16:40:44  
end\_time = 2019-02-27 16:41:56  
lock\_time = 0  
binlog\_pos = filename ‘mysql1-dba-bin.000023’, position ‘155’  
innodb\_from\_lsn = 0  
innodb\_to\_lsn = 99454905066  
partial = N  
incremental = N  
format = file  
compressed = N  
encrypted = N

strace output snippet where OS messages are displayed:

fcntl(3, F\_SETLK, {l\_type=F\_WRLCK, l\_whence=SEEK\_SET, l\_start=0, l\_len=0}) = -1 EIO (Input/output error)  
write(2, “Unable to lock ./xtrabackup\_logf”…, 45Unable to lock ./xtrabackup\_logfile error: 5  
) = 45  
close(3) = 0  
write(2, “Operating system error number 5 “…, 53Operating system error number 5 in a file operation.  
) = 53  
write(2, “Error number 5 means 'Input/outp”…, 42Error number 5 means ‘Input/output error’  
) = 42  
write(2, “Some operating system error numb”…, 126Some operating system error numbers are described at [url][http://dev.mysql.com/doc/refman/8.0/en/operating-system-error-codes.html[/url]](http://dev.mysql.com/doc/refman/8.0/en/operating-system-error-codes.html%5B/url%5D)  
) = 126  
write(2, “xtrabackup: Warning: cannot open”…, 73xtrabackup: Warning: cannot open ./xtrabackup\_logfile. will try to find.  
) = 73  
open(”./ib\_logfile0”, O\_RDWR) = -1 ENOENT (No such file or directory)  
write(2, "Operating system error number 2 “…, 53Operating system error number 2 in a file operation.  
) = 53  
write(2, “The error means the system canno”…, 59The error means the system cannot find the path specified.  
) = 59  
write(2, " xtrabackup: Fatal error: canno”…, 61 xtrabackup: Fatal error: cannot find ./xtrabackup\_logfile.  
) = 61

The backup runs fine, and this file (along with others) are in the target-dir.

Any insight into what the problem would be is appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![cberg](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cberg](https://forums.percona.com/u/cberg)\
**Post date:** [February 28, 2019, 5:23pm UTC](https://forums.percona.com/t/xtrabackup-8-0-4-prepare-fails-with-linux-os-errors/6875/2 "2019-02-28T17:23:45Z")

</div>

It seems the problem is due to the backup being a NFS data domain mount. If I put the backup directory onto local storage, the prepare runs fine. Are there any suggestions on NFS mount options for this scenario? We are a Oracle MySQL site evaluating Percona, and there isn’t a problem with backup/restore of MySQL instance using the MySQL Enterprise Backup.

Thanks

---

<div class="post-metadata">

**Author:** ![sucre](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sucre](https://forums.percona.com/u/sucre)\
**Post date:** [January 21, 2022, 9:39am UTC](https://forums.percona.com/t/xtrabackup-8-0-4-prepare-fails-with-linux-os-errors/6875/3 "2022-01-21T09:39:31Z")

</div>

hello! have you fixed this error yet?I get into this problem to ,I am looking forward to get your help ,thanks!

---

<div class="post-metadata">

**Author:** ![sucre](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sucre](https://forums.percona.com/u/sucre)\
**Post date:** [January 25, 2022, 2:00am UTC](https://forums.percona.com/t/xtrabackup-8-0-4-prepare-fails-with-linux-os-errors/6875/4 "2022-01-25T02:00:30Z")

</div>

change the nfs mount point from NFSv3 to NFSv4 worked 🙂
