Date: Sun, 19 Apr 2015 18:15:37 +0200 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: javocado <javocado@gmail.com> Cc: FreeBSD Filesystems <freebsd-fs@freebsd.org> Subject: Re: Resize geli provider (md) Message-ID: <29d12e6f.643fd081@fabiankeil.de> In-Reply-To: <CAP1HOmT98FJeN5VK7RRfp%2B6ja08%2BFb-8Y0N=YVmAogi-F5YGUA@mail.gmail.com> References: <CAP1HOmT98FJeN5VK7RRfp%2B6ja08%2BFb-8Y0N=YVmAogi-F5YGUA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/qM.Frm4x4ElpJ2IkGLLdFZ+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable javocado <javocado@gmail.com> wrote: > I have a md-backed geli mount which I created as follows: >=20 > dd if=3D/dev/zero of=3Dgeli.img bs=3D1m count=3D102400 > 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 >=20 > And I wish to expand it's size. The method I've been using is to create n= ew > 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 --Sig_/qM.Frm4x4ElpJ2IkGLLdFZ+ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlUz1KYACgkQBYqIVf93VJ3HkgCgwJETDJGOvvQNhM+0S0uNNMK4 MewAoJIvIC00UXyKYy91R8ovhY5j9sZ1 =HBOc -----END PGP SIGNATURE----- --Sig_/qM.Frm4x4ElpJ2IkGLLdFZ+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29d12e6f.643fd081>