Open mrolyat opened 4 years ago
when i create gpfs with spectrumscale ,got this error, how to fix it ?
[ INFO ] failed: [node101 -> node101] (item={u'changed': True, u'uid': 0, u'dest': u'/var/mmfs/tmp/StanzaFile.new.gpfs_test', u'owner': u'root', u'diff': [], u'size': 336, u'src': u'/root/.ansible/tmp/ansible-tmp-1719455659.77-25630-66601711026952/source', u'ansible_loop_var': u'item', u'group': u'root', u'failed': False, u'checksum': u'7b2bd644c284f21382697e42f330b92c923914c2', u'md5sum': u'b9d3cb905d408898a776c9bfd7483e1d', u'item': u'gpfs_test', u'state': u'file', u'gid': 0, u'secontext': u'system_u:object_r:var_t:s0', u'mode': u'0644', u'invocation': {u'module_args': {u'directory_mode': None, u'force': True, u'remote_src': None, u'dest': u'/var/mmfs/tmp/StanzaFile.new.gpfs_test', u'selevel': None, u'_original_basename': u'StanzaFile_fs.j2', u'delimiter': None, u'regexp': None, u'owner': None, u'follow': False, u'validate': None, u'local_follow': None, u'src': u'/root/.ansible/tmp/ansible-tmp-1719455659.77-25630-66601711026952/source', u'group': None, u'unsafe_writes': False, u'checksum': u'7b2bd644c284f21382697e42f330b92c923914c2', u'seuser': None, u'serole': None, u'content': None, u'setype': None, u'mode': None, u'attributes': None, u'backup': False}}}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["/usr/lpp/mmfs/bin/mmcrfs", "gpfs_test", "-F", "/var/mmfs/tmp/StanzaFile.new.gpfs_test", "-B", "4M", "-M", "3", "-m", "2", "-R", "3", "-r", "2", "-n", "32", "-A", "yes", "-T", "/gpfs"], "delta": "0:00:00.619736", "end": "2024-06-26 22:34:20.751765", "item": {"ansible_loop_var": "item", "changed": true, "checksum": "7b2bd644c284f21382697e42f330b92c923914c2", "dest": "/var/mmfs/tmp/StanzaFile.new.gpfs_test", "diff": [], "failed": false, "gid": 0, "group": "root", "invocation": {"module_args": {"_original_basename": "StanzaFile_fs.j2", "attributes": null, "backup": false, "checksum": "7b2bd644c284f21382697e42f330b92c923914c2", "content": null, "delimiter": null, "dest": "/var/mmfs/tmp/StanzaFile.new.gpfs_test", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": null, "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/root/.ansible/tmp/ansible-tmp-1719455659.77-25630-66601711026952/source", "unsafe_writes": false, "validate": null}}, "item": "gpfs_test", "md5sum": "b9d3cb905d408898a776c9bfd7483e1d", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:var_t:s0", "size": 336, "src": "/root/.ansible/tmp/ansible-tmp-1719455659.77-25630-66601711026952/source", "state": "file", "uid": 0}, "msg": "non-zero return code", "rc": 22, "start": "2024-06-26 22:34:20.132029", "stderr": "Incompatible parameters: Unable to create file system.\nChange one or more of the following as suggested and try again:\n increase the number of failure groups\n decrease the value for -r\nmmcrfs: tscrfs failed. Cannot create gpfs_test\nmmcrfs: Command failed. Examine previous error messages to determine cause.", "stderr_lines": ["Incompatible parameters: Unable to create file system.", "Change one or more of the following as suggested and try again:", " increase the number of failure groups", " decrease the value for -r", "mmcrfs: tscrfs failed. Cannot create gpfs_test", "mmcrfs: Command failed. Examine previous error messages to determine cause."], "stdout": "\nThe following disks of gpfs_test will be formatted on node node101:\n nsd1: size 102400 MB\n nsd2: size 102400 MB\n nsd3: size 102400 MB\nFormatting file system ...\nDisks up to size 1.54 TB can be added to storage pool system.", "stdout_lines": ["", "The following disks of gpfs_test will be formatted on node node101:", " nsd1: size 102400 MB", " nsd2: size 102400 MB", " nsd3: size 102400 MB", "Formatting file system ...", "Disks up to size 1.54 TB can be added to storage pool system."]}
Looks like some issue with create filesystem parameter value.
"stderr_lines": ["Incompatible parameters: Unable to create file system.", "Change one or more of the following as suggested and try again:", " increase the number of failure groups", " decrease the value for -r", "mmcrfs: tscrfs failed. Cannot create gpfs_test",
yes,don't know how to fix
I see in your error, there are suggestion , please validate your stanza file
["Incompatible parameters: Unable to create file system.", "Change one or more of the following as suggested and try again:", " increase the number of failure groups", " decrease the value for -r"
KC documentation link: https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=reference-mmcrfs-command
Looking to improve error messaging usability and problem determination by suppressing extra error messages and only posting the 'mm' command output.
Example in current Ansible run: