From 266ce4d2e206fb8b9826ad5775fc5cde2c719294 Mon Sep 17 00:00:00 2001 From: Ali Nazzal <89179776+ali90h@users.noreply.github.com> Date: Thu, 28 Aug 2025 22:27:10 +0300 Subject: [PATCH] fsadm: add page (#17877) --- pages/linux/fsadm.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/fsadm.md diff --git a/pages/linux/fsadm.md b/pages/linux/fsadm.md new file mode 100644 index 0000000000..d729b406f3 --- /dev/null +++ b/pages/linux/fsadm.md @@ -0,0 +1,24 @@ +# fsadm + +> Check or resize a filesystem on a device. +> More information: . + +- Check a filesystem for errors: + +`fsadm check {{/dev/vg_name/lv_name}}` + +- Perform a dry-run resize to a specific size (no changes made): + +`fsadm {{[-n|--dry-run]}} resize {{/dev/vg_name/lv_name}} {{10G}}` + +- Grow a filesystem to fill the entire device (omit the size): + +`fsadm resize {{/dev/vg_name/lv_name}}` + +- Resize the filesystem and the underlying logical volume together: + +`fsadm {{[-l|--lvresize]}} resize {{/dev/vg_name/lv_name}} {{100G}}` + +- For ext2/3/4, unmount and resize offline: + +`fsadm {{[-e|--ext-offline]}} resize {{/dev/vg_name/lv_name}} {{20G}}`