GELI created on a GPT labelled partition doesn't work 2nd time around...
Karl Pielorz
kpielorz_lst at tdx.co.uk
Tue Sep 30 21:20:16 UTC 2014
--On 30 September 2014 06:54:45 -0700 John-Mark Gurney <jmg at funkthat.com>
wrote:
> gpt doesn't let you do gpt in gpt.. which explains why you can't
> create the second level of gpt...
>
> Why do you want/need to partition again? You could possibly use bsd
> as the second layer...
Ok, if GPT in GPT isn't supported - I can live with that. Annoyingly - the
setup did work *once* when I first did it - but didn't subsequently...
I've kind of worked around the problem now by using shell script to do the
GELI attach - which gets a list of all drives on the system - then ties
them by serial number (fetched from the drive) to their keys.
I needed to do this as the drives can 'move' (so da6 this boot, may not be
da6 next boot). This also happens when new drives are added to the
controller (others may get 'shuffled' aside next boot). Using GPT let me
abstract that away (by giving each drive a GPT labeled partition the same
as it's serial number, which is written on the caddy). I've already tried
wiring the bays down - but you can't with this controller :(
The attach-2-serial-number workaround works for now - and at least I know
why GPT doesn't work (reliably/at all now!) when nested.
-Karl
More information about the freebsd-geom
mailing list