1FSADM(8)                                                              FSADM(8)
2
3
4

NAME

6       fsadm — utility to resize or check filesystem on a device
7

SYNOPSIS

9       fsadm [options] check device
10       fsadm [options] resize device [new_size]
11

DESCRIPTION

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

OPTIONS

17       -e|--ext-offline
18              Unmount ext2/ext3/ext4 filesystem before doing resize.
19
20       -f|--force
21              Bypass some sanity checks.
22
23       -h|--help
24              Display the help text.
25
26       -n|--dry-run
27              Print commands without running them.
28
29       -v|--verbose
30              Be more verbose.
31
32       -y|--yes
33              Answer "yes" at any prompts.
34
35       -c|--cryptresize
36              Resize dm-crypt mapping together with filesystem detected on the
37              device.  The  dm-crypt  device  must  be  recognizable by crypt‐
38              setup(8).
39
40       new_size[B|K|M|G|T|P|E]
41              Absolute number of filesystem blocks to be in the filesystem, or
42              an  absolute  size  using  a  suffix  (in  powers  of 1024).  If
43              new_size is not supplied, the whole device is used.
44

DIAGNOSTICS

46       On successful completion, the status code is 0.  A  status  code  of  2
47       indicates  the operation was interrupted by the user.  A status code of
48       3 indicates the  requested  check  operation  could  not  be  performed
49       because  the  filesystem  is  mounted  and  does  not support an online
50       fsck(8).  A status code of 1 is used for other failures.
51

EXAMPLES

53       Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
54       If /dev/vg/test contains ext2/ext3/ext4 filesystem it will be unmounted
55       prior the resize.  All [y/n] questions will be answered 'y'.
56
57       fsadm -e -y resize /dev/vg/test 1000M
58

ENVIRONMENT VARIABLES

60       TMPDIR The temporary directory  name  for  mount  points.  Defaults  to
61              "/tmp".
62
63       DM_DEV_DIR
64              The  device  directory  name.  Defaults to "/dev" and must be an
65              absolute path.
66
67

SEE ALSO

69       lvm(8), lvresize(8), lvm.conf(5),  fsck(8),  tune2fs(8),  resize2fs(8),
70       reiserfstune(8),    resize_reiserfs(8),   xfs_info(8),   xfs_growfs(8),
71       xfs_check(8), cryptsetup(8)
72
73
74
75Red Hat, Inc           LVM TOOLS 2.03.10(2) (2020-08-09)              FSADM(8)
Impressum