ZFS, RAIDZ, and Labels

Greg Bonett greg at bonett.org
Wed Oct 13 04:03:37 UTC 2010


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 <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.
> _______________________________________________
> freebsd-geom at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-geom
> To unsubscribe, send any mail to "freebsd-geom-unsubscribe at freebsd.org"




More information about the freebsd-geom mailing list