crm command fails with OSError: Disk quota exceeded
This document (000021617) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise High Availability Extension 15
Situation
When executing the crm commands, the following error message is displayed:
# crm status
Traceback (most recent call last):
File "/usr/sbin/crm", line 35, in <module>
from crmsh import main
File "/usr/lib/python3.6/site-packages/crmsh/main.py", line 18, in <module>
from . import ui_root
File "/usr/lib/python3.6/site-packages/crmsh/ui_root.py", line 25, in <module>
from . import ui_cluster
File "/usr/lib/python3.6/site-packages/crmsh/ui_cluster.py", line 16, in <module>
from . import bootstrap
File "/usr/lib/python3.6/site-packages/crmsh/bootstrap.py", line 65, in <module>
COROSYNC_CONF_ORIG = tmpfiles.create()[1]
File "/usr/lib/python3.6/site-packages/crmsh/tmpfiles.py", line 56, in create
fd, fname = mkstemp(dir=directory, prefix=prefix)
File "/usr/lib64/python3.6/tempfile.py", line 344, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/usr/lib64/python3.6/tempfile.py", line 262, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
OSError: [Errno 122] Disk quota exceeded: '/tmp/crmsh_337gu7x_'
Resolution
To resolve this issue, consider the following options:
- Remove unnecessary files from the
/tmp
file system to free up space. - Disable the quota for the file system if enforcing a limit on its usage is no longer necessary.
- Increase the file system quota to allow more disk usage.
Cause
The /tmp
directory resides on a file system with an enforced quota. Once this quota is reached, it prevents the crm
process from creating temporary files in the /tmp
directory, leading to the error.
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:000021617
- Creation Date: 13-Nov-2024
- Modified Date:11-Dec-2024
-
- SUSE Linux Enterprise High Availability Extension
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com