{
    "content": [
        {
            "type": "text",
            "text": "# fsadm(8) (man)\n\n**Summary:** fsadm — utility to resize or check filesystem on a device\n\n**Synopsis:** fsadm [options] check device\nfsadm [options] resize device [newsize]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -e | --ext-offline | — | Unmount ext2/ext3/ext4 filesystem before doing resize. |\n| -f | --force | — | Bypass some sanity checks. |\n| -h | --help | — | Display the help text. |\n| -n | --dry-run | — | Print commands without running them. |\n| -v | --verbose | — | Be more verbose. |\n| -y | --yes | — | Answer \"yes\" at any prompts. |\n| -c | --cryptresize | — | Resize dm-crypt mapping together with filesystem detected on the device. The dm-crypt device must be recognizable by cry |\n\n## Examples\n\n- `Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.  If /dev/vg/test con‐`\n- `tains  ext2/ext3/ext4  filesystem it will be unmounted prior the resize.  All [y/n] questions`\n- `will be answered 'y'.`\n\n## See Also\n\n- lvm(8)\n- lvresize(8)\n- lvm.conf(5)\n- fsck(8)\n- tune2fs(8)\n- resize2fs(8)\n- reiserfstune(8)\n- resizereiserfs(8)\n- xfsinfo(8)\n- xfsgrowfs(8)\n- xfscheck(8)\n- cryptsetup(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (1 lines) — 7 subsections\n  - -e --ext-offline (2 lines)\n  - -f --force (2 lines)\n  - -h --help (2 lines)\n  - -n --dry-run (2 lines)\n  - -v --verbose (2 lines)\n  - -y --yes (2 lines)\n  - -c --cryptresize (8 lines)\n- **DIAGNOSTICS** (5 lines)\n- **EXAMPLES** (4 lines) — 1 subsections\n  - fsadm -e -y resize /dev/vg/test 1000M (1 lines)\n- **ENVIRONMENT VARIABLES** (6 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\nfsadm — utility to resize or check filesystem on a device\n\n### SYNOPSIS\n\nfsadm [options] check device\nfsadm [options] resize device [newsize]\n\n### DESCRIPTION\n\nfsadm utility checks or resizes the filesystem on a device.  It tries to use the same API for\next2, ext3, ext4, ReiserFS and XFS filesystem.\n\n### OPTIONS\n\n#### -e --ext-offline\n\nUnmount ext2/ext3/ext4 filesystem before doing resize.\n\n#### -f --force\n\nBypass some sanity checks.\n\n#### -h --help\n\nDisplay the help text.\n\n#### -n --dry-run\n\nPrint commands without running them.\n\n#### -v --verbose\n\nBe more verbose.\n\n#### -y --yes\n\nAnswer \"yes\" at any prompts.\n\n#### -c --cryptresize\n\nResize dm-crypt mapping together with filesystem detected on the device. The  dm-crypt\ndevice must be recognizable by cryptsetup(8).\n\nnewsize[B|K|M|G|T|P|E]\nAbsolute  number of filesystem blocks to be in the filesystem, or an absolute size us‐\ning a suffix (in powers of 1024).  If newsize is not supplied, the  whole  device  is\nused.\n\n### DIAGNOSTICS\n\nOn  successful  completion, the status code is 0.  A status code of 2 indicates the operation\nwas interrupted by the user.  A status code of 3  indicates  the  requested  check  operation\ncould  not  be  performed  because  the  filesystem is mounted and does not support an online\nfsck(8).  A status code of 1 is used for other failures.\n\n### EXAMPLES\n\nResize the filesystem on logical volume /dev/vg/test to 1000 megabytes.  If /dev/vg/test con‐\ntains  ext2/ext3/ext4  filesystem it will be unmounted prior the resize.  All [y/n] questions\nwill be answered 'y'.\n\n#### fsadm -e -y resize /dev/vg/test 1000M\n\n### ENVIRONMENT VARIABLES\n\nTMPDIR The temporary directory name for mount points. Defaults to \"/tmp\".\n\nDMDEVDIR\nThe device directory name.  Defaults to \"/dev\" and must be an absolute path.\n\n### SEE ALSO\n\nlvm(8),  lvresize(8),  lvm.conf(5),  fsck(8),  tune2fs(8),   resize2fs(8),   reiserfstune(8),\nresizereiserfs(8), xfsinfo(8), xfsgrowfs(8), xfscheck(8), cryptsetup(8)\n\n\n\nRed Hat, Inc                      LVM TOOLS 2.03.11(2) (2021-01-08)                         FSADM(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "fsadm",
        "section": "8",
        "mode": "man",
        "summary": "fsadm — utility to resize or check filesystem on a device",
        "synopsis": "fsadm [options] check device\nfsadm [options] resize device [newsize]",
        "flags": [
            {
                "flag": "-e",
                "long": "--ext-offline",
                "arg": null,
                "description": "Unmount ext2/ext3/ext4 filesystem before doing resize."
            },
            {
                "flag": "-f",
                "long": "--force",
                "arg": null,
                "description": "Bypass some sanity checks."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display the help text."
            },
            {
                "flag": "-n",
                "long": "--dry-run",
                "arg": null,
                "description": "Print commands without running them."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Be more verbose."
            },
            {
                "flag": "-y",
                "long": "--yes",
                "arg": null,
                "description": "Answer \"yes\" at any prompts."
            },
            {
                "flag": "-c",
                "long": "--cryptresize",
                "arg": null,
                "description": "Resize dm-crypt mapping together with filesystem detected on the device. The dm-crypt device must be recognizable by cryptsetup(8). newsize[B|K|M|G|T|P|E] Absolute number of filesystem blocks to be in the filesystem, or an absolute size us‐ ing a suffix (in powers of 1024). If newsize is not supplied, the whole device is used."
            }
        ],
        "examples": [
            "Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.  If /dev/vg/test con‐",
            "tains  ext2/ext3/ext4  filesystem it will be unmounted prior the resize.  All [y/n] questions",
            "will be answered 'y'."
        ],
        "see_also": [
            {
                "name": "lvm",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm/8/json"
            },
            {
                "name": "lvresize",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvresize/8/json"
            },
            {
                "name": "lvm.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/lvm.conf/5/json"
            },
            {
                "name": "fsck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/fsck/8/json"
            },
            {
                "name": "tune2fs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/tune2fs/8/json"
            },
            {
                "name": "resize2fs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/resize2fs/8/json"
            },
            {
                "name": "reiserfstune",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/reiserfstune/8/json"
            },
            {
                "name": "resizereiserfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/resizereiserfs/8/json"
            },
            {
                "name": "xfsinfo",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/xfsinfo/8/json"
            },
            {
                "name": "xfsgrowfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/xfsgrowfs/8/json"
            },
            {
                "name": "xfscheck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/xfscheck/8/json"
            },
            {
                "name": "cryptsetup",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/cryptsetup/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-e --ext-offline",
                        "lines": 2,
                        "flag": "-e",
                        "long": "--ext-offline"
                    },
                    {
                        "name": "-f --force",
                        "lines": 2,
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-n --dry-run",
                        "lines": 2,
                        "flag": "-n",
                        "long": "--dry-run"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-y --yes",
                        "lines": 2,
                        "flag": "-y",
                        "long": "--yes"
                    },
                    {
                        "name": "-c --cryptresize",
                        "lines": 8,
                        "flag": "-c",
                        "long": "--cryptresize"
                    }
                ]
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": [
                    {
                        "name": "fsadm -e -y resize /dev/vg/test 1000M",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}