All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Heinz J. Mauelshagen" <Mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] successes & resizing
Date: Wed, 16 May 2001 10:10:43 +0000	[thread overview]
Message-ID: <20010516101043.A11984@sistina.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10105141942530.5506-100000@staff>; from todd@osogrande.com on Tue, May 15, 2001 at 09:21:29PM -0600

On Tue, May 15, 2001 at 09:21:29PM -0600, Todd Underwood wrote:
> folx, 
> 
> i resolved the problem i posted about last week:  unable to mount root
> device in trying to set up lvmroot using a bootable real ext2 partition
> and initrd. they key (and this maybe a FAQ but i didn't see it) was
> getting my scsi driver loaded into the initrd.  this was as simple as
> unzipping the initrd-lvm-2.4.3.gz file, mouting on the loopback.  copying
> the scsi module into place in /lib/modules and adding a modprobe to
> linuxrc.  after that, all was good.  this may be worth documenting
> somewhere (i was considering taking the existing info about lvm root and
> doing a HOWTO given that i've set it up 5 or 8 times in the last two
> weeks).

I'ld appreciate if you'ld enhance the HOWTO and send it to me in order
to put it up on the web.

> 
> i have a separate question about ext2 resizing on a separate system:  when
> i try to resize the root (using the ext2online resize patch to 2.4.3) i
> get:
> 
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/rootvg/root        495844    250577    219667  54% /
> /dev/rootvg/usr        2590504   1444748   1014072  59% /usr
> /dev/rootvg/home       1032088        20    979640   1% /home
> /dev/rootvg/var         495844    105794    364450  23% /var
> /dev/hda1               101089      6029     89841   7% /boot
> bash-2.04# e2fsadm -L +200M / 
> e2fsadm -- invalid logical volume name "/dev/root"
> 
> 
> e2fsadm [-d|--debug] [-h|--help] [-n|--nofsck]
> 	{[-l|--extents] [+|-]LogicalExtentsNumber |
> 	 [-L|--size] [+|-]LogicalVolumeSize[kKmMgGtT]}
> 	[-t|--test] [-v|--verbose] [--version] LogicalVolumePath
> 
> bash-2.04# e2fsadm -L +200M /dev/rootvg/root 
> lvextend -- extending logical volume "/dev/rootvg/root" to 700 MB
> lvextend -- doing automatic backup of volume group "rootvg"
> lvextend -- logical volume "/dev/rootvg/root" successfully extended
> 
> ext2online v1.1.17 - 2001/03/18 for EXT2FS 0.5b
> new filesystem size 716800
> ext2online: group 0, block 4 not reserved
> 
> ext2online: unable to resize /dev/rootvg/root past 524288 blocks

You only can extent ext2 filesystems within constraints given when you
create them. In particular the block group descriptors are limited.

You could resize that filesystem offline using Ted Tso's resize2fs though.

BTW: your root LV now has 700M which makes me assume that you extended it to
     500M before without extending the fs. You should reduce it to 500M
     after you extended the fs to that size.

Regards,
Heinz    -- The LVM Guy --

> 
> 
> ------------------------
> 
> any suggestions?
> 
> todd underwood
> vice president & 
>    chief technology officer
> oso grande technologies, inc.
> todd@osogrande.com
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2001-05-16 10:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-16  3:21 [linux-lvm] successes & resizing Todd Underwood
2001-05-16 10:10 ` Heinz J. Mauelshagen [this message]
2001-05-16 16:55 ` Andreas Dilger
2001-05-16 21:05   ` Luca Berra
2001-05-17  0:10   ` Todd Underwood

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=20010516101043.A11984@sistina.com \
    --to=mauelshagen@sistina.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.