|
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | DIAGNOSTICS | EXAMPLES | ENVIRONMENT VARIABLES | SEE ALSO | COLOPHON |
|
|
|
FSADM(8) FSADM(8)
fsadm — utility to resize or check filesystem on a device
fsadm [options] check device
fsadm [options] resize device [new_size]
fsadm utility checks or resizes the filesystem on a device. It
tries to use the same API for ext2, ext3, ext4, ReiserFS and XFS
filesystem.
-e|--ext-offline
Unmount ext2/ext3/ext4 filesystem before doing resize.
-f|--force
Bypass some sanity checks.
-h|--help
Display the help text.
-n|--dry-run
Print commands without running them.
-v|--verbose
Be more verbose.
-y|--yes
Answer "yes" at any prompts.
-c|--cryptresize
Resize dm-crypt mapping together with filesystem detected
on the device. The dm-crypt device must be recognizable by
cryptsetup(8).
new_size[B|K|M|G|T|P|E]
Absolute number of filesystem blocks to be in the
filesystem, or an absolute size using a suffix (in powers
of 1024). If new_size is not supplied, the whole device
is used.
On successful completion, the status code is 0. A status code of
2 indicates the operation was interrupted by the user. A status
code of 3 indicates the requested check operation could not be
performed because the filesystem is mounted and does not support
an online fsck(8). A status code of 1 is used for other
failures.
Resize the filesystem on logical volume /dev/vg/test to 1000
megabytes. If /dev/vg/test contains ext2/ext3/ext4 filesystem it
will be unmounted prior the resize. All [y/n] questions will be
answered 'y'.
fsadm -e -y resize /dev/vg/test 1000M
TMPDIR The temporary directory name for mount points. Defaults to
"/tmp".
DM_DEV_DIR
The device directory name. Defaults to "/dev" and must be
an absolute path.
lvm(8), lvresize(8), lvm.conf(5), fsck(8), tune2fs(8),
resize2fs(8), reiserfstune(8), resize_reiserfs(8), xfs_info(8),
xfs_growfs(8), xfs_check(8), cryptsetup(8)
This page is part of the lvm2 (Logical Volume Manager 2) project.
Information about the project can be found at
⟨http://www.sourceware.org/lvm2/⟩. If you have a bug report for
this manual page, see ⟨https://github.com/lvmteam/lvm2/issues⟩.
This page was obtained from the tarball
https://github.com/lvmteam/lvm2/archive/v2_03_10.tar.gz fetched
from ⟨https://github.com/lvmteam/lvm2/releases⟩ on 2020-12-18.
If you discover any rendering problems in this HTML version of
the page, or you believe there is a better or more up-to-date
source for the page, or you have corrections or improvements to
the information in this COLOPHON (which is not part of the
original manual page), send a mail to man-pages@man7.org
Red Hat, Inc LVM TOOLS 2.03.10(2) (2020-08-09) FSADM(8)