OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / reiserfsprogs / draft / man8 / resize_reiserfs.8
1 .\" -*- nroff -*-
2 .\" Copyright 1996-2004 Hans Reiser.
3 .\" 
4 .\" Japanese Version Copyright (c) 2001-2005 Yuichi SATO
5 .\"         all rights reserved.
6 .\" Translated Mon Apr  9 18:43:34 JST 2001
7 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
8 .\" Updated & Modified Thu May  9 01:32:15 JST 2002 by Yuichi SATO
9 .\" Updated & Modified Sat May  8 13:46:51 JST 2004 
10 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
11 .\" Updated & Modified Sat Mar  5 23:48:58 JST 2005 by Yuichi SATO
12 .\" 
13 .\"WORD:
14 .\" 
15 .TH RESIZE_REISERFS 8 "January 2004" "Reiserfsprogs-3.6.19"
16 .\"O .SH NAME
17 .SH Ì¾Á°
18 .\"O resize_reiserfs \- resizer tool for the ReiserFS filesystem
19 resize_reiserfs \- ReiserFS ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥ºÊѹ¹¥Ä¡¼¥ë
20 .\"O .SH SYNOPSIS
21 .SH ½ñ¼°
22 .BR resize_reiserfs
23 [
24 .B \-s
25 .\"O .IR \fR[\fB+\fR|\fB\- ]\fIsize\fB[\fBK\fR|\fBM\fR|\fBG\fR]
26 .IR \fR[\fB+\fR|\fB\- ]\fIsize\fR[\fBK\fR|\fBM\fR|\fBG\fR]
27 ] [
28 .B \-j
29 .IR \fR\fIdev
30 ] [
31 .B \-fqv
32 ]
33 .I device
34 .\"O .SH DESCRIPTION
35 .SH ÀâÌÀ
36 .\"O The
37 .\"O .B resize_reiserfs
38 .\"O tool resizes an unmounted reiserfs file system.  It enlarges or shrinks an
39 .\"O reiserfs file system located on a
40 .\"O .I device
41 .\"O so that it will have
42 .\"O .I size
43 .\"O bytes or size=old_size +(\-)
44 .\"O .I size
45 .\"O bytes if the + or \- prefix is used.
46 .B resize_reiserfs
47 ¤Ï¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¡£
48 ¤³¤Î¥Ä¡¼¥ë¤Ï
49 .I device
50 ¾å¤Ë¤¢¤ë reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³ÈÂç¤Þ¤¿¤Ï½Ì¾®¤·¡¢
51 .I size
52 ¥Ð¥¤¥È¤Ë¤¹¤ë¡£
53 ¥×¥ì¥Õ¥£¥Ã¥¯¥¹ + ¤Þ¤¿¤Ï \- ¤ò»È¤Ã¤¿¾ì¹ç¡¢
54 .I size
55 ¤Ë¤ÏÁý¸º¤¹¤ë¥Ð¥¤¥È¿ô¤ò»ØÄꤹ¤ë¡£
56 .\"O If the
57 .\"O .B \-s
58 .\"O option is not specified, the filesystem will be resized to fill the
59 .\"O given device.
60 .\"O The
61 .\"O .I size
62 .\"O parameter may have one of the optional modifiers
63 .\"O .BR K ", " M ", " G ,
64 .\"O which means the
65 .\"O .I size
66 .\"O parameter is given in kilo\-, mega\-, gigabytes respectively.
67 .B \-s
68 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
69 »ØÄꤵ¤ì¤¿¥Ç¥Ð¥¤¥¹¤òºÇÂç¸Â¤Ë»È¤¦¤è¤¦¤Ë¥µ¥¤¥º¤¬Êѹ¹¤µ¤ì¤ë¡£
70 .I size
71 ¥Ñ¥é¥á¡¼¥¿¤Ë¤Ïñ°Ì (modifier)
72 .BR K ", " M ", " G
73 ¤òÉÕ¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
74 ¤³¤ì¤é¤Îñ°Ì¤Ï¡¢
75 .I size
76 ¥Ñ¥é¥á¡¼¥¿¤¬¤½¤ì¤¾¤ì¥­¥í¡¦¥á¥¬¡¦¥®¥¬¥Ð¥¤¥È¤ÇÍ¿¤¨¤é¤ì¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
77 .PP
78 .\"O The
79 .\"O .B resize_reiserfs
80 .\"O program does not manipulate the size of the device. 
81 .B resize_reiserfs
82 ¤Ï¥Ç¥Ð¥¤¥¹¤Î¥µ¥¤¥º¤òÁàºî¤·¤Ê¤¤¡£
83 .\"O If you wish to
84 .\"O enlarge a filesystem, you must make sure you expand the underlying
85 .\"O device first. 
86 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³ÈÂ礷¤¿¤¤¤È»×¤¦¤Ê¤é¡¢
87 ¤Þ¤ººÇ½é¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¤¢¤ë¥Ç¥Ð¥¤¥¹¤ò³ÈÂ礷¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
88 .\"O This can be done using
89 .\"O .BR cfdisk (8)
90 .\"O for partitions, by deleting the partition and recreating it with a
91 .\"O larger size (assuming there is free space
92 .\"O .I after
93 .\"O the partition in question).  
94 ¤³¤ì¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ËÂФ·¤Æ
95 .BR cfdisk (8)
96 ¤ò»È¤¦¤³¤È¤Ë¤è¤ê²Äǽ¤Ç¤¢¤ë¡£
97 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºï½ü¤·¤Æ¡¢¤µ¤é¤ËÂ礭¤¤¥µ¥¤¥º¤ÇºÆºîÀ®¤¹¤ì¤Ð¤è¤¤
98 (³ºÅö¤¹¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î
99 .I ¸å¤Ë
100 ¶õ¤­Îΰ褬¤¢¤ë¤³¤È¤ò²¾Äꤷ¤Æ¤¤¤ë)¡£
101 .\"O Make sure you re\-create it with the
102 .\"O same starting disk cylinder as before!  Otherwise, the resize operation
103 .\"O will certainly not work, and you may lose your entire filesystem.
104 °ÊÁ°¤ÈƱ¤¸³«»Ï¥Ç¥£¥¹¥¯¥·¥ê¥ó¥À¤Ç
105 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¡ÖºÆ¡×ºîÀ®¤¹¤ë¤³¤È!
106 ¤µ¤â¤Ê¤±¤ì¤Ð¡¢¥µ¥¤¥º¤ÎÊѹ¹Áàºî¤Ï´Ö°ã¤¤¤Ê¤¯¤¦¤Þ¤¯¹Ô¤«¤º¡¢
107 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÁ´ÂΤò¼º¤Ã¤Æ¤·¤Þ¤¦¤À¤í¤¦¡£
108 .PP
109 .\"O The
110 .\"O .B resize_reiserfs
111 .\"O program allows to grow a reiserfs on-line if there is a free
112 .\"O space on block
113 .\"O .I device.
114 ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹
115 .I device
116 ¤Ë¶õ¤­Îΰ褬¤¢¤ë¾ì¹ç¡¢
117 .B resize_reiserfs
118 ¤Ï reiserfs ¤ò¥ª¥ó¥é¥¤¥ó¤Ç³ÈÂ礹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
119
120 .PP
121 .\"O If you wish to shrink a reiserfs partition, first use
122 .\"O .B resize_reiserfs
123 .\"O to shrink the file system. You may then use
124 .\"O .BR cfdisk (8)
125 .\"O to shrink the device. When shrinking the size of the device, make sure
126 .\"O you do not make it smaller than the reduced size of the reiserfs filesystem.
127 reiserfs ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò½Ì¾®¤·¤¿¤¤¤È»×¤¦¤Ê¤é¡¢
128 ¤Þ¤ººÇ½é¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò½Ì¾®¤¹¤ë¤¿¤á¤Ë
129 .B resize_reiserfs
130 ¤ò»È¤¦¤³¤È¡£
131 ¤½¤Î¸å¤Ç¡¢¥Ç¥Ð¥¤¥¹¤ò½Ì¾®¤¹¤ë¤¿¤á¤Ë
132 .BR cfdisk (8)
133 ¤ò»È¤¦¤³¤È¡£
134 ¥Ç¥Ð¥¤¥¹¤Î¥µ¥¤¥º¤ò½Ì¾®¤¹¤ë¤È¤­¤Ï¡¢
135 ½Ì¾®¤·¤¿ reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤è¤ê¾®¤µ¤¯¤Ê¤¤ÅÀ¤ò³Îǧ¤¹¤ë¤³¤È¡£
136
137 .\"O .SH OPTIONS
138 .SH ¥ª¥×¥·¥ç¥ó
139 .TP
140 .BR \-s\ [+|\-]\fIsize
141 .\"O Set the new size in bytes.
142 ¿·¤·¤¤¥µ¥¤¥º¤ò¥Ð¥¤¥Èñ°Ì¤ÇÀßÄꤹ¤ë¡£
143 .TP
144 .BR \-j\ \fIdev
145 .\"O Set the journal device name.
146 ¥¸¥ã¡¼¥Ê¥ë¥Ç¥Ð¥¤¥¹Ì¾¤òÀßÄꤹ¤ë¡£
147 .TP 
148 .BR \-f
149 .\"O Force, do not perform checks.
150 ¥Á¥§¥Ã¥¯¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤Ë¶¯À©¤¹¤ë¡£
151 .TP
152 .BR \-q
153 .\"O Do not print anything but error messages.
154 ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸°Ê³°¡¢²¿¤âɽ¼¨¤·¤Ê¤¤¡£
155 .TP
156 .BR \-v 
157 .\"O Turn on extra progress status messages (default).
158 ÄɲäÇɽ¼¨¤µ¤ì¤ë¿ÊĽ¾õ¶·¥á¥Ã¥»¡¼¥¸¤òÍ­¸ú¤Ë¤¹¤ë (¥Ç¥Õ¥©¥ë¥È)¡£
159
160 .\"O .SH RETURN VALUES
161 .SH ÊÖ¤êÃÍ
162 .\"O 0  Resizing successful.
163 0       ¥µ¥¤¥ºÊѹ¹¤ËÀ®¸ù¤·¤¿¡£
164 .TP
165 .\"O \-1        Resizing not successful.
166 \-1     ¥µ¥¤¥ºÊѹ¹¤Ë¼ºÇÔ¤·¤¿¡£
167
168 .\"O .SH EXAMPLES
169 .SH Îã
170 .\"O The following example shows how to test
171 .\"O .B resize_reiserfs\fR.
172 .\"O Suppose 2Gb reiserfs filesystem is created on the device /dev/hda8
173 .\"O and is mounted on /mnt. 
174 .\"O For shrinking the device we need to unmount it first, then run
175 .\"O .B resize_reiserfs
176 .\"O with a
177 .\"O .I size \fR parameter (in this case -1Gb):
178 °Ê²¼¤ÎÎã¤Ï
179 .B resize_reiserfs
180 ¤ò¥Æ¥¹¥È¤¹¤ëÊýË¡¤ò¼¨¤·¤Æ¤¤¤ë¡£
181 2GB ¤Î reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Ç¥Ð¥¤¥¹ /dev/hda8 ¾å¤ËºîÀ®¤µ¤ì¡¢
182 /mnt ¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤È²¾Äꤹ¤ë¡£
183 ¥Ç¥Ð¥¤¥¹¤ò½Ì¾®¤¹¤ë¤Ë¤Ï¡¢ºÇ½é¤Ë¥Ç¥Ð¥¤¥¹¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
184 ¼¡¤Ë¡¢
185 .B resize_reiserfs
186 ¤ò
187 .I size
188 ¥Ñ¥é¥á¡¼¥¿ (¤³¤Î¾ì¹ç¤Ï -1G) ¤ò¤Ä¤±¤Æ¼Â¹Ô¤¹¤ë¡£
189 .PP
190 \       df
191 .br
192 \       umount /mnt
193 .br
194 \       resize_reiserfs -s -1G /dev/hda8
195 .br
196 \       mount /dev/hda8 /mnt
197 .br
198 \       df /mnt
199
200 .\"O .SH AUTHOR
201 .SH Ãø¼Ô
202 .\"O This version of
203 .\"O .B resize_reiserfs
204 .\"O has been written by Alexander Zarochentcev <zam@namesys.com>.
205 ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î
206 .B resize_reiserfs
207 ¤Ï Alexander Zarochentcev <zam@namesys.com> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£
208 .\"O .SH BUGS
209 .SH ¥Ð¥°
210 .\"O Please report bugs to the ReiserFS developers <reiserfs-dev@namesys.com>, providing
211 .\"O as much information as possible--your hardware, kernel, patches, settings, all printed
212 .\"O messages; check the syslog file for any related information.
213 ¥Ð¥°¤Ï¡¢¤Ç¤­¤ë¸Â¤ê¿¤¯¤Î¾ðÊó (¥Ï¡¼¥É¥¦¥§¥¢¡¦¥«¡¼¥Í¥ë¡¦¥Ñ¥Ã¥Á¡¦ÀßÄꡦ
214 ɽ¼¨¤µ¤ì¤¿Á´¤Æ¤Î¥á¥Ã¥»¡¼¥¸) ¤È¤È¤â¤Ë¡¢
215 ReiserFS ¤Î³«È¯¼Ô <reiserfs-dev@namesys.com> ¤ËÊó¹ð¤·¤Æ¤Û¤·¤¤¡£
216 ´ØÏ¢¤¹¤ë¾ðÊ󤬤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç syslog ¤òÄ´¤Ù¤Æ¤Û¤·¤¤¡£
217 .\"O .SH SEE ALSO
218 .SH ´ØÏ¢¹àÌÜ
219 .BR cfdisk (8),
220 .BR reiserfsck (8),
221 .BR debugreiserfs (8)