lrbd fails to start with: "ERROR: list index out of range"
This document (7018736) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Traceback (most recent call last):
File "/usr/sbin/lrbd", line 2834, in <module>
main(args)
File "/usr/sbin/lrbd", line 2760, in main
iscsi = Iscsi()
File "/usr/sbin/lrbd", line 1353, in __init__
wwn.generate(self.iqns)
File "/usr/sbin/lrbd", line 1462, in generate
self._save(pentry, entry, target, _uuid)
File "/usr/sbin/lrbd", line 1480, in _save
vus = open(path[0], "w")
IndexError: list index out of range
Resolution
To verify the status:
systemctl is-enabled lrbd.service
To change the status:
systemctl enable lrbd.service
Cause
Additional Information
- Edit "/etc/modprobe.d/99-local.conf" and add the line: options rbd single_major=Y
- Recreate the initrd so it includes the modified file by executing: mkinitrd
- Reboot the node.
To verify the current setting execute the below which should return "Y" eg. enabled:
:~ # cat /sys/module/rbd/parameters/single_major
Y
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:7018736
- Creation Date: 24-Mar-2017
- Modified Date:03-Mar-2020
-
- SUSE Enterprise Storage
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com