From 6205f215a41fb987a04bde02e19c6fa1a53d3d3d Mon Sep 17 00:00:00 2001 From: Lei Feng Date: Thu, 28 Oct 2021 07:09:12 -0400 Subject: [PATCH] EX-4158 lipe: keep cache data when PCC is stopped by lpcc service If a PCC backend is managed by lpcc service, keep the cache data in PCC backend when it is stopped by lpcc service. Change-Id: I15e80d28ff017573b8f7b24449979072256ab6b2 Signed-off-by: Lei Feng Test-Parameters: trivial testlist=sanity-pcc env=ONLY=200-202,ONLY_REPEAT=10 \ clientextra_install_params="--packages lipe-lpcc" Reviewed-on: https://review.whamcloud.com/45396 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lipe/lpcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lipe/lpcc b/lipe/lpcc index e5ce4ff..960e1db 100755 --- a/lipe/lpcc +++ b/lipe/lpcc @@ -113,7 +113,7 @@ class LpccService: def _del_pcc(self): eprint("Deleting PCC...") - cmdline = ['lctl', 'pcc', 'del', self.lpcc_mount, self.lpcc_cache] + cmdline = ['lctl', 'pcc', 'del', '--keep', self.lpcc_mount, self.lpcc_cache] eprint(cmdline) returncode = subprocess.call(cmdline) return returncode -- 1.8.3.1