1
.\" Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
2
.\" Written by Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
4
.TH NILFS-RESIZE 8 "May 2011" "nilfs-utils version 2.1"
6
nilfs-resize \- resize NILFS file system volume size
9
[\fIoptions\fP] \fIdevice\fP [\fIsize\fP]
11
The \fBnilfs-resize\fP program will resize NILFS2 file systems. It
12
can be used to enlarge or shrink an mounted file system located on
13
\fIdevice\fP. This feature is only available on the kernel supporting
14
on-line resizing. Resizing for unmounted file systems are not
17
The \fIsize\fP parameter specifies the requested new size of the
18
filesystem. The \fIsize\fP of the filesystem may never be larger than
19
the size of the partition. Optionally, the \fIsize\fP parameter may
20
be suffixed by one of the following units designators: \'s\',
21
\'K\', \'M\', \'G\', or \'T\', for 512 byte sectors, kilobytes,
22
magabytes, gigabytes, or terabytes, respectively. If \fIsize\fP
23
parameter is not specified, it will default to the size of the
26
This program does not manipulate the size of partitions. If you wish
27
to enlarge a filesystem, you must make sure you can expand the size of
28
the underlying partition first. This can be done using \fBfdisk\fP(8)
29
by deleting the partition and recreating it with a larger size or
30
using \fBlvextend\fP(8), if you are using the logical volume manager
33
If you wish to shrink an nilfs2 partition, first use
34
\fBnilfs-resize\fP to shrink the size of filesystem. Then you may use
35
\fBfdisk\fP(8) to shrink the size of the partition. When shrinking
36
the size of the partition, make sure you do not make it smaller than
37
the new size of the nilfs2 filesystem.
39
This command is valid only for mounted NILFS2 file systems, and
40
will fail if the \fIdevice\fP has no active mounts.
43
\fB\-y\fR, \fB\-\-yes\fR, \fB\-\-assume\-yes\fR
44
Assume Yes to all queries and do not prompt.
46
\fB\-h\fR, \fB\-\-help\fR
47
Display help message and exit.
49
\fB\-v\fR, \fB\-\-verbose\fR
52
\fB\-V\fR, \fB\-\-version\fR
53
Display version and exit.
55
Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
58
is part of the nilfs-utils package and is available from