Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2008 14:49:19 -0400
From:      Vinny <vinny-mail-01+f.questions20080919@palaceofretention.ca>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: geli authentication algo and newfs weirdness
Message-ID:  <48D545AF.1060305@palaceofretention.ca>
In-Reply-To: <20080920083146.U8658@wojtek.tensor.gdynia.pl>
References:  <48D45F98.6030504@palaceofretention.ca> <20080920083146.U8658@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Wojciech Puchar wrote:
>> the/root{156}~# geli init -a hmac/sha256 /dev/da1
>> Enter new passphrase:
>> Reenter new passphrase:
>> the/root{157}~#
>> the/root{157}~# geli attach da1
>> Enter passphrase:
> 
> check what is default (and possibly minimum) sector size for hmac/sha256
> 
> fragment size of UFS can't be less
> _______________________________________________

 From the geli dump output I supplied, it looks like the
sector size is 512.

the/root{110}~# geli dump -v da1
Metadata on da1:
[...]
      aalgo: HMAC/SHA256
   provsize: 160041885696
sectorsize: 512

newfs is using a fragment size of 2048, it also only sees
half of the disk--76G instead of 152G

the/root{163}~# newfs  /dev/da1.eli
/dev/da1.eli: 76313.9MB (156290900 sectors) block size 16384, fragment 
size 2048
         using 416 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
newfs: can't read old UFS1 superblock: read error from block device: 
Invalid argument

Any other ideas?  Without the authentication, geli
provider sector size is 4096.

Should I specify a fragment size of 512 with newfs -f 512?

Thanks for your help.
Vinny



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