From owner-freebsd-stable@FreeBSD.ORG Thu Nov 26 13:29:52 2009 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 65CB1106566B; Thu, 26 Nov 2009 13:29:52 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id C50028FC14; Thu, 26 Nov 2009 13:29:51 +0000 (UTC) Received: by fxm10 with SMTP id 10so629683fxm.14 for ; Thu, 26 Nov 2009 05:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=K4wCeOiLeppQjKM03+++rdbLHWjTfNaSUsVW21mTYuM=; b=dfTJQdf8wz+uwJZEKjBrGYiC4KKLkT/mjDkY1nQElOU5FeXOqVSjr9AlMdu51OCQXV bQz39aLovavAxpAYFLhr8c4xZ6GleWEs4msI34jXhtJWEiTgBgvNymnxZbgcaidjV9R7 /WLHR3Dw15fMNM+ISkyYeycHHvPUG74c5E+9w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=IhZoWrKq16xBUNJEjOFNJfJBZvEqOZ3xHC9I1xGkgnXyD56shQb20DkDd1XQSk00Uu N+I3fgiFiIGtpdMo6vmK8Exn5L6WJZo+jy3/EUo1tOzmxWbTfUj5y6RYgugaF6QR/oR4 n9Bag/HuR02toIQVi8wAAQ9itftXWzgwqVIfA= Received: by 10.102.249.18 with SMTP id w18mr876451muh.51.1259240865393; Thu, 26 Nov 2009 05:07:45 -0800 (PST) Received: from ndenev.cmotd.com ([195.34.111.178]) by mx.google.com with ESMTPS id 12sm1684965muq.8.2009.11.26.05.07.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Nov 2009 05:07:44 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Nikolay Denev In-Reply-To: Date: Thu, 26 Nov 2009 15:07:40 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <27DF657E-A14A-4B6F-ABE5-877B018FEE42@gmail.com> References: <4B0E3ABA.3030606@tzim.net> <790a9fff0911260040i1456d7c0j4f8327d24d2966cf@mail.gmail.com> <20091126085034.GA51998@icarus.home.lan> To: Ivan Voras X-Mailer: Apple Mail (2.1077) Cc: freebsd-stable@freebsd.org Subject: Re: Can't use gpt labels re-importing 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: Thu, 26 Nov 2009 13:29:52 -0000 On Nov 26, 2009, at 1:56 PM, Ivan Voras wrote: > Jeremy Chadwick wrote: >=20 >> Why are people bothering with GPT labels (or in some cases, glabels) >> when AHCI (whether it be ataahci.ko or ahci.ko) is in use? Under = what >> circumstance would the device name change dynamically in this = situation? >> I've never witnessed this happening with AHCI, at least on Intel >> systems, and I've hot-swapped hard disks many times over. >=20 > It isn't specific to AHCI, but this is where most people encountered = it first. The issue in question is "how to make ZFS survive drive = renaming" for any cause - driver change, controller change, drive = shuffling, etc. >=20 > In general, ZFS will taste individual drives on "zpool import" so will = try to do the right thing, but it might pick up different labels for = different drives, etc. Using glabel tricks simply makes the naming a bit = more consistent. >=20 >=20 What about "zpool import -d /dev/gpt/" ? Though last time I tried this it refused to work for some reason.=20 Regards, Niki Denev