[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] successes & resizing



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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]