[Starlingx-discuss] Issue when resize2fs on /dev/drbd[x]

Bai, Haiqing Haiqing.Bai at windriver.com
Wed Dec 30 10:46:11 UTC 2020


Any idea about the below issue during running playbook, or how to make the lv disk "/dev/drbd[x]" not "read-only" files system?  Thanks.

controller-0:~$ ansible-playbook /usr/share/ansible/stx-ansible/playbooks/bootstrap.yml
TASK [bootstrap/persist-config : Fail if file system resizing failed for a reason other than it has been done already] ***
failed: [localhost] (item={'msg': 'non-zero return code', 'cmd': ['resize2fs', '/dev/drbd0'], 'stdout': '', 'stderr': 'resize2fs 1.44.6 (5-Mar-2019)\nopen: Read-only file system while opening /dev/drbd0', 'rc': 1, 'start': '2020-12-30 09:26:23.094706', 'end': '2020-12-30 09:26:23.096630', 'delta': '0:00:00.001924', 'changed': True, 'failed': False, 'invocation': {'module_args': {'_raw_params': 'resize2fs /dev/drbd0', 'warn': True, '_uses_shell': False, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [], 'stderr_lines': ['resize2fs 1.44.6 (5-Mar-2019)', 'open: Read-only file system while opening /dev/drbd0'], 'failed_when_result': False, 'item': 'resize2fs /dev/drbd0', 'ansible_loop_var': 'item'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "item", "changed": true, "cmd": ["resize2fs", "/dev/drbd0"], "delta": "0:00:00.001924", "end": "2020-12-30 09:26:23.096630", "failed": false, "failed_when_result": false, "invocation": {"module_args": {"_raw_params": "resize2fs /dev/drbd0", "_uses_shell": false, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true}}, "item": "resize2fs /dev/drbd0", "msg": "non-zero return code", "rc": 1, "start": "2020-12-30 09:26:23.094706", "stderr": "resize2fs 1.44.6 (5-Mar-2019)\nopen: Read-only file system while opening /dev/drbd0", "stderr_lines": ["resize2fs 1.44.6 (5-Mar-2019)", "open: Read-only file system while opening /dev/drbd0"], "stdout": "", "stdout_lines": []}, "msg": "resize2fs /dev/drbd0 failed for the following reason: resize2fs 1.44.6 (5-Mar-2019)\nopen: Read-only file system while opening /dev/drbd0."}

B,R
Haiqing Bai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20201230/22e3631f/attachment-0001.html>


More information about the Starlingx-discuss mailing list