[Pkg-cryptsetup-devel] Bug#428288: online resize a luks device

Enrico Zini enrico at debian.org
Fri Apr 25 08:21:52 UTC 2008


On Mon, Mar 17, 2008 at 04:31:45PM +0100, Jonas Meurer wrote:

> and now the interesting part:
> # mount /dev/mapper/test1 /mnt/
> # df -h /dev/mapper/test1 
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/test1     291M  6.1M  270M   3% /mnt
> # lvresize -L+100M /dev/vg00/test 
>   Extending logical volume test to 400.00 MB
>   Logical volume test successfully resized
> # cryptsetup resize test1 
> # resize2fs /dev/mapper/test1 
> resize2fs 1.40.8 (13-Mar-2008)
> Filesystem at /dev/mapper/test1 is mounted on /mnt; on-line resizing required
> old desc_blocks = 2, new_desc_blocks = 2
> Performing an on-line resize of /dev/mapper/test1 to 409084 (1k) blocks.
> The filesystem on /dev/mapper/test1 is now 409084 blocks long.
> # df -h /dev/mapper/test1 
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/test1     388M  6.3M  362M   2% /mnt
> so for me online resizing of luks partitions works quite well. could you
> verify that it doesn't for you?

I finally had the need of doing it.  I followed your steps exactly, and
indeed it worked perfectly.

Thank you!

Ciao,

Enrico

-- 
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enrico at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20080425/bdfe1558/attachment.pgp 


More information about the Pkg-cryptsetup-devel mailing list