Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2018 15:34:34 +0100
From:      <l-freebsd@bitpri.de>
To:        <freebsd-questions@freebsd.org>
Subject:   Resize a gbde encypted partition
Message-ID:  <!&!AAAAAAAAAAAuAAAAAAAAAI0vqTI1ygpKrBhjkbCaTOQBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAADUW0D8ccFpS4rOk17XRrlLAQAAAAA=@bitpri.de>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?!&!AAAAAAAAAAAuAAAAAAAAAI0vqTI1ygpKrBhjkbCaTOQBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAADUW0D8ccFpS4rOk17XRrlLAQAAAAA=>