io_setup failed errors when using multipath or LVM commands
This document (7022738) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12 SP3
SUSE Linux Enterprise Server 12 SP2
SUSE Linux Enterprise Server 12 SP1
Situation
multipath or LVM commands outputs `io_setup failed' messages. The following error messages have been observed in the output after running `multipath -ll', `multipath -v3' or LVM commands:
# lvs
io_setup failed
Failed to create bcache io engine.
# pvs
io_setup failed
Failed to create bcache io engine.
# vgs
io_setup failed
Failed to create bcache io engine.
Resolution
Increasing (tripling) the value of aio-max-nr resolves the errors.
These changes can be performed by adding or modifying the following in /etc/sysctl.conf:
fs.aio-max-nr = 1048576
or adding an entry to a local sysctl file, for example, appending the following to /etc/sysctl.d/99-sysctl.conf:
fs.aio-max-nr = 1048576
Cause
aio-max-nr
value was set too low
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7022738
- Creation Date: 15-Mar-2018
- Modified Date:12-Feb-2025
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com