From owner-freebsd-geom@FreeBSD.ORG Wed Oct 13 01:49:58 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B32471065673 for ; Wed, 13 Oct 2010 01:49:58 +0000 (UTC) (envelope-from jaccen@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 72B198FC0A for ; Wed, 13 Oct 2010 01:49:58 +0000 (UTC) Received: by gxk4 with SMTP id 4so884579gxk.13 for ; Tue, 12 Oct 2010 18:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=K5ua7GU0Who+gz5mMXkRrRbg0MGniTBWL2NuWc2mjPQ=; b=q0rhVGOPWQemYQkOpLG5WkKsqKTkDr4+3medbXl4+8NQLHHR7gG0epSsRBxbqy3dlC bP8N27P5iG5++ar8o8FqHqzNeJGgmggvGCPmpywD0QI9Z6E9D8C+QlpVusbthSG5zZRU g8vF/8+WblsVQWfuODt3ePxoTf8moPh/bDEu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fHUajclF5hlrUWgpG8r7zDAZ8vFhwNWFDDwjU9HMLm6Zz31XWqYkRZ3c6Zce3nDdHP ygq058D7rF1acAY6+hrGfyjNk6ICUj7PlsE7L2KwVEBbHDP2B3+Y7mQAQIlxDcDuKOzM ljtrsjDt8tSjXODqIuK/0vd13EF+bh8fFjiKk= MIME-Version: 1.0 Received: by 10.151.7.12 with SMTP id k12mr17889ybi.367.1286932726488; Tue, 12 Oct 2010 18:18:46 -0700 (PDT) Received: by 10.151.84.3 with HTTP; Tue, 12 Oct 2010 18:18:46 -0700 (PDT) Date: Tue, 12 Oct 2010 21:18:46 -0400 Message-ID: From: Jaccen Steinberg To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ZFS, RAIDZ, and Labels 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: Wed, 13 Oct 2010 01:49:58 -0000 Environment: PC-BSD 8.1 - RELEASE amd64 root Problem Description: When attempting to create a ZFS RAIDZ pool, I get the following message: [CODE] cannot create 'tank': one or more devices is currently unavailable [/CODE] Command used to make this occur: [CODE] zpool create tank raidz label/P1SG136D.eli label/P2SGY10S.eli label/P3SG3ERV.eli label/P4SGC4QY.eli label/P5SGYJSC.eli label/P6SG49JV.eli label/P7SG9H9H.eli label/P8SGDF8G.eli [/CODE] System: Asus M3N WS Athlon II X2 240 8gb Kingston DDR2 ECC 8 X 1.5tb Seagate SATA drives 60gb IDE drive HighPoint RocketRAID 2220 PCI-X PCI RivaTNT Background Reading as to how I arrived here: 1. [url=http://blog.experimentalworks.net/2008/03/setting-up-an-encrypted-zfs-with-freebsd/]Setting up an encrypted ZFS with FreeBSD[/url] 2. [url=http://lists.freebsd.org/pipermail/freebsd-questions/2010-January/211109.html]GELI file systems unusable after "glabel label" operations[/url] 3. [url=http://www.freebsd.org/cgi/man.cgi?query=geli]geli Manpage[/url] 4. [url=http://forums.freebsd.org/showthread.php?t=17129] [Solved] zpool create drives fails [/url] 5. [url=http://forums.freebsd.org/showthread.php?t=16587]ZFS Unavailable[/url] Overview of What I've Done: Reading #1 was used as a rough guideline to make a ZFS pool with geli encryption. I used Reading #4 & #5 to label my drives. I believe one should be able to create an encrypted ZFS pool using labels due to Reading #2. The commands from Reading #1 were slightly modified with help from Reading #3. Code: [CODE] glabel label -v P1SG136D /dev/da0 glabel label -v P2SGY10S /dev/da1 ... [/CODE] This labels each drive attached to my HighPoint controller with the Port # it is attached to, the company brand, and part of the serial number so that I can easily identify which drive has a problem in the future. [CODE] dd if=/dev/random of=/usr/home/THEJEW/P1SG136D.key bs=64 count=1 dd if=/dev/random of=/usr/home/THEJEW/P2SGY10S.key bs=64 count=1 ... [/CODE] Encryption keys are created and placed within my home folder. Home directory is also encrypted, but passphrase is entered at boot (ie. keys are available). [CODE] geli init -a HMAC/SHA256 -e AES -l 256 -s 4096 -K /usr/home/THEJEW/P1SG136D.key /dev/label/P1SG136D geli init -a HMAC/SHA256 -e AES -l 256 -s 4096 -K /usr/home/THEJEW/P2SGY10S.key /dev/label/P2SGY10S ... [/CODE] Preparing to attach key to label to create *.eli in "label" folder. *.eli files do appear in Dolphin. [CODE] geli attach -k /usr/home/THEJEW/P1SG136D.key /dev/label/P1SG136D geli attach -k /usr/home/THEJEW/P2SGY10S.key /dev/label/P2SGY10S ... [/CODE] Attaching. Attempting to create zpool fails (see code in Problem section). Everything attempted as root. Any help appreciated.