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 fsadm [options] resize device [new_size]
11
13 fsadm utility checks or resizes the filesystem on a device. It tries
14 to use the same API for ext2, ext3, ext4, ReiserFS and XFS filesystem.
15
17 -e|--ext-offline
18 Unmount ext2/ext3/ext4 filesystem before doing resize.
19
20 -l|--lvresize
21 Resize given device if it is LVM device.
22
23 -f|--force
24 Bypass some sanity checks.
25
26 -h|--help
27 Display the help text.
28
29 -n|--dry-run
30 Print commands without running them.
31
32 -v|--verbose
33 Be more verbose.
34
35 -y|--yes
36 Answer "yes" at any prompts.
37
38 -c|--cryptresize
39 Resize dm-crypt mapping together with filesystem detected on the
40 device. The dm-crypt device must be recognizable by crypt‐
41 setup(8).
42
43 new_size[B|K|M|G|T|P|E]
44 Absolute number of filesystem blocks to be in the filesystem, or
45 an absolute size using a suffix (in powers of 1024). If
46 new_size is not supplied, the whole device is used.
47
49 On successful completion, the status code is 0. A status code of 2
50 indicates the operation was interrupted by the user. A status code of
51 3 indicates the requested check operation could not be performed
52 because the filesystem is mounted and does not support an online
53 fsck(8). A status code of 1 is used for other failures.
54
56 Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
57 If /dev/vg/test contains ext2/ext3/ext4 filesystem it will be unmounted
58 prior the resize. All [y/n] questions will be answered 'y'.
59
60 fsadm -e -y resize /dev/vg/test 1000M
61
63 TMPDIR The temporary directory name for mount points. Defaults to
64 "/tmp".
65
66 DM_DEV_DIR
67 The device directory name. Defaults to "/dev" and must be an
68 absolute path.
69
70
72 lvm(8), lvresize(8), lvm.conf(5), fsck(8), tune2fs(8), resize2fs(8),
73 reiserfstune(8), resize_reiserfs(8), xfs_info(8), xfs_growfs(8),
74 xfs_check(8), cryptsetup(8)
75
76
77
78Red Hat, Inc LVM TOOLS 2.02.183(2) (2018-12-07) FSADM(8)