From owner-freebsd-questions@FreeBSD.ORG Sat Sep 20 18:50:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85E6A1065682 for ; Sat, 20 Sep 2008 18:50:09 +0000 (UTC) (envelope-from vinny-mail-01+f.questions20080919@palaceofretention.ca) Received: from www.giovannetti.ca (www.giovannetti.ca [206.248.136.48]) by mx1.freebsd.org (Postfix) with ESMTP id 4DBD68FC1A for ; Sat, 20 Sep 2008 18:50:09 +0000 (UTC) (envelope-from vinny-mail-01+f.questions20080919@palaceofretention.ca) Received: from the.palaceofretention.ca (intgateway.palaceofretention.ca [10.10.10.42]) by www.giovannetti.ca (Postfix) with ESMTP id DA24E1143A for ; Sat, 20 Sep 2008 14:53:28 -0400 (EDT) Message-ID: <48D545AF.1060305@palaceofretention.ca> Date: Sat, 20 Sep 2008 14:49:19 -0400 From: Vinny User-Agent: Thunderbird 2.0.0.14 (X11/20080513) MIME-Version: 1.0 To: User Questions References: <48D45F98.6030504@palaceofretention.ca> <20080920083146.U8658@wojtek.tensor.gdynia.pl> In-Reply-To: <20080920083146.U8658@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: geli authentication algo and newfs weirdness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2008 18:50:09 -0000 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