From owner-freebsd-questions@FreeBSD.ORG Wed Sep 8 02:42:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4055C10656D0 for ; Wed, 8 Sep 2010 02:42:01 +0000 (UTC) (envelope-from redlamb@redlamb.net) Received: from ironhide.redlamb.net (ironhide.redlamb.net [216.17.90.180]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1098FC17 for ; Wed, 8 Sep 2010 02:42:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ironhide.redlamb.net (Postfix) with ESMTP id 59078396C3 for ; Tue, 7 Sep 2010 21:25:02 -0500 (CDT) Received: from ironhide.redlamb.net ([127.0.0.1]) by localhost (ironhide.redlamb.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01620-06 for ; Tue, 7 Sep 2010 21:25:01 -0500 (CDT) Received: by ironhide.redlamb.net (Postfix, from userid 80) id B921937C17; Tue, 7 Sep 2010 21:25:01 -0500 (CDT) Received: from c-66-41-185-162.hsd1.mn.comcast.net (c-66-41-185-162.hsd1.mn.comcast.net [66.41.185.162]) by imp.redlamb.net (Horde MIME library) with HTTP; Tue, 7 Sep 2010 21:25:01 -0500 Message-ID: <20100907212501.gt31sgaog0w4g4ko@imp.redlamb.net> Date: Tue, 7 Sep 2010 21:25:01 -0500 From: Pete Erickson To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.2) Subject: Exporting ZFS Pool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2010 02:42:01 -0000 I'm relatively new to ZFS and have been playing around with different =20 file-backed set ups to determine how I will eventually configure my =20 pools. I've recently come across a problem with exporting a pool, but =20 I'm not sure if it's a bug or just my poor understanding of ZFS. I =20 create a simple pool using 2 128MB files. After exporting the pool, I =20 am unable to import it and the pool is not found by the zpool command. =20 Any advise would be appreciated. I'm currently running 8.1 STABLE. ratchet# dd if=3D/dev/zero of=3D/disk1.dd bs=3D1m count=3D128 128+0 records in 128+0 records out 134217728 bytes transferred in 2.852547 secs (47051891 bytes/sec) ratchet# dd if=3D/dev/zero of=3Ddisk2.dd bs=3D1m count=3D128 128+0 records in 128+0 records out 134217728 bytes transferred in 2.740976 secs (48967128 bytes/sec) ratchet# zpool create pool /usr/tmp/disk1.dd /usr/tmp/disk2.dd ratchet# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT pool 246M 75K 246M 0% ONLINE - ratchet# zpool status pool: pool state: ONLINE scrub: none requested config: =09NAME STATE READ WRITE CKSUM =09pool ONLINE 0 0 0 =09 /usr/tmp/disk1.dd ONLINE 0 0 0 =09 /usr/tmp/disk2.dd ONLINE 0 0 0 errors: No known data errors ratchet# zpool export pool ratchet# zpool import -d . If I then attempt to recreate the pool, I get an error indicating that =20 one of the files is a part of an exported pool. ratchet# zpool create z /usr/tmp/disk1.dd /usr/tmp/disk2.dd invalid vdev specification use '-f' to override the following errors: /usr/tmp/disk1.dd is part of exported pool 'pool' --=20 Pete Erickson redlamb _at_ redlamb _dot_ net