[linux-lvm] Re: ext2resize

tytso at mit.edu tytso at mit.edu
Thu Jul 8 14:34:47 UTC 1999


   From: "Lennert Buytenhek" <buytenh at dsv.nl>
   Date:   Tue, 6 Jul 1999 09:56:07 +0200

   I just got an email from John Finlay saying he's got a 52GB fs with
   6000+ block groups. So the 1024 block group limit is just bogus.
   The header in question which #defined the max # of block groups
   to be 1024 is wrong, then.

I'm curious *where* people thought a header defined the max # of block
groups to be 1024?  Yes, that limit is completely bogus.

   From: "Lennert Buytenhek" <buytenh at dsv.nl>
   Date:   Tue, 6 Jul 1999 10:56:06 +0200

   Moving the inode/block bitmap blocks is not that difficult when
   unmounted, but moving the inode table is tricky to get right (w.r.t
   atomicity). One ext2resize user got a segfault while the inode table
   was being moved (yes, that bug is fixed now) a while ago and
   we're still cleaning up the mess.

The trick here is to try *very* hard not to have to do an overlapping
move of the inode table (which you may be forced to do if the filesystem
is too full, but in most cases it can be avoided).  Then do a copy of
that portion of the inode table, and only update the GDT *after* the
inode table has been safely moved.  

You may have to move some extra data blocks belonging to files to do
this, though, so it's much easier to do this safely during an offline
resize. 

						- Ted



More information about the linux-lvm mailing list