Whamcloud - gitweb
LU-13654 target: print info of evicted clients to syslog 78/38878/2
authorHongchao Zhang <hongchao@whamcloud.com>
Sun, 31 May 2020 21:00:01 +0000 (05:00 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 Mar 2023 23:12:12 +0000 (23:12 +0000)
During recovery, the information of the evicted clients could be
useful for administrator to evaluate the affect of the recovery,
the debug log could be not easy to get in this case, then it is
better to dump it to syslog.

Change-Id: Ib32e10b1bbf12fe65be7862a018144827201e58a
Test-Parameters: trivial
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/38878
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/genops.c

index fb719bb..1dcd579 100644 (file)
@@ -1572,9 +1572,9 @@ void class_disconnect_stale_exports(struct obd_device *obd,
 
                list_move(&exp->exp_obd_chain, &work_list);
                evicted++;
-               CDEBUG(D_HA, "%s: disconnect stale client %s@%s\n",
-                      obd->obd_name, exp->exp_client_uuid.uuid,
-                      obd_export_nid2str(exp));
+               CWARN("%s: disconnect stale client %s@%s\n",
+                     obd->obd_name, exp->exp_client_uuid.uuid,
+                     obd_export_nid2str(exp));
                print_export_data(exp, "EVICTING", 0, D_HA);
        }
        spin_unlock(&obd->obd_dev_lock);