Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 2004 08:45:42 -0400
From:      Allan Fields <bsd@afields.ca>
To:        =?us-ascii?B?PT9pc28tODg1OS0xP1E/?= Stefan=20Krau=DF ?= <ilsa.gold@web.de>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Another problem with not re-attachable gbde slice
Message-ID:  <20040921124542.GE47410@afields.ca>
In-Reply-To: <1293070566@web.de>
References:  <1293070566@web.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 21, 2004 at 09:08:37AM +0200, =?iso-8859-1?Q? Stefan=20Krau=DF ?= wrote:
> Hello list,
> 
> I wrote a few weeks ago about a problem with reattaching a gbde
> encrypted slice under FreeBSD 5.2.1. The slice worked for about 3
> month without any problem (could be attached, detached and so on).
> After writing lots of data to this attached slice (about 9-10 Gig)
> the slice couldn't be attached any more. There appeared no
> /dev/ad0s3a.bde-device file after an "gbde attach /dev/ad0s3a -l
> /etc/gbde/ad0s3a".

I observed similar and was able to reproduce this behaviour as
you/others have encountered with a test volume: usually it took
a while to fill up the filesystem enough.

> I upgraded to RELENG_5 last sunday hoping that this maybe solve
> my problem, but it didn't. So I tried the follwing command to change
> my key (just to check if the access to my key is borken) and got
> an error:
>
> # gbde setkey /dev/ad0s3a -l /etc/gbde/ad0s3a
> Enter passphrase: <I entered the 100% correct passphrase here>
> gbde: Lock not found

That is because it would attempt to find a now non-existent and
likely moved-in-location lock sector.

> Did I something wrong or is the gbde-slice finally unusable (I
> read a few maillings in this list that there were some bugs regarding
> the reattaching of gbde-slices)?

Afraid not.  I take it your existing device couldn't be reattached
with the newest patch applied:

This isn't unexpected given the most likely cause of your problem
was that the lock sector had been overwritten, if you only had one
key, then that option has been exhausted.

> Best regards
> Stefan

Thanks for your and others' reports..

-- 
 Allan Fields, AFRSL - http://afields.ca
 2D4F 6806 D307 0889 6125  C31D F745 0D72 39B4 5541



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040921124542.GE47410>