On Sun, Jun 26, 2022 at 04:25:56AM +0100, Chris Narkiewicz wrote: > I have a network-attached block device that is used > as an encrypted device: > > bioctl -c C -l /dev/sd1a -p /keydisk softraid0 > > Underlying volume is about to be resized, but I can't resize > the decrypted volume. Here is what I did using a USB stick > (as a dress rehearsal): > > 1. 32GB usb stick, no gpt or mbr parts > 2. disklabel -E sd1 > 3. added partition a of type RAID > 4. bioctl -c C -l /dev/sd1a softraid0 -> sd2 appears > 5. disklabel -E sd2 > 6. newfs sd2a > 7. bioctl -d sd2 > > Now, I modified sd1a partition by growing it. > When I attach the volume using bioctl, it mounts, > but disklabel -v sd2 shows the same number of sectors and > and I'm unable to grow the decrypted partition sd2a to fill sd1a. > > Is this workflow supported? I'd be thankful for any advice.
You can have a look at https://github.com/cjeker/growsoftraid it should allow you to update the softraid metadata to grow the size to the one of the RAID partition. It worked for me but make sure you have a backup ready in case something goes wrong. -- :wq Claudio

