{
    "mode": "man",
    "parameter": "era_check",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/era_check/8/json",
    "generated": "2026-07-05T11:55:22Z",
    "synopsis": "eracheck [options] {device|file}",
    "sections": {
        "NAME": {
            "content": "eracheck - validate era metadata on device or file.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "eracheck [options] {device|file}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "eracheck checks era metadata created by the device-mapper era target on a device or file.\n\nThis tool cannot be run on live metadata.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h, --help",
                    "content": "Print help and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-V, --version",
                    "content": "Print version information and exit.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-q, --quiet",
                    "content": "Suppress output messages, return only exit code.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "--super-block-only",
                    "content": "Only check the superblock is present.\n",
                    "long": "--super-block-only"
                }
            ]
        },
        "EXAMPLE": {
            "content": "Analyse thin provisioning metadata on logical volume /dev/vg/metadata:\n\n$ eracheck /dev/vg/metadata\n\nThe device may not be actively used by the target when running.\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "eracheck returns an exit code of 0 for success or 1 for error.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "eradump(8), erarestore(8), erainvalidate(8)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Joe Thornber <ejt@redhat.com>\n\n\n\nSystem Manager's Manual                  Device Mapper Tools                            eracheck(8)",
            "subsections": []
        }
    },
    "summary": "eracheck - validate era metadata on device or file.",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print help and exit."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Print version information and exit."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Suppress output messages, return only exit code."
        },
        {
            "flag": "",
            "long": "--super-block-only",
            "arg": null,
            "description": "Only check the superblock is present."
        }
    ],
    "examples": [
        "Analyse thin provisioning metadata on logical volume /dev/vg/metadata:",
        "$ eracheck /dev/vg/metadata",
        "The device may not be actively used by the target when running."
    ],
    "see_also": [
        {
            "name": "eradump",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/eradump/8/json"
        },
        {
            "name": "erarestore",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/erarestore/8/json"
        },
        {
            "name": "erainvalidate",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/erainvalidate/8/json"
        }
    ]
}