2008-10-08 16:50:13 +04:00
.TH "FSADM" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\""
2021-04-13 16:26:54 +03:00
.
2008-10-08 16:50:13 +04:00
.SH "NAME"
2021-04-13 16:26:54 +03:00
.
2014-06-11 13:06:30 +04:00
fsadm \(em utility to resize or check filesystem on a device
2021-04-13 16:26:54 +03:00
.
2011-09-07 12:50:35 +04:00
.SH SYNOPSIS
2015-10-05 13:28:00 +03:00
.
.PD 0
.ad l
2021-04-13 16:26:54 +03:00
.TP 6
2010-01-07 12:42:51 +03:00
.B fsadm
2011-09-07 12:50:35 +04:00
.RI [ options ]
2015-10-05 13:28:00 +03:00
.BR check
.IR device
.
2021-04-13 16:26:54 +03:00
.TP
2010-01-07 12:42:51 +03:00
.B fsadm
2011-09-07 12:50:35 +04:00
.RI [ options ]
2015-10-05 13:28:00 +03:00
.BR resize
.IR device
.RI [ new_size ]
.ad b
2021-04-13 16:26:54 +03:00
.PD
2015-10-05 13:28:00 +03:00
.
2011-09-07 12:50:35 +04:00
.SH DESCRIPTION
2015-10-05 13:28:00 +03:00
.
2021-04-22 12:09:05 +03:00
fsadm utility checks or resizes the filesystem on a device (can be
also dm-crypt encrypted device).
2015-10-05 13:28:00 +03:00
It tries to use the same API for
.BR ext2 ,
.BR ext3 ,
.BR ext4 ,
.BR ReiserFS
2021-04-22 12:09:05 +03:00
and
2015-10-05 13:28:00 +03:00
.BR XFS
2012-04-11 16:42:10 +04:00
filesystem.
2015-10-05 13:28:00 +03:00
.
2011-09-07 12:50:35 +04:00
.SH OPTIONS
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2017-03-27 17:45:48 +03:00
.BR -e | --ext-offline
2011-09-07 12:50:35 +04:00
Unmount ext2/ext3/ext4 filesystem before doing resize.
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2017-03-27 17:45:48 +03:00
.BR -f | --force
2011-09-07 12:50:35 +04:00
Bypass some sanity checks.
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2017-03-27 17:45:48 +03:00
.BR -h | --help
2012-04-11 16:42:10 +04:00
Display the help text.
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2021-04-22 12:09:05 +03:00
.BR -l | --lvresize
Resize also given lvm2 logical volume. More volume management
functionality is provided with complementary \fBlvresize\fP(8) and the option
.BR -r | --resizefs.
.
.TP
2017-03-27 17:45:48 +03:00
.BR -n | --dry-run
2011-09-07 12:50:35 +04:00
Print commands without running them.
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2017-03-27 17:45:48 +03:00
.BR -v | --verbose
2012-04-11 16:42:10 +04:00
Be more verbose.
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2017-03-27 17:45:48 +03:00
.BR -y | --yes
2011-09-07 12:50:35 +04:00
Answer "yes" at any prompts.
2015-10-05 13:28:00 +03:00
.
2021-04-13 16:26:54 +03:00
.TP
2017-10-06 17:28:35 +03:00
.BR -c | --cryptresize
Resize dm-crypt mapping together with filesystem detected on the device. The dm-crypt device must be recognizable by cryptsetup(8).
.
2021-04-13 16:26:54 +03:00
.TP
2015-10-05 13:28:00 +03:00
.BR \fInew_size [ B | K | M | G | T | P | E ]
2011-09-07 12:50:35 +04:00
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.
2015-10-05 13:28:00 +03:00
.
2011-09-07 12:50:35 +04:00
.SH DIAGNOSTICS
2015-10-05 13:28:00 +03:00
.
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
2015-10-05 13:28:00 +03:00
because the filesystem is mounted and does not support an online
2011-09-07 12:50:35 +04:00
.BR fsck (8).
2010-11-01 17:10:46 +03:00
A status code of 1 is used for other failures.
2015-10-05 13:28:00 +03:00
.
2011-09-07 12:50:35 +04:00
.SH EXAMPLES
2015-10-05 13:28:00 +03:00
.
Resize the filesystem on logical volume \fI/dev/vg/test\fP to 1000 megabytes.
If \fI/dev/vg/test\fP contains ext2/ext3/ext4
2009-02-04 15:47:05 +03:00
filesystem it will be unmounted prior the resize.
2014-05-22 13:57:51 +04:00
All [y/n] questions will be answered 'y'.
2021-04-13 16:26:54 +03:00
.P
#
2017-03-27 17:45:48 +03:00
.B fsadm -e -y resize /dev/vg/test 1000M
2015-10-05 13:28:00 +03:00
.
2011-09-07 12:50:35 +04:00
.SH ENVIRONMENT VARIABLES
2015-10-05 13:28:00 +03:00
.
2009-02-04 15:47:05 +03:00
.TP
2021-04-13 16:26:54 +03:00
.B TMPDIR
2015-10-05 13:28:00 +03:00
The temporary directory name for mount points. Defaults to "\fI/tmp\fP".
2011-09-19 23:36:52 +04:00
.TP
.B DM_DEV_DIR
The device directory name.
2015-10-05 13:28:00 +03:00
Defaults to "\fI/dev\fP" and must be an absolute path.
2021-04-13 16:26:54 +03:00
.
2011-09-07 12:50:35 +04:00
.SH SEE ALSO
2021-04-13 16:26:54 +03:00
.
2015-10-05 13:28:00 +03:00
.nh
2021-04-13 16:26:54 +03:00
.ad l
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),
2021-04-13 16:26:54 +03:00
.P
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),
2021-04-13 16:26:54 +03:00
.P
2008-10-08 16:50:13 +04:00
.BR reiserfstune (8),
.BR resize_reiserfs (8),
2021-04-13 16:26:54 +03:00
.P
2008-10-08 16:50:13 +04:00
.BR xfs_info (8),
.BR xfs_growfs (8),
2017-10-06 17:28:35 +03:00
.BR xfs_check (8),
2021-04-13 16:26:54 +03:00
.P
2017-10-06 17:28:35 +03:00
.BR cryptsetup (8)