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       new_size[B|K|M|G|T|P|E]
36              Absolute number of filesystem blocks to be in the filesystem, or
37              an  absolute  size  using  a  suffix  (in  powers  of 1024).  If
38              new_size is not supplied, the whole device is used.
39

DIAGNOSTICS

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

EXAMPLES

48       Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
49       If /dev/vg/test contains ext2/ext3/ext4 filesystem it will be unmounted
50       prior the resize.  All [y/n] questions will be answered 'y'.
51
52       fsadm -e -y resize /dev/vg/test 1000M
53

ENVIRONMENT VARIABLES

55       TMPDIR The temporary directory  name  for  mount  points.  Defaults  to
56              "/tmp".
57
58       DM_DEV_DIR
59              The  device  directory  name.  Defaults to "/dev" and must be an
60              absolute path.
61
62

SEE ALSO

64       lvm(8), lvresize(8), lvm.conf(5),  fsck(8),  tune2fs(8),  resize2fs(8),
65       reiserfstune(8),    resize_reiserfs(8),   xfs_info(8),   xfs_growfs(8),
66       xfs_check(8)
67
68
69
70Red Hat, Inc       LVM TOOLS 2.02.143(2)-RHEL6 (2016-12-13)           FSADM(8)
Impressum