From owner-freebsd-geom@FreeBSD.ORG Fri Mar 2 03:25:26 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72317106564A for ; Fri, 2 Mar 2012 03:25:26 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id E836E8FC14 for ; Fri, 2 Mar 2012 03:25:25 +0000 (UTC) Received: by lagv3 with SMTP id v3so2127062lag.13 for ; Thu, 01 Mar 2012 19:25:24 -0800 (PST) Received-SPF: pass (google.com: domain of rsimmons0@gmail.com designates 10.112.100.169 as permitted sender) client-ip=10.112.100.169; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rsimmons0@gmail.com designates 10.112.100.169 as permitted sender) smtp.mail=rsimmons0@gmail.com; dkim=pass header.i=rsimmons0@gmail.com Received: from mr.google.com ([10.112.100.169]) by 10.112.100.169 with SMTP id ez9mr3354710lbb.82.1330658724957 (num_hops = 1); Thu, 01 Mar 2012 19:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=JeT4/nURO19fmVsqXTXjlIdMtlvPEfs0nxl9LBcO6JA=; b=Pr+G4nnbCekh55TeOjfeZB1Qx5A+x/L7u2TXRptLLKI+aKv6H+pPhhdFil7/0AZKr1 yq61+4RWI/tN9M6KyysXI/awYC/lKRyrolwLltnB132NuUVLYnnC36A9Pp2TXCmfJwPv vYfgmxONq1VwxoUti+ciw3XDVFWiAy4Xk7V10q8Dd6g2ElQNpMZ6B4ty871t6qYwLKR0 T7pZyLrYYHBeen91C1TkS1YXjsrVfUGPUWerZiL0F6RcNjdvenaQU8syrVZ2rM2lAcU0 M+TmDHBXgN/PQZJfGa/rtCAb7/q0m53uLKJ+8mkv9FRvzYwn/XIIPZBejrl4WiznpEPu eSLQ== MIME-Version: 1.0 Received: by 10.112.100.169 with SMTP id ez9mr2718059lbb.82.1330657217300; Thu, 01 Mar 2012 19:00:17 -0800 (PST) Received: by 10.112.145.73 with HTTP; Thu, 1 Mar 2012 19:00:17 -0800 (PST) Date: Thu, 1 Mar 2012 22:00:17 -0500 Message-ID: From: Robert Simmons To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: geli init for first time X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 03:25:26 -0000 After you perform "geli init" and "geli attach" you must use dd to initialize the new provider before you run newfs. If you had enabled authentication of some kind during the init step, when you attach the provider you get a series of errors such as these: GEOM_ELI: ada0p4.eli: 4096 bytes corrupted at offset 0. GEOM_ELI: ada0p4.eli: 4096 bytes corrupted at offset 4096. and lots more errors exactly like this. These are produced because the checksums have not been initialized yet. In the manpage of geli it states "It is recommended to write the whole provider before the first use, in order to make sure that all sectors and their corresponding checksums are properly initialized into a consistent state." These errors are no problem at all, but they look scary when you first encounter them and you don't realize why they are being produced. I propose that a switch be added to "geli attach" that signifies that it is the first time that a provider is being attached and these errors are to be suppressed. An alternative is to add something to the end of the DATA AUTHENTICATION section of the geli(8) man page that mentions why these errors occur and that they can be safely ignored. Thoughts?