Whamcloud - gitweb
EX-4583 lipe: show all lpcc information in 'lpcc status' command
authorLei Feng <flei@whamcloud.com>
Wed, 19 Jan 2022 02:02:20 +0000 (21:02 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 10 Mar 2022 04:32:56 +0000 (04:32 +0000)
commite4274f2f5d0b90d57df3affef8ac7bc2a8aedd30
treec3354f3bc0e5f53b6cb2f4b3b898bfa9637243f3
parent1f9fe5b9f0ca116e28a1f5f01d10c5ad641aab8b
EX-4583 lipe: show all lpcc information in 'lpcc status' command

Collect lpcc config, lpcc_purge stats, and lustre stats related to
lpcc to together and show in 'lpcc status' command. 'lpcc status-all'
is an alias of 'lpcc status'. The output of 'lpcc status' looks like:
{
    "/mnt/lustre": {
        "pcc": [
            {
                "mount": "/mnt/lustre",
                "cache": "/mnt/pcc",
                ...
            },
            {
                "mount": "/mnt/lustre",
                "cache": "/mnt/pcc2",
                ...
            }
        ],
        "fs_stats": {
        }
}

Change-Id: I032763fb3b45646330b13f5cef34ce8658bddfe4
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanity-pcc
Reviewed-on: https://review.whamcloud.com/46191
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/lpcc
lipe/man/lpcc-status.8