From owner-freebsd-stable@FreeBSD.ORG Mon Jul 19 15:45:46 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D123A106566B for ; Mon, 19 Jul 2010 15:45:46 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 981DA8FC19 for ; Mon, 19 Jul 2010 15:45:46 +0000 (UTC) Received: by iwn35 with SMTP id 35so5935591iwn.13 for ; Mon, 19 Jul 2010 08:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Dda8gqqlv8RBwJMo1k4EtO51WTUT1e1HHhBzO8kAmFk=; b=ikB2UkVsrmUSFzZZo2QUBR5UYZHLhTN0csDp+xzfuJRqbo4fi/v+FP2/Faya0npfL+ gUDxODny2iNGoMa24OiRfR3bmxfh40cyFHjhBH8d/uLha58Pe+5IXCHexwDvGMrSITmX JKzpteOUtoN3PwiOqJvUSClEbMo1vy7UmV1NE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=l6gKQ0vdjY569WkWwErxC4AWIbjTAMdxxgrlL0VMbo7TPV687Ia0SLEcaMU7bw5J2s MYsFzQ3HSu63fp//tCez8+KhPuJ6gSAepe6LgrFnNyYds0iKUoSH5wPSuFY3aoUEE9HN 1fyreU3jxlyB4yRHl5niixQ9nza48ClvKxx04= MIME-Version: 1.0 Received: by 10.42.1.130 with SMTP id 2mr327907icg.21.1279554345861; Mon, 19 Jul 2010 08:45:45 -0700 (PDT) Received: by 10.231.161.208 with HTTP; Mon, 19 Jul 2010 08:45:45 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 Jul 2010 08:45:45 -0700 Message-ID: From: Freddie Cash To: freebsd-stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Problems replacing failing drive in ZFS pool X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 15:45:46 -0000 On Mon, Jul 19, 2010 at 8:21 AM, Garrett Moore wro= te: > I have an 8-drive ZFS array consisting of WD15EADS drives. One of my disk= s > has started to fail, so I got a replacement disk. I have replaced a disk > before by: > > =C2=A0zpool offline tank /dev/da5 > shutting down, swapping from old disk to new disk > booting > =C2=A0zpool replace tank /dev/da5 > > This worked fine. > > This time the failing disk was da3, and I tried the same thing: > =C2=A0zpool offline tank /dev/da3 > zpool status showed da3 offline. > shut down, swapped old disk to new disk. For some reason, ZFS is getting confused by the device names, possibly due to the controller renumbering device nodes? Try the following: zpool offline tank /dev/da3 zpool status tank to make sure it offlined the correct drive zpool export tank might have to do this from single-user mode reboot zpool import tank this forces ZFS to re-taste each drive to read the metadata zpool replace tank /dev/da3 this should force it to use the correct drive Note: if you have / on ZFS, the above may not be doable. --=20 Freddie Cash fjwcash@gmail.com