From owner-freebsd-current@FreeBSD.ORG Mon Oct 29 18:34:36 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9E5716A469 for ; Mon, 29 Oct 2007 18:34:36 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 3E52413C491 for ; Mon, 29 Oct 2007 18:34:29 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 82E2145EA7; Mon, 29 Oct 2007 07:39:00 +0100 (CET) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 4042A456AB; Mon, 29 Oct 2007 07:38:54 +0100 (CET) Date: Mon, 29 Oct 2007 08:38:50 +0100 From: Pawel Jakub Dawidek To: Peter Losher Message-ID: <20071029073850.GB2176@garage.freebsd.pl> References: <47246FED.6000103@isc.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <47246FED.6000103@isc.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-current@FreeBSD.ORG Subject: Re: Clearing out vdevs (can't create new zpool) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 18:34:36 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 28, 2007 at 04:18:05AM -0700, Peter Losher wrote: > I have been poking around with our 16-port SATA RAID chassis (in JBOD > mode) with a fresh RELENG_7 internal build from Saturday. I only had > half the disks {da0-7) at first, when I brought over the second set > (da8-15), I destroyed the existing pool and then tried to create a new > one with all 16 disks, and encountered this error: >=20 > -=3D- > # zpool create tank raidz da{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} > cannot create 'tank': one or more vdevs refer to the same device > -=3D- The only time I saw such an error is when I accidentally gave the same disk name twice, eg.: # zpool create tank da0 da1 da0 I don't see you doing the same mistake, so something else has to be wrong. > I can create one with the second set of disks (and destroy/create again) > but somehow I have some old vdevs sitting around which is preventing me > from using the first set of disks. How can I clear them out? Can you show me the output of: # zpool status # zpool import # sysctl -b kern.geom.confxml If no pool is imported currently, you should be able to create your pool. If one of the disks is in use already (by something else than ZFS), the error message should be different... --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHJY4KForvXbEpPzQRAvzzAJ4hHoyOc17laMH1GC6shlKtES5tDwCgqW5J lstPyerL3gtaWCK1o6asjvE= =OArN -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--