1FSADM(8) FSADM(8)
2
3
4
6 fsadm - utility to resize or check filesystem on a device
7
9 fsadm [options] check device
10
11 fsadm [options] resize device [new_size[BKMGTEP]]
12
13
15 fsadm utility resizes or checks the filesystem on a device. It tries
16 to use the same API for ext2/ext3/ext4, ReiserFS and XFS filesystem.
17
19 -h --help
20 — print help message
21
22 -v --verbose
23 — be more verbose
24
25 -e --ext-offline
26 — unmount ext2/ext3/ext4 filesystem before doing resize
27
28 -f --force
29 — bypass some sanity checks
30
31 -n --dry-run
32 — print commands without running them
33
34 -y --yes
35 — answer "yes" at any prompts
36
37 new_size
38 — Absolute number of filesystem blocks to be in the filesystem,
39 or an absolute size using a suffix (in powers of 1024). If
40 new_size is not supplied, the whole device is used.
41
42
44 On successful completion, the status code is 0. A status code of 2
45 indicates the operation was interrupted by the user. A status code of
46 3 indicates the requested check operation could not be performed
47 because the filesystem is mounted and does not support an online fsck.
48 A status code of 1 is used for other failures.
49
50
52 "fsadm -e -y resize /dev/vg/test 1000M" tries to resize the filesystem
53 on logical volume /dev/vg/test. If /dev/vg/test contains ext2/ext3/ext4
54 filesystem it will be unmounted prior the resize. All [y|n] questions
55 will be answered 'y'.
56
58 TMPDIR Where the temporary directory should be created.
59
60
61
63 lvm(8), lvresize(8), lvm.conf(5), tune2fs(8), resize2fs(8), reiserfs‐
64 tune(8), resize_reiserfs(8), xfs_info(8), xfs_growfs(8), xfs_check(8)
65
66
67
68Red Hat, Inc LVM TOOLS 2.02.84(2) (2011-02-09) FSADM(8)