[LU-12983] OBD_IOC_LLOG_PRINT failed: No such file or directory Created: 19/Nov/19 Updated: 19/Nov/21 Resolved: 06/Jan/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Mahmoud Hanafi | Assignee: | Peter Jones |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
Trying to print out params log we get error # lctl --device MGS llog_print param OBD_IOC_LLOG_PRINT failed: No such file or directory I dumped the params file via debugfs. It looks fine. It does have 216 records. Here is strace out
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x66, 0x7f, 0x08), 0x7fffffffc9d0) = 0
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x66, 0xc0, 0x08), 0x7fffffffc9d0) = -1 ENOENT (No such file or directory)
write(2, "OBD_IOC_LLOG_PRINT failed: No su"..., 53OBD_IOC_LLOG_PRINT failed: No such file or directory
) = 53
rt_sigaction(SIGINT, {0x40a140, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x2aaaaaf0b5f0}, NULL, 8) = 0
exit_group(1) = ?
|
| Comments |
| Comment by Oleg Drokin [ 21/Nov/19 ] |
|
hm, I suspect this might be because MGS is not up or something like that? can you please enable -1 debug log (lctl set_param_debug=-1) repeat the llog_print lctl command and thel do "lctl dk >/tmp/log" if this is a working system that you are using you might want to capture "lctl get_param debug" output first and then restore it by repeating lctl set_param debug= with that output afterwards. |
| Comment by Oleg Drokin [ 21/Nov/19 ] |
|
also please do "lctl dl" and attach the output as well. |
| Comment by Mahmoud Hanafi [ 21/Nov/19 ] |
|
Got the debug output requested. |
| Comment by Andreas Dilger [ 22/Nov/19 ] |
|
Did you try "lctl --device MGS llog_print params" (note the 's' at the end)? That is the name of the parameter file, not "param". |
| Comment by Andreas Dilger [ 22/Nov/19 ] |
|
Note, if this is documented incorrectly somewhere, please let us know so that the documentation can be fixed. |
| Comment by Andreas Dilger [ 22/Nov/19 ] |
|
PS: what Lustre version is in use here? The "Affects Version:" field is blank. I'm seeing similar issues with an older 2.10, but I believe this is fixed in 2.12. |
| Comment by Andreas Dilger [ 22/Nov/19 ] |
|
PPS: as a temporary workaround, you can use the following commands to dump this log: debugfs -c -R "dump CONFIGS/params /tmp/debug" /dev/<mgt_device> llog_reader /tmp/debug Where the <mgt_device> is the block device where the MGT info is stored (may be MDT device, or standalone MGT device). |
| Comment by Mahmoud Hanafi [ 22/Nov/19 ] |
|
This filesystem was just upgraded to l2.12.2 and we started to see this issue. FYI the filesystem was created with l2.4. The command was working in l2.10.8. The missing "s" was a cut and past issue.
# lctl --device MGS llog_print params
OBD_IOC_LLOG_PRINT failed: Inappropriate ioctl for device
|
| Comment by Mahmoud Hanafi [ 06/Jan/21 ] |
|
We can close this for now |