Date: Tue, 12 Oct 2010 21:18:46 -0400 From: Jaccen Steinberg <jaccen@gmail.com> To: freebsd-geom@freebsd.org Subject: ZFS, RAIDZ, and Labels Message-ID: <AANLkTikUo87m%2BSghCBnnNdwDT%2BXqZourTcXkvA8mjQ_P@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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 <pool> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikUo87m%2BSghCBnnNdwDT%2BXqZourTcXkvA8mjQ_P>