1 .TH "FSADM" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\""
3 fsadm \- utility to resize or check filesystem on a device
6 .RI [options]\ check\ device
9 .RI [options]\ resize\ device\ [new_size[BKMGTEP]]
12 \fBfsadm\fR utility resizes or checks the filesystem on a device.
13 It tries to use the same API for \fBext2/ext3/ext4\fR,
14 \fBReiserFS\fR and \fBXFS\fR filesystem.
18 \(em print help message
23 \fB\-e \-\-ext\-offline\fR
24 \(em unmount ext2/ext3/ext4 filesystem before doing resize
27 \(em bypass some sanity checks
29 \fB\-n \-\-dry\-run\fR
30 \(em print commands without running them
33 \(em answer "yes" at any prompts
36 \(em Absolute number of filesystem blocks to be in the filesystem,
37 or an absolute size using a suffix (in powers of 1024).
38 If new_size is not supplied, the whole device is used.
41 On successful completion, the status code is 0.
42 A status code of 2 indicates the operation was interrupted by the user.
43 A status code of 3 indicates the requested check operation could not be performed
44 because the filesystem is mounted and does not support an online fsck.
45 A status code of 1 is used for other failures.
48 "fsadm \-e \-y resize /dev/vg/test 1000M" tries to resize the filesystem
49 on logical volume /dev/vg/test. If /dev/vg/test contains ext2/ext3/ext4
50 filesystem it will be unmounted prior the resize.
51 All [y|n] questions will be answered 'y'.
52 .SH "ENVIRONMENT VARIABLES"
55 Where the temporary directory should be created.
65 .BR resize_reiserfs (8),