* Petter Reinholdtsen
> This sounds very good. I tried online resizing with kernel
> 2.6.15-1-686-smp on etch, and was unable to get it working. Is this
> supported for ext2 or ext3, or both? How can I verify that it is
> working?
>
> I tested using ext2online. Is this the wrong tool to use?
Hmm. It doesn't work anymore with ext2resize 1.1.19-4. If I
downgrade to 1.1.19-3, it works again. You've broken it! Bad, bad
Petter! :-)
Log:
[EMAIL PROTECTED] :) sudo lvcreate -L2G -ntest echo
Logical volume "test" created
[EMAIL PROTECTED] :) sudo mke2fs -O has_journal,resize_inode /dev/echo/test
1G
mke2fs 1.39-WIP (31-Dec-2005)
Etichetta del filesystem=
Tipo SO: Linux
Dimensione blocco=4096 (log=2)
Dimensione frammento=4096 (log=2)
131072 inode, 262144 blocchi
13107 blocchi (5.00%) riservati per l'utente root
Primo blocco dati=0
Maximum filesystem blocks=268435456
8 gruppi di blocchi
32768 blocchi per gruppo, 32768 frammenti per gruppo
16384 inode per gruppo
Backup del superblocco salvati nei blocchi:
32768, 98304, 163840, 229376
Scrittura delle tavole degli inode: fatto
Creazione del journal (8192 blocchi): fatto
Scrittura delle informazioni dei superblocchi e dell'accounting del
filesystem: fatto
Questo filesystem verrĂ automaticamente controllato ogni 33 mount, o
180 giorni, a seconda di quale venga prima. Usare tune2fs -c o -i per
cambiare.
[EMAIL PROTECTED] :) sudo mount /dev/echo/test /mnt
[EMAIL PROTECTED] :) df -hP /mnt
Filesystem Dimens. Usati Disp. Uso% Montato su
/dev/mapper/echo-test 1008M 34M 924M 4% /mnt
[EMAIL PROTECTED] :) sudo ext2online /mnt
ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b
[EMAIL PROTECTED] :) df -hP /mnt
Filesystem Dimens. Usati Disp. Uso% Montato su
/dev/mapper/echo-test 2,0G 34M 1,9G 2% /mnt
Using 1.1.19-4, the ext2online step yields:
ext2online v1.1.19 - 2001/03/18 for EXT2FS 0.5b
ext2online: unable to resize /dev/mapper/echo-test
There's only code for online resizing in ext3, not ext2 (in the
kernel.org tree, anyway). See /usr/share/linux/fs/ext3/resize.c.
Also the current resize2fs program from e2fsprogs Mercurial repository
is able to do online resizing (tested it and it works fine), so IMHO
the ext2resize suite is quickly losing its relevancy... I don't really
see why anyone would want to use these tools over the ones included in
e2fsprogs, as the latter obviously enjoy much better upstream
maintenance. Only ext2prepare-equivalent functionality is missing from
e2fsprogs now.
I'm using an unmodified linux-image-2.6.15-1-k7 (version 2.6.15-8), by
the way.
Cheers
--
Tore Anderson