Console message cleanup (LU-1095)

[LU-5187] Make "precreate FID" console message more intelligible Created: 12/Jun/14  Updated: 02/Nov/15  Resolved: 02/Nov/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.8.0

Type: Technical task Priority: Minor
Reporter: Christopher Morrone Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: llnl

Rank (Obsolete): 14391

 Description   

Brian Behlendorf points out in the comments on patch 10394 that the following console warning message is not particularly intelligible as it stands.

From lustre/ofd/ofd_dev.c:

                /* This can happen if a new OST is formatted and installed
                 * in place of an old one at the same index.  Instead of
                 * precreating potentially millions of deleted old objects
                 * (possibly filling the OST), only precreate the last batch.
                 * LFSCK will eventually clean up any orphans. LU-14 */
                if (diff > 5 * OST_MAX_PRECREATE) {
                        diff = OST_MAX_PRECREATE / 2;
                        LCONSOLE_WARN("%s: precreate FID "DOSTID" is over %u "
                                      "larger than the LAST_ID "DOSTID", only "
                                      "precreating the last %u objects.\n",
                                      ofd_name(ofd), POSTID(&oa->o_oi),
                                      5 * OST_MAX_PRECREATE,
                                      POSTID(&oseq->os_oi), diff);
                        ofd_seq_last_oid_set(oseq, ostid_id(&oa->o_oi) - diff);
                }

Brian said:

I still don't think the console message itself is at all useful. Either Lustre should silently handle this case (if it can) and we can silence the message. Or the console message should be updated to include clear explanation of what's wrong and what an administrator needs to do. As it stands, I feel it's just noise when is only useful to a developer.

I agree that this message needs improvment.



 Comments   
Comment by Peter Jones [ 12/Jun/14 ]

Nathaniel

Could you please assist with this one?

Thanks

Peter

Comment by Nathaniel Clark [ 20/Jun/14 ]

http://review.whamcloud.com/10767

Comment by Christopher Morrone [ 26/Jun/14 ]

Nathaniel, please see Andreas's review of revision 1 of patch 10394. Andreas rejected the idea of just changing the logging level. Therefore this ticket's intent is to rework the actual message into something that is understandable and actionable by a system administrator.

Comment by Nathaniel Clark [ 30/Oct/14 ]

Chris,

There's a new revision with an altered Console warning (and the developer info is dumped into the HA debug level).

Comment by Gerrit Updater [ 02/Nov/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/10767/
Subject: LU-5187 ofd: Fix precreate console warning
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d9683d9cd5ecf7dd2d0ff24492a2117c4c61356b

Comment by Joseph Gmitter (Inactive) [ 02/Nov/15 ]

Landed for 2.8

Generated at Sat Feb 10 01:49:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.