Updated: LVM TOOLS 2.02.95(2)-RHEL6 (2012-10-16)
Index Return to Main Contents
NAMEfsadm - utility to resize or check filesystem on a device
SYNOPSISfsadm [options] check device
fsadm [options] resize device [new_size[BKMGTEP]]
DESCRIPTIONfsadm utility checks or resizes the filesystem on a device. It tries to use the same API for ext2,ext3,ext4,ReiserFS and XFS filesystem.
- -h, --help
- Display the help text.
- -v, --verbose
- Be more verbose.
- -e, --ext-offline
- Unmount ext2/ext3/ext4 filesystem before doing resize.
- -f, --force
- Bypass some sanity checks.
- -n, --dry-run
- Print commands without running them.
- -y, --yes
- Answer "yes" at any prompts.
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.
DIAGNOSTICSOn 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.
EXAMPLESResize 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'.
- The temporary directory name for mount points. Defaults to "/tmp".
The device directory name.
Defaults to "/dev" and must be an absolute path.
SEE ALSOlvm(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)
This document was created by man2html, using the manual pages.
Time: 05:34:25 GMT, December 24, 2015