Resize geli provider (md)
Fabian Keil
freebsd-listen at fabiankeil.de
Sun Apr 19 16:15:45 UTC 2015
javocado <javocado at gmail.com> wrote:
> I have a md-backed geli mount which I created as follows:
>
> dd if=/dev/zero of=geli.img bs=1m count=102400
> mdconfig -f geli.img -u 123
> geli init /dev/md123 (blank pass)
> geli attach /dev/md123
> newfs /dev/md123.eli
> mkdir encrypted
> mount /dev/md123.eli encrypted
>
> And I wish to expand it's size. The method I've been using is to create new
> larger device and copy data over, but I'm hoping there's a better way to
> expand in place (without the loss of the existing data). Any advice?
Increase the size of geli.img (for example with truncate -s +...),
resize the geli provider with 'geli resize', and finally grow the
file system with growfs. For details see the man pages.
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20150419/b383127d/attachment.sig>
More information about the freebsd-fs
mailing list