On 2020-06-02 19:27, Chris Narkiewicz wrote:
> My setup consist of OpenBSD 6.7 with full drive encryption using
> softraid, configured as described in FAQ:
>
> /dev/sd0a - encrypted volume
> /dev/sd1 - decrypted
>
> I have additional need to mount an encrypted /var volume on boot.
> This volume is separate drive attached to be VPS "machine".
>
> I want to mount this drive automatically on boot by adding
> relevant entries to /etc/fstab, but before this can be done,
> softraid device must be configured using bioctl.
I don't think there is a good answer to your question *as asked*,
so we just have to come up with a new question and solve your
problem. :)
I am GUESSING your real problem is "I didn't make /var big enough"
You can add a second disk. And you did.
I would look closely at what partitions you have on /dev/sd1c.
Got a /home? Move that to your second drive, move the /var to your
old /home.
Or..what is the real problem with /var? Maybe /var/www? Move
THAT to your second drive, leave /var (which is kinda important on
boot for a lot of reasons!) on sd1. But in general, work out a
way to keep /var on your primary boot drive, and put something
that isn't needed in the first moments of boot on the secondary
drive. Some other ideas that could be moved:
/usr/local
/usr/src
/usr/bin
/usr/ports
/home
Most of those would provide a good basic /var
If you over-built some other partition, copy the data off, make it
smaller, reload, and use the freed space for a /var.
Nick.
No comments:
Post a Comment