From owner-freebsd-geom@FreeBSD.ORG Wed Oct 13 04:03:37 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 499BA1065672 for ; Wed, 13 Oct 2010 04:03:37 +0000 (UTC) (envelope-from greg@bonett.org) Received: from bonett.org (bonett.org [66.249.7.150]) by mx1.freebsd.org (Postfix) with ESMTP id 12FDE8FC0C for ; Wed, 13 Oct 2010 04:03:36 +0000 (UTC) Received: from [149.142.124.15] (unknown [149.142.124.15]) by bonett.org (Postfix) with ESMTPSA id E3DEB12408E; Wed, 13 Oct 2010 03:44:13 +0000 (UTC) From: Greg Bonett To: Jaccen Steinberg In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Oct 2010 20:44:12 -0700 Message-ID: <1286941452.8720.32.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: 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 04:03:37 -0000 very strange, I think I followed a nearly identical process to set up my zpool on FreeBSD 8-STABLE. Can you try replacing "raidz" with "raidz1"? also, did you verify that everything is present with "ls -l /dev/label/" Maybe try with two or three devices first and see if you get the same problem... -Greg On Tue, 2010-10-12 at 21:18 -0400, Jaccen Steinberg wrote: > 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. > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org"