From owner-freebsd-fs@FreeBSD.ORG Sun Apr 19 15:56:17 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D10F7FF6 for ; Sun, 19 Apr 2015 15:56:17 +0000 (UTC) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B4A9B5E for ; Sun, 19 Apr 2015 15:56:17 +0000 (UTC) Received: by lbcga7 with SMTP id ga7so114289123lbc.1 for ; Sun, 19 Apr 2015 08:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ovlBGbQHEP68I/ll3Leh7nh8SnNtu+cWlFHSEh86rIg=; b=prcC+mjGgVxaIYdGDdGISe6u8i+n2EW/AwqHN3d+n4Xt7f9KK2zt8AF3C0VaVHRSuG 1bLO0/LEuD5HYHm8gdRJUl5oCUVz3v7g638O1TlFjdoI7ff+vRUKxdMLy93CJypYAftk leWZdw2DiilW3xexDQS99PBj6Zxrwup6IsPRPwcU6zgBwqjYIWERpNs9dldgUHJF7NnE QUoIHgry4R5peqa6+dLgZdnK6o5fnx8QYdCcK9i8InPthK9o4IREu0IoMWDUjzqXzO/+ vR6u+lcAC2BUML5o6qseiF6o+Sj1P63D5KNwQmgGUKfRFXmOQUVeh70S5FrkvIW5rK2g h8jw== MIME-Version: 1.0 X-Received: by 10.152.203.134 with SMTP id kq6mr12273127lac.110.1429458974389; Sun, 19 Apr 2015 08:56:14 -0700 (PDT) Received: by 10.114.18.137 with HTTP; Sun, 19 Apr 2015 08:56:14 -0700 (PDT) Date: Sun, 19 Apr 2015 08:56:14 -0700 Message-ID: Subject: Resize geli provider (md) From: javocado To: FreeBSD Filesystems Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2015 15:56:17 -0000 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? Thanks!