From owner-freebsd-questions@freebsd.org Wed Dec 26 14:41:21 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D357F1353A93 for ; Wed, 26 Dec 2018 14:41:21 +0000 (UTC) (envelope-from kdkayat@bitpri.de) Received: from bitpri.de (nut.bitpri.de [199.48.128.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CD4385BB2 for ; Wed, 26 Dec 2018 14:41:20 +0000 (UTC) (envelope-from kdkayat@bitpri.de) Received: (qmail 59963 invoked by uid 89); 26 Dec 2018 14:34:36 -0000 Received: from unknown (HELO RQN00460) (dimi@bitpri.de@217.224.228.142) by nut.bitpri.de with ESMTPA; 26 Dec 2018 14:34:36 -0000 From: Sender: "Karl D. Kayat" To: Subject: Resize a gbde encypted partition Date: Wed, 26 Dec 2018 15:34:34 +0100 Message-ID: X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdSdJRhwWrBpYD24SGSbSnYilJL+MQ== Content-Language: en-us X-Rspamd-Queue-Id: 7CD4385BB2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of kdkayat@bitpri.de designates 199.48.128.106 as permitted sender) smtp.mailfrom=kdkayat@bitpri.de X-Spamd-Result: default: False [-2.08 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; RCVD_TLS_LAST(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; HEADER_FORGED_MDN(2.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[bitpri.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-1.74)[ipnet: 199.48.128.0/22(-4.69), asn: 36236(-3.91), country: US(-0.08)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[nut.bitpri.de]; NEURAL_HAM_SHORT(-0.34)[-0.338,0]; FROM_NO_DN(0.00)[]; FORGED_SENDER(0.30)[l-freebsd@bitpri.de,kdkayat@bitpri.de]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[l-freebsd@bitpri.de,kdkayat@bitpri.de]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2018 14:41:22 -0000 Does anyone know if there is a non-destructive way to resize an existing partition that is encrypted using gbde? I'm running 11.2-RELEASE on a VM with two disks: ada0 (root and swap) and ada1 (encrypted data). I've enlarged the second disk from 20GB to 60GB and followed https://www.freebsd.org/doc/handbook/disks-growing.html. The gpart step worked fine: # gpart resize -i 1 ada1 # gpart show ada1 => 63 125829057 ada1 MBR (60G) 63 125829057 1 freebsd [active] (60G) The problem is with growfs: # growfs ada1s1 => growfs: superblock not recognized # growfs ada1s1.bde => growfs: requested size 20GB is not larger than the current filesystem size 20GB I suspect that resizing is not supported with GBDE devices but haven't found any mention of it in the Handbook or forums. Can somebody confirm? Cheers, Karl