~ubuntu-branches/ubuntu/trusty/nilfs-tools/trusty

« back to all changes in this revision

Viewing changes to man/nilfs-resize.8

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2011-07-10 17:10:21 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110710171021-xkbtr81jprb97iec
Tags: upstream-2.1.0~rc1
ImportĀ upstreamĀ versionĀ 2.1.0~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"  Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
 
2
.\"  Written by Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
 
3
.\"
 
4
.TH NILFS-RESIZE 8 "May 2011" "nilfs-utils version 2.1"
 
5
.SH NAME
 
6
nilfs-resize \- resize NILFS file system volume size
 
7
.SH SYNOPSIS
 
8
.B nilfs-resize
 
9
[\fIoptions\fP] \fIdevice\fP [\fIsize\fP]
 
10
.SH DESCRIPTION
 
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
 
15
supported at present.
 
16
.PP
 
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
 
24
partition.
 
25
.PP
 
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
 
31
\fBlvm\fP(8)
 
32
.PP
 
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.
 
38
.PP
 
39
This command is valid only for mounted NILFS2 file systems, and
 
40
will fail if the \fIdevice\fP has no active mounts.
 
41
.SH OPTIONS
 
42
.TP
 
43
\fB\-y\fR, \fB\-\-yes\fR, \fB\-\-assume\-yes\fR
 
44
Assume Yes to all queries and do not prompt.
 
45
.TP
 
46
\fB\-h\fR, \fB\-\-help\fR
 
47
Display help message and exit.
 
48
.TP
 
49
\fB\-v\fR, \fB\-\-verbose\fR
 
50
Verbose mode.
 
51
.TP
 
52
\fB\-V\fR, \fB\-\-version\fR
 
53
Display version and exit.
 
54
.SH AUTHOR
 
55
Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
 
56
.SH AVAILABILITY
 
57
.B nilfs-resize
 
58
is part of the nilfs-utils package and is available from
 
59
http://www.nilfs.org.
 
60
.SH SEE ALSO
 
61
.BR nilfs (8),
 
62
.BR nilfs-tune (8),
 
63
.BR fdisk (8),
 
64
.BR lvextend (8),
 
65
.BR lvm (8).