From owner-freebsd-stable@FreeBSD.ORG Tue Feb 9 20:27:22 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 DD8FC106566B for ; Tue, 9 Feb 2010 20:27:22 +0000 (UTC) (envelope-from efinley.lists@gmail.com) Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.223.172]) by mx1.freebsd.org (Postfix) with ESMTP id A1B708FC1D for ; Tue, 9 Feb 2010 20:27:22 +0000 (UTC) Received: by iwn2 with SMTP id 2so291849iwn.8 for ; Tue, 09 Feb 2010 12:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=9QsxC9d6H9SI4TflY235l9E8BSz/IwhDkqeC5Ok0qAo=; b=J97kA8nR2CFYxGfWjjgIUaXOv9icB/WfelRM1cTcUL3s8CsKDB7N9HSWjMsOsLCqRV k0ZQnI+Q+Plfsb+lmGC5oRS17uKygJiIIELHD+lECFBZYc+hMyXlvkyZJG1zCB3UH3lW 7NSBtEGCJd2xwZtZaUIJDpj4SUNKyilS5R8PM= 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 :cc:content-type; b=jnbScgc1atyojqswh8kETQlsaIfoZ4i/T5V+9d1CZCFPZGhqrFSJiS6UDS0OZQTs4L 1IMKGSgKYi4cBem1mHtY0NeRoyHa+SXNB33Sx5dhaaYU9nSaYD5vbzBuuCN8k/1Gr2CY ZfjOQksrzIO9q1ufUynWv5+2oUpQ4okSamrKc= MIME-Version: 1.0 Received: by 10.143.24.18 with SMTP id b18mr1412438wfj.16.1265747241394; Tue, 09 Feb 2010 12:27:21 -0800 (PST) In-Reply-To: <20100209150606.ddba52dc.gerrit@pmp.uni-hannover.de> References: <20100209150606.ddba52dc.gerrit@pmp.uni-hannover.de> Date: Tue, 9 Feb 2010 13:27:21 -0700 Message-ID: <54e63c321002091227w15657c54oeb2295efc4c43980@mail.gmail.com> From: Elliot Finley To: =?ISO-8859-1?Q?Gerrit_K=FChn?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: zpool vdev vs. glabel 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: Tue, 09 Feb 2010 20:27:22 -0000 I ran into this same problem. you need to clean the beginning and end of your disk off before glabeling and adding it to your pool. clean with dd if=3D/dev/zero... 2010/2/9 Gerrit K=FChn > Hi, > > I have created a raidz2 with disk I labeled with glabel before. Right > after creation this pool looked fine, using devices label/tank[1-6]. > > I did some tests with replacing/swapping disks and so on. After doing a > > zpool offline tank label/tank6 > remove disk > camcontrol rescan all > insert disk > camcontrol rescan all > zpool online tank label/tank6 > > I got the disk back, but not under the requested label, but under the da > device name: > > pool: tank > state: ONLINE > scrub: resilver completed after 0h0m with 0 errors on Tue Feb 9 14:56:3= 7 > 2010 config: > > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > raidz2 ONLINE 0 0 0 > label/tank1 ONLINE 0 0 0 8.50K resilvered > label/tank2 ONLINE 0 0 0 7.50K resilvered > label/tank3 ONLINE 0 0 0 8.50K resilvered > label/tank4 ONLINE 0 0 0 7.50K resilvered > label/tank5 ONLINE 0 0 0 9K resilvered > da6 ONLINE 0 0 0 13.5K resilvered > > errors: No known data errors > > > > Why does this happen? Is there any way to get zfs to use the label again? > After the device is in use, the label in /dev/label disappears. When > taking the device offline again, the label is there, but cannot be used: > > pigpen# zpool offline tank da6 > pigpen# zpool status > pool: system > state: ONLINE > status: One or more devices has experienced an unrecoverable error. An > attempt was made to correct the error. Applications are > unaffected. action: Determine if the device needs to be replaced, and > clear the errors using 'zpool clear' or replace the device with 'zpool > replace'. see: http://www.sun.com/msg/ZFS-8000-9P > scrub: resilver completed after 0h0m with 0 errors on Tue Feb 9 14:49:1= 4 > 2010 config: > > NAME STATE READ WRITE CKSUM > system ONLINE 0 0 0 > mirror ONLINE 0 0 0 > label/system1 ONLINE 3 617 0 126K resilvered > label/system2 ONLINE 0 0 0 41K resilvered > > errors: No known data errors > > pool: tank > state: DEGRADED > status: One or more devices has experienced an unrecoverable error. An > attempt was made to correct the error. Applications are > unaffected. action: Determine if the device needs to be replaced, and > clear the errors using 'zpool clear' or replace the device with 'zpool > replace'. see: http://www.sun.com/msg/ZFS-8000-9P > scrub: resilver completed after 0h0m with 0 errors on Tue Feb 9 14:56:3= 7 > 2010 config: > > NAME STATE READ WRITE CKSUM > tank DEGRADED 0 0 0 > raidz2 DEGRADED 0 0 0 > label/tank1 ONLINE 0 0 0 8.50K resilvered > label/tank2 ONLINE 0 0 0 7.50K resilvered > label/tank3 ONLINE 0 0 0 8.50K resilvered > label/tank4 ONLINE 0 0 0 7.50K resilvered > label/tank5 ONLINE 0 0 0 9K resilvered > da6 OFFLINE 0 38 0 13.5K resilvered > > errors: No known data errors > pigpen# ll /dev/label/ > total 0 > crw-r----- 1 root operator 0, 104 Feb 9 14:04 lisacrypt1 > crw-r----- 1 root operator 0, 112 Feb 9 14:04 lisacrypt2 > crw-r----- 1 root operator 0, 113 Feb 9 14:04 lisacrypt3 > crw-r----- 1 root operator 0, 134 Feb 9 14:48 system1 > crw-r----- 1 root operator 0, 115 Feb 9 14:04 system2 > crw-r----- 1 root operator 0, 116 Feb 9 14:04 tank1 > crw-r----- 1 root operator 0, 117 Feb 9 14:04 tank2 > crw-r----- 1 root operator 0, 118 Feb 9 14:04 tank3 > crw-r----- 1 root operator 0, 101 Feb 9 14:04 tank4 > crw-r----- 1 root operator 0, 102 Feb 9 14:04 tank5 > crw-r----- 1 root operator 0, 103 Feb 9 15:02 tank6 > > pigpen# zpool online tank label/tank6 > cannot online label/tank6: no such device in pool > > In a different thread I found the hint to use zpool replace to get to the > usage of labels, but this seems not possible, either: > > pigpen# zpool replace tank label/tank6 > invalid vdev specification > use '-f' to override the following errors: > /dev/label/tank6 is part of active pool 'tank' > > pigpen# zpool replace -f tank label/tank6 > invalid vdev specification > the following errors must be manually repaired: > /dev/label/tank6 is part of active pool 'tank' > > pigpen# zpool replace -f tank da6 label/tank6 > invalid vdev specification > the following errors must be manually repaired: > /dev/label/tank6 is part of active pool 'tank' > > > I'm running out of ideas here... > > > > cu > Gerrit > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >