mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
man: fsadm
This commit is contained in:
parent
2506275c3b
commit
4b1cadbd87
@ -2,72 +2,105 @@
|
|||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
fsadm \(em utility to resize or check filesystem on a device
|
fsadm \(em utility to resize or check filesystem on a device
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
.
|
||||||
|
.PD 0
|
||||||
|
.ad l
|
||||||
|
.HP 5
|
||||||
.B fsadm
|
.B fsadm
|
||||||
.RI [ options ]
|
.RI [ options ]
|
||||||
.B check
|
.BR check
|
||||||
.I device
|
.IR device
|
||||||
.sp
|
.
|
||||||
|
.HP
|
||||||
.B fsadm
|
.B fsadm
|
||||||
.RI [ options ]
|
.RI [ options ]
|
||||||
.B resize
|
.BR resize
|
||||||
.I device
|
.IR device
|
||||||
.RI [ new_size [ BKMGTEP ]]
|
.RI [ new_size ]
|
||||||
.sp
|
.PD
|
||||||
|
.ad b
|
||||||
|
.
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
.
|
||||||
fsadm utility checks or resizes the filesystem on a device.
|
fsadm utility checks or resizes the filesystem on a device.
|
||||||
It tries to use the same API for
|
It tries to use the same API for
|
||||||
.IR ext2 ", " ext3 ", " ext4 ", " ReiserFS " and " XFS
|
.BR ext2 ,
|
||||||
|
.BR ext3 ,
|
||||||
|
.BR ext4 ,
|
||||||
|
.BR ReiserFS
|
||||||
|
.RB and
|
||||||
|
.BR XFS
|
||||||
filesystem.
|
filesystem.
|
||||||
|
.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.
|
||||||
.BR \-e ", " \-\-ext\-offline
|
.HP
|
||||||
|
.BR \-e | \-\-ext\-offline
|
||||||
|
.br
|
||||||
Unmount ext2/ext3/ext4 filesystem before doing resize.
|
Unmount ext2/ext3/ext4 filesystem before doing resize.
|
||||||
.TP
|
.
|
||||||
.BR \-f ", " \-\-force
|
.HP
|
||||||
|
.BR \-f | \-\-force
|
||||||
|
.br
|
||||||
Bypass some sanity checks.
|
Bypass some sanity checks.
|
||||||
.TP
|
.
|
||||||
.BR \-h ", " \-\-help
|
.HP
|
||||||
|
.BR \-h | \-\-help
|
||||||
|
.br
|
||||||
Display the help text.
|
Display the help text.
|
||||||
.TP
|
.
|
||||||
.BR \-n ", " \-\-dry\-run
|
.HP
|
||||||
|
.BR \-n | \-\-dry\-run
|
||||||
|
.br
|
||||||
Print commands without running them.
|
Print commands without running them.
|
||||||
.TP
|
.
|
||||||
.BR \-v ", " \-\-verbose
|
.HP
|
||||||
|
.BR \-v | \-\-verbose
|
||||||
|
.br
|
||||||
Be more verbose.
|
Be more verbose.
|
||||||
.TP
|
.
|
||||||
.BR \-y ", " \-\-yes
|
.HP
|
||||||
|
.BR \-y | \-\-yes
|
||||||
|
.br
|
||||||
Answer "yes" at any prompts.
|
Answer "yes" at any prompts.
|
||||||
.TP
|
.
|
||||||
.I new_size
|
.HP
|
||||||
|
.BR \fInew_size [ B | K | M | G | T | P | E ]
|
||||||
|
.br
|
||||||
Absolute number of filesystem blocks to be in the filesystem,
|
Absolute number of filesystem blocks to be in the filesystem,
|
||||||
or an absolute size using a suffix (in powers of 1024).
|
or an absolute size using a suffix (in powers of 1024).
|
||||||
If new_size is not supplied, the whole device is used.
|
If new_size is not supplied, the whole device is used.
|
||||||
|
.
|
||||||
.SH DIAGNOSTICS
|
.SH DIAGNOSTICS
|
||||||
|
.
|
||||||
On successful completion, the status code is 0.
|
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 2 indicates the operation was interrupted by the user.
|
||||||
A status code of 3 indicates the requested check operation could not be performed
|
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
|
because the filesystem is mounted and does not support an online
|
||||||
.BR fsck (8).
|
.BR fsck (8).
|
||||||
A status code of 1 is used for other failures.
|
A status code of 1 is used for other failures.
|
||||||
|
.
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
|
.
|
||||||
If /dev/vg/test contains ext2/ext3/ext4
|
Resize the filesystem on logical volume \fI/dev/vg/test\fP to 1000 megabytes.
|
||||||
|
If \fI/dev/vg/test\fP contains ext2/ext3/ext4
|
||||||
filesystem it will be unmounted prior the resize.
|
filesystem it will be unmounted prior the resize.
|
||||||
All [y/n] questions will be answered 'y'.
|
All [y/n] questions will be answered 'y'.
|
||||||
.sp
|
.sp
|
||||||
.B fsadm \-e \-y resize /dev/vg/test 1000M
|
.B fsadm \-e \-y resize /dev/vg/test 1000M
|
||||||
|
.
|
||||||
.SH ENVIRONMENT VARIABLES
|
.SH ENVIRONMENT VARIABLES
|
||||||
|
.
|
||||||
.TP
|
.TP
|
||||||
.B TMPDIR
|
.B "TMPDIR "
|
||||||
The temporary directory name for mount points. Defaults to "/tmp".
|
The temporary directory name for mount points. Defaults to "\fI/tmp\fP".
|
||||||
.TP
|
.TP
|
||||||
.B DM_DEV_DIR
|
.B DM_DEV_DIR
|
||||||
The device directory name.
|
The device directory name.
|
||||||
Defaults to "/dev" and must be an absolute path.
|
Defaults to "\fI/dev\fP" and must be an absolute path.
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
.nh
|
||||||
.BR lvm (8),
|
.BR lvm (8),
|
||||||
.BR lvresize (8),
|
.BR lvresize (8),
|
||||||
.BR lvm.conf (5),
|
.BR lvm.conf (5),
|
||||||
|
@ -86,10 +86,10 @@ NL='
|
|||||||
tool_usage() {
|
tool_usage() {
|
||||||
echo "${TOOL}: Utility to resize or check the filesystem on a device"
|
echo "${TOOL}: Utility to resize or check the filesystem on a device"
|
||||||
echo
|
echo
|
||||||
echo " ${TOOL} [options] check device"
|
echo " ${TOOL} [options] check <device>"
|
||||||
echo " - Check the filesystem on device using fsck"
|
echo " - Check the filesystem on device using fsck"
|
||||||
echo
|
echo
|
||||||
echo " ${TOOL} [options] resize device [new_size[BKMGTPE]]"
|
echo " ${TOOL} [options] resize <device> [<new_size>[BKMGTPE]]"
|
||||||
echo " - Change the size of the filesystem on device to new_size"
|
echo " - Change the size of the filesystem on device to new_size"
|
||||||
echo
|
echo
|
||||||
echo " Options:"
|
echo " Options:"
|
||||||
|
Loading…
Reference in New Issue
Block a user