2008-10-08 16:50:13 +04:00
.TH "FSADM" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\" "
.SH "NAME"
fsadm \- utility to resize or check filesystem on a device
2011-09-07 12:50:35 +04:00
.SH SYNOPSIS
2010-01-07 12:42:51 +03:00
.B fsadm
2011-09-07 12:50:35 +04:00
.RI [ options ]
.B check
.I device
.sp
2010-01-07 12:42:51 +03:00
.B fsadm
2011-09-07 12:50:35 +04:00
.RI [ options ]
.B resize
.I device
.RI [ new_size [ BKMGTEP ]]
.sp
.SH DESCRIPTION
.B fsadm
utility checks or resizes the filesystem on a device.
It tries to use the same API for
.IR ext2 , ext3 , ext4 , ReiserFS
and \fI XFS\fP filesystem.
.SH OPTIONS
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.BR \- h ", " \- \- help
Display the help text.
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.BR \- v ", " \- \- verbose
Be more verbose.
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.BR \- e ", " \- \- ext\-offline
Unmount ext2/ext3/ext4 filesystem before doing resize.
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.BR \- f ", " \- \- force
Bypass some sanity checks.
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.BR \- n ", " \- \- dry\-run
Print commands without running them.
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.BR \- y ", " \- \- yes
Answer "yes" at any prompts.
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.I new_size
Absolute number of filesystem blocks to be in the filesystem,
2009-02-04 15:47:05 +03:00
or an absolute size using a suffix (in powers of 1024).
If new_size is not supplied, the whole device is used.
2008-10-08 16:50:13 +04:00
2011-09-07 12:50:35 +04:00
.SH DIAGNOSTICS
2010-11-01 17:10:46 +03:00
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
2011-09-07 12:50:35 +04:00
because the filesystem is mounted and does not support an online
.BR fsck (8).
2010-11-01 17:10:46 +03:00
A status code of 1 is used for other failures.
2011-09-07 12:50:35 +04:00
.SH EXAMPLES
Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
If /dev/vg/test contains ext2/ext3/ext4
2009-02-04 15:47:05 +03:00
filesystem it will be unmounted prior the resize.
All [y|n] questions will be answered 'y'.
2011-09-07 12:50:35 +04:00
.sp
.B fsadm \- e \- y resize /dev/vg/test 1000 M
.SH ENVIRONMENT VARIABLES
2009-02-04 15:47:05 +03:00
.TP
2011-09-07 12:50:35 +04:00
.B TMPDIR
The temporary directory name for mount points. Defaults to "/tmp".
2011-09-19 23:36:52 +04:00
.TP
.B DM_DEV_DIR
The device directory name.
Defaults to "/dev" and must be an absolute path.
2011-09-07 12:50:35 +04:00
.SH SEE ALSO
2009-02-04 15:47:05 +03:00
.BR lvm (8),
.BR lvresize (8),
2008-10-08 16:50:13 +04:00
.BR lvm.conf (5),
2011-09-07 12:50:35 +04:00
.BR fsck (8),
2008-10-08 16:50:13 +04:00
.BR tune2fs (8),
.BR resize2fs (8),
.BR reiserfstune (8),
.BR resize_reiserfs (8),
.BR xfs_info (8),
.BR xfs_growfs (8),
.BR xfs_check (8)