2 .\" Copyright 1996-2004 Hans Reiser.
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
15 .TH RESIZE_REISERFS 8 "January 2004" "Reiserfsprogs-3.6.19"
18 .\"O resize_reiserfs \- resizer tool for the ReiserFS filesystem
19 resize_reiserfs \- ReiserFS ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥ºÊѹ¹¥Ä¡¼¥ë
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]
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
41 .\"O so that it will have
43 .\"O bytes or size=old_size +(\-)
45 .\"O bytes if the + or \- prefix is used.
47 ¤Ï¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¡£
50 ¾å¤Ë¤¢¤ë reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³ÈÂç¤Þ¤¿¤Ï½Ì¾®¤·¡¢
53 ¥×¥ì¥Õ¥£¥Ã¥¯¥¹ + ¤Þ¤¿¤Ï \- ¤ò»È¤Ã¤¿¾ì¹ç¡¢
55 ¤Ë¤ÏÁý¸º¤¹¤ë¥Ð¥¤¥È¿ô¤ò»ØÄꤹ¤ë¡£
58 .\"O option is not specified, the filesystem will be resized to fill the
62 .\"O parameter may have one of the optional modifiers
63 .\"O .BR K ", " M ", " G ,
66 .\"O parameter is given in kilo\-, mega\-, gigabytes respectively.
68 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
69 »ØÄꤵ¤ì¤¿¥Ç¥Ð¥¤¥¹¤òºÇÂç¸Â¤Ë»È¤¦¤è¤¦¤Ë¥µ¥¤¥º¤¬Êѹ¹¤µ¤ì¤ë¡£
71 ¥Ñ¥é¥á¡¼¥¿¤Ë¤Ïñ°Ì (modifier)
73 ¤òÉÕ¤±¤ë¤³¤È¤¬¤Ç¤¤ë¡£
76 ¥Ñ¥é¥á¡¼¥¿¤¬¤½¤ì¤¾¤ì¥¥í¡¦¥á¥¬¡¦¥®¥¬¥Ð¥¤¥È¤ÇÍ¿¤¨¤é¤ì¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
79 .\"O .B resize_reiserfs
80 .\"O program does not manipulate the size of the device.
82 ¤Ï¥Ç¥Ð¥¤¥¹¤Î¥µ¥¤¥º¤òÁàºî¤·¤Ê¤¤¡£
84 .\"O enlarge a filesystem, you must make sure you expand the underlying
86 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³ÈÂ礷¤¿¤¤¤È»×¤¦¤Ê¤é¡¢
87 ¤Þ¤ººÇ½é¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¤¢¤ë¥Ç¥Ð¥¤¥¹¤ò³ÈÂ礷¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
88 .\"O This can be done using
90 .\"O for partitions, by deleting the partition and recreating it with a
91 .\"O larger size (assuming there is free space
93 .\"O the partition in question).
94 ¤³¤ì¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ËÂФ·¤Æ
96 ¤ò»È¤¦¤³¤È¤Ë¤è¤ê²Äǽ¤Ç¤¢¤ë¡£
97 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºï½ü¤·¤Æ¡¢¤µ¤é¤ËÂ礤¤¥µ¥¤¥º¤ÇºÆºîÀ®¤¹¤ì¤Ð¤è¤¤
98 (³ºÅö¤¹¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î
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 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÁ´ÂΤò¼º¤Ã¤Æ¤·¤Þ¤¦¤À¤í¤¦¡£
110 .\"O .B resize_reiserfs
111 .\"O program allows to grow a reiserfs on-line if there is a free
116 ¤Ë¶õ¤Îΰ褬¤¢¤ë¾ì¹ç¡¢
118 ¤Ï reiserfs ¤ò¥ª¥ó¥é¥¤¥ó¤Ç³ÈÂ礹¤ë¤³¤È¤¬¤Ç¤¤ë¡£
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
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 ¤Þ¤ººÇ½é¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò½Ì¾®¤¹¤ë¤¿¤á¤Ë
131 ¤½¤Î¸å¤Ç¡¢¥Ç¥Ð¥¤¥¹¤ò½Ì¾®¤¹¤ë¤¿¤á¤Ë
134 ¥Ç¥Ð¥¤¥¹¤Î¥µ¥¤¥º¤ò½Ì¾®¤¹¤ë¤È¤¤Ï¡¢
135 ½Ì¾®¤·¤¿ reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤è¤ê¾®¤µ¤¯¤Ê¤¤ÅÀ¤ò³Îǧ¤¹¤ë¤³¤È¡£
140 .BR \-s\ [+|\-]\fIsize
141 .\"O Set the new size in bytes.
142 ¿·¤·¤¤¥µ¥¤¥º¤ò¥Ð¥¤¥Èñ°Ì¤ÇÀßÄꤹ¤ë¡£
145 .\"O Set the journal device name.
146 ¥¸¥ã¡¼¥Ê¥ë¥Ç¥Ð¥¤¥¹Ì¾¤òÀßÄꤹ¤ë¡£
149 .\"O Force, do not perform checks.
150 ¥Á¥§¥Ã¥¯¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤Ë¶¯À©¤¹¤ë¡£
153 .\"O Do not print anything but error messages.
154 ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸°Ê³°¡¢²¿¤âɽ¼¨¤·¤Ê¤¤¡£
157 .\"O Turn on extra progress status messages (default).
158 ÄɲäÇɽ¼¨¤µ¤ì¤ë¿ÊĽ¾õ¶·¥á¥Ã¥»¡¼¥¸¤ò͸ú¤Ë¤¹¤ë (¥Ç¥Õ¥©¥ë¥È)¡£
160 .\"O .SH RETURN VALUES
162 .\"O 0 Resizing successful.
163 0 ¥µ¥¤¥ºÊѹ¹¤ËÀ®¸ù¤·¤¿¡£
165 .\"O \-1 Resizing not successful.
166 \-1 ¥µ¥¤¥ºÊѹ¹¤Ë¼ºÇÔ¤·¤¿¡£
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
177 .\"O .I size \fR parameter (in this case -1Gb):
180 ¤ò¥Æ¥¹¥È¤¹¤ëÊýË¡¤ò¼¨¤·¤Æ¤¤¤ë¡£
181 2GB ¤Î reiserfs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Ç¥Ð¥¤¥¹ /dev/hda8 ¾å¤ËºîÀ®¤µ¤ì¡¢
182 /mnt ¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤È²¾Äꤹ¤ë¡£
183 ¥Ç¥Ð¥¤¥¹¤ò½Ì¾®¤¹¤ë¤Ë¤Ï¡¢ºÇ½é¤Ë¥Ç¥Ð¥¤¥¹¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
188 ¥Ñ¥é¥á¡¼¥¿ (¤³¤Î¾ì¹ç¤Ï -1G) ¤ò¤Ä¤±¤Æ¼Â¹Ô¤¹¤ë¡£
194 \ resize_reiserfs -s -1G /dev/hda8
196 \ mount /dev/hda8 /mnt
203 .\"O .B resize_reiserfs
204 .\"O has been written by Alexander Zarochentcev <zam@namesys.com>.
207 ¤Ï Alexander Zarochentcev <zam@namesys.com> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£
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 ¤òÄ´¤Ù¤Æ¤Û¤·¤¤¡£
221 .BR debugreiserfs (8)