Tizen 2.1 base
[external/device-mapper.git] / man / fsadm.8.in
1 .TH "FSADM" "8" "LVM TOOLS #VERSION#" "Red Hat, Inc" "\""
2 .SH "NAME"
3 fsadm \- utility to resize or check filesystem on a device
4 .SH "SYNOPSIS"
5 .B fsadm
6 .RI [options]\ check\ device
7
8 .B fsadm
9 .RI [options]\ resize\ device\ [new_size[BKMGTEP]]
10
11 .SH "DESCRIPTION"
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.
15 .SH "OPTIONS"
16 .TP
17 \fB\-h \-\-help\fR
18 \(em print help message
19 .TP
20 \fB\-v \-\-verbose\fR
21 \(em be more verbose
22 .TP
23 \fB\-e \-\-ext\-offline\fR
24 \(em unmount ext2/ext3/ext4 filesystem before doing resize
25 .TP
26 \fB\-f \-\-force\fR
27 \(em bypass some sanity checks
28 .TP
29 \fB\-n \-\-dry\-run\fR
30 \(em print commands without running them
31 .TP
32 \fB\-y \-\-yes\fR
33 \(em answer "yes" at any prompts
34 .TP
35 \fBnew_size\fR
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.
39
40 .SH "DIAGNOSTICS"
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.
46
47 .SH "EXAMPLES"
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"
53 .TP
54 \fBTMPDIR\fP
55 Where the temporary directory should be created.
56 .TP
57 .BR
58 .SH "SEE ALSO"
59 .BR lvm (8),
60 .BR lvresize (8),
61 .BR lvm.conf (5),
62 .BR tune2fs (8),
63 .BR resize2fs (8),
64 .BR reiserfstune (8),
65 .BR resize_reiserfs (8),
66 .BR xfs_info (8),
67 .BR xfs_growfs (8),
68 .BR xfs_check (8)