Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2007 08:38:50 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Peter Losher <Peter_Losher@isc.org>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Clearing out vdevs (can't create new zpool)
Message-ID:  <20071029073850.GB2176@garage.freebsd.pl>
In-Reply-To: <47246FED.6000103@isc.org>
References:  <47246FED.6000103@isc.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071029073850.GB2176>