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
.SH "SYNOPSIS"
2010-01-07 12:42:51 +03:00
.B fsadm
2008-10-08 16:50:13 +04:00
.RI [options]\ check\ device
2010-01-07 12:42:51 +03:00
.B fsadm
2008-10-08 16:50:13 +04:00
.RI [options]\ resize\ device\ [new_size[BKMGTEP]]
.SH "DESCRIPTION"
2009-02-04 15:47:05 +03:00
\fB fsadm\fR utility resizes or checks the filesystem on a device.
It tries to use the same API for \fB ext2/ext3/ext4\fR ,
\fB ReiserFS\fR and \fB XFS\fR filesystem.
2008-10-08 16:50:13 +04:00
.SH "OPTIONS"
2009-02-04 15:47:05 +03:00
.TP
2008-10-08 16:50:13 +04:00
\fB \- h \- \- help\fR
\(em print help message
2009-02-04 15:47:05 +03:00
.TP
2008-10-08 16:50:13 +04:00
\fB \- v \- \- verbose\fR
\(em be more verbose
2009-02-04 15:47:05 +03:00
.TP
2008-10-08 16:50:13 +04:00
\fB \- e \- \- ext\- offline\fR
2009-02-04 15:47:05 +03:00
\(em unmount ext2/ext3/ext4 filesystem before doing resize
.TP
2008-10-08 16:50:13 +04:00
\fB \- f \- \- force\fR
\(em bypass some sanity checks
2009-02-04 15:47:05 +03:00
.TP
2008-10-08 16:50:13 +04:00
\fB \- n \- \- dry\- run\fR
\(em print commands without running them
2009-02-04 15:47:05 +03:00
.TP
2008-10-08 16:50:13 +04:00
\fB \- y \- \- yes\fR
\(em answer "yes" at any prompts
2009-02-04 15:47:05 +03:00
.TP
2008-10-08 16:50:13 +04:00
\fB new_size\fR
2009-02-04 15:47:05 +03:00
\(em 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.
2008-10-08 16:50:13 +04:00
.SH "EXAMPLES"
2009-02-04 15:47:05 +03:00
"fsadm \- e \- y resize /dev/vg/test 1000M" tries to resize the filesystem
on logical volume /dev/vg/test. If /dev/vg/test contains ext2/ext3/ext4
filesystem it will be unmounted prior the resize.
All [y|n] questions will be answered 'y'.
2008-10-08 16:50:13 +04:00
.SH "ENVIRONMENT VARIABLES"
2009-02-04 15:47:05 +03:00
.TP
\fB TMPDIR\fP
2008-10-08 16:50:13 +04:00
Where the temporary directory should be created.
2009-02-04 15:47:05 +03:00
.TP
.BR
2008-10-08 16:50:13 +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),
.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)