Skip to contentSkip to conversation

Resize of a reiser4 filesystem?

DISCUSSION Alexander Skwar 4 participants 8 messages Jul 17, 2005 – Jul 23, 2005

lore
Share & tools
lore
#0 lore raw

Hello!

I'm looking for a way to resize my reiser4 filesystems. Best would be an "online" option (ie. one, that does not require an unmount of the fs).

In older packages, I found a man page for a resize_reiser4 tool (not sure about the name). Even this manpage is gone in the sys-fs/reiser4progs-1.0.4 Gentoo package, which I've got currently installed.

If there's no "online" way, an offline way would be appreciated as well.

Thanks a lot,

Alexander Skwar

Signature · 1 line
L BREAK into program, 0:1
#1 lore raw

I've got Gentoo and this is installed :

sys-fs/reiser4progs
Latest version available: 1.0.4
Latest version installed: 1.0.3

I believe the name of the tool has changed and is now resizefs.reiser4

A copy of the man page :

resizefs.reiser4(8) reiser4progs manual resizefs.reiser4(8)

NAME
resizefs.reiser4 - the program for resize reiser4 filesystem.

SYNOPSIS
resizefs.reiser4 [ options ] FILE size[K|M|G]

DESCRIPTION
resizefs.reiser4 is reiser4 filesystem resize program.

COMMON OPTIONS
-V, --version
prints program version.

-?, -h, --help
prints program help.

-y, --yes
assumes an answer 'yes' to all questions.

-f, --force
forces resizefs to use whole disk, not block device or
mounted partition.

-c, --cache N
sets tree cache node number to passed value. This affects
very much behavior of libreiser4. It affects
speed, tree allocation, etc.

PLUGIN OPTIONS
-p, --print-profile
prints the plugin profile. This is the set of default
plugins used for all parts of a filesystem --
format, nodes, files, directories, hashes, etc. If
--override is specified, then prints modified plug-
ins.

-l, --print-plugins
prints all plugins libreiser4 know about.

-o, --override TYPE=PLUGIN, ...
overrides the default plugin of the type "TYPE" by the
plugin "PLUGIN" in the plugin profile.

Examples:

resizefs.reiser4 -qf -o nodeptr=nodeptr41,hash=rupasov_hash
/dev/hda2 /dev/hda3

REPORTING BUGS
Report bugs to <[email protected]>, <[email protected]>

SUPPORT
You can get support at http://www.namesys.com/support.html

SEE ALSO

       libreiser4(8), measurefs.reiser4(8), debugfs.reiser4(8),  

fsck.reiser4(8) mkfs.reiser4(8) copyfs.reiser4(8)

AUTHOR
This manual page was written by Yury Umanets <[email protected]>

Quoted 17 lines · Alexander Skwar

Hello!

I'm looking for a way to resize my reiser4 filesystems. Best would be an "online" option (ie. one, that does not require an unmount of the fs).

In older packages, I found a man page for a resize_reiser4 tool (not sure about the name). Even this manpage is gone in the sys-fs/reiser4progs-1.0.4 Gentoo package, which I've got currently installed.

If there's no "online" way, an offline way would be appreciated as well.

Thanks a lot,

Alexander Skwar

#2 lore raw
Quoted 7 lines · PFC

I've got Gentoo and this is installed :

sys-fs/reiser4progs
Latest version available: 1.0.4
Latest version installed: 1.0.3

I believe the name of the tool has changed and is now resizefs.reiser4

[17:21:48 alexander@server:~] $ grep resize /var/db/pkg/sys-fs/reiser4progs-1.0.4/CONTENTS [17:21:48 alexander@server:~] $

IOW: On my system, there's no "resize" program in the reiser4progs package.

In 1.0.3, I also had that manpage - but I had no binary. Do you have a binary?

Alexander Skwar

Signature · 1 line
Think honk if you're a telepath.
#3 lore raw
Quoted 3 lines

In 1.0.3, I also had that manpage - but I had no binary. Do you have a binary?

Looks like it is there :

nyuu root # grep resize /var/db/pkg/sys-fs/reiser4progs-1.0.3/CONTENTS
obj /usr/share/man/man8/resizefs.reiser4.8.gz 2142fde4cd6c41cfe319f34dd082c07c 1110658498 obj /sbin/resizefs.reiser4 c8acc86f223809b70ad1d36cc37da264 1110658498

nyuu root # which resizefs.reiser4
/sbin/resizefs.reiser4

nyuu root # resizefs.reiser4
Usage: resizefs.reiser4 [ options ] FILE size[K|M|G] Plugins options:

  -p, --print-profile           prints default profile.
  -l, --print-plugins           prints known plugins.
  -o, --override TYPE=PLUGIN    overrides the default plugin of the type
                                "TYPE" by the plugin "PLUGIN" in the
                                profile.
Common options:
  -?, -h, --help                prints program usage.
  -V, --version                 prints current version.
  -y, --yes                     assumes an answer 'yes' to all questions.
  -f, --force                   makes resizer to use whole disk, not

block device or mounted partition.
-c, --cache N number of nodes in tree buffer cache

#4 lore raw
Quoted 4 lines · PFC
Quoted 2 lines

In 1.0.3, I also had that manpage - but I had no binary. Do you have a binary?

Looks like it is there :

[...]

Quoted 4 lines

obj /sbin/resizefs.reiser4 c8acc86f223809b70ad1d36cc37da264 1110658498

nyuu root # which resizefs.reiser4
/sbin/resizefs.reiser4

Interesting. How did you build the package? What USE flags?

I've got:

[ebuild UD] sys-fs/reiser4progs-1.0.3 [1.0.4] -debug +readline +static 851 kB

...

Okay, when I build the 1.0.3 package, I also get a /sbin/resizefs.reiser4. But not in the 1.0.4 package.

Also not when I build it manually (ie. without Gentoo stuff).

Has resizefs.reiser4 been removed from 1.0.4?

Alexander Skwar

Signature · 1 line
Used staples are good with SOY SAUCE!
#5 lore raw
Quoted 2 lines

[ebuild UD] sys-fs/reiser4progs-1.0.3 [1.0.4] -debug +readline

how do you obtain that information ?

#6 lore raw
In reply to Alexander Skwar

Alexander Skwar wrote:
[...]

Quoted 1 line

Has resizefs.reiser4 been removed from 1.0.4?

I think that resizefs.reiser4, even when it was in 1.0.3, was a stub. I don't think it even grew the FS.

As far as shrinking goes, forget it. Shrinking will need a repacker, and Namesys wants to do an online repacker, which is great. They want to be paid to do it, which is not great, because no one's currently paying them.

I offered to write one, but of course, this is one of the things that Hans would rather I not write so that he can have someone pay Namesys to write.

So, sometime after all the getting-into-the-vanilla-kernel fluff is done, we may get a resizefs.reiser4 that resizes online, growing or shrinking. Maybe it'll even be able to do that from both ends, but I hardly dare hope.

For now, your best bet is to make sure you can do a full backup of anything you put on a Reiser4 filesystem, and do that backup with tar.

Signature · 3 lines
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.0/50 - Release Date: 7/16/2005
#7 lore raw
In reply to Alexander Skwar

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Alexander Skwar

Okay, when I build the 1.0.3 package, I also get a /sbin/resizefs.reiser4. But not in the 1.0.4 package.

Also not when I build it manually (ie. without Gentoo stuff).

Has resizefs.reiser4 been removed from 1.0.4?

Alexander Skwar

http://bugs.gentoo.org/show_bug.cgi?id=87596

Regards,
Petteri Räty
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC4quzcxLzpIGCsLQRAhyeAJ9bjwKeIg+EyzmrL2kz+o5qBRNgWgCfU9i7 ze/31p4rYNiG8LhJi6SZCcM=
=oiFO
-----END PGP SIGNATURE-----