From: Patrick Boutilier <boutilpj@ednet.ns.ca>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] resize reiserfs
Date: Thu Nov 22 13:34:01 2001 [thread overview]
Message-ID: <3BFD5397.4080005@ednet.ns.ca> (raw)
In-Reply-To: 20011122203009.A557@sky.net
Why not just use the resize_reiserfs program from the reiserfsprogs
package available from
ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.x.0j.tar.gz ?
Snip from manpage:
NAME
resize_reiserfs - Reiserfs filesystem resizer
SYNOPSIS
resize_reiserfs [ -s [+|-]size[K|M|G] ] [ -fqv ] device
DESCRIPTION
The resize_reiserfs tool resizes an unmounted reiserfs file
system. It enlarges or shrinks an reiserfs file system located on a
device so that it will have size bytes or size=old_size +(-) size
bytes if the + or - prefix is used. If the -s option is not
specified, the filesystem will be resized to fill the given device. The
size parameter may have one of the optional modifiers K, M,
G, which means the size parameter is given in kilo-, mega-,
gigabytes respectively.
The resize_reiserfs program does not manipulate the size of
the device. If you wish to enlarge a filesystem, you must make sure you
expand the underlying device first. This can be done using
cfdisk(8) for partitions, by deleting the partition and
recreating it with a larger size (assuming there is free space after the
partition in question). Make sure you re-create it with the same
starting disk cylinder as before! Otherwise, the resize
operation will certainly not work, and you may lose your entire filesystem.
The resize_reiserfs program allows to grow a reiserfs on-line if
there is a free space on block device.
If you wish to shrink an reiserfs partition, first use
resize_reiserfs to shrink the file system. You may then use cfdisk(8) to
shrink the device. When shrinking the size of the device, make
sure you do not make it smaller than the reduced size of the
reiserfs filesystem.
Ulrich Wiederhold wrote:
>Hi,
>I need to resize my lv /dev/store/data now.
>
>I already added the 2nd HD (/dev/hdc1) to the vg store using vgextend
>and extended the lv using lvextend.
>
>Now I need to extend the reiserfs I got on this lv. I seached the web
>and found the resize_reiserfs perl-script, but if I try it, I only get
>this msg:
>$#: ./resize_reiserfs --size +50G --lv /dev/store/data --dry-run
>
> only 0 free PE's (0 K) left on VG store
>
>Sure, I already added the PE�s to the lv.
>What to do?
>
>Uli
>
next prev parent reply other threads:[~2001-11-22 13:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-22 13:26 [linux-lvm] resize reiserfs Ulrich Wiederhold
2001-11-22 13:34 ` Patrick Boutilier [this message]
2001-11-22 14:01 ` Andreas Dilger
2001-11-22 14:35 ` Alex Zarochentsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BFD5397.4080005@ednet.ns.ca \
--to=boutilpj@ednet.ns.ca \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox