From: Lei Feng Date: Thu, 28 Oct 2021 11:09:12 +0000 (-0400) Subject: EX-4158 lipe: keep cache data when PCC is stopped by lpcc service X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=6205f215a41fb987a04bde02e19c6fa1a53d3d3d;p=fs%2Flustre-release.git 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 --- 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