From owner-freebsd-fs@FreeBSD.ORG Mon Mar 1 05:24:46 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40FD7106566B; Mon, 1 Mar 2010 05:24:46 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 706298FC1D; Mon, 1 Mar 2010 05:24:45 +0000 (UTC) Received: by fxm23 with SMTP id 23so320556fxm.3 for ; Sun, 28 Feb 2010 21:24:35 -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=MUtVXr/4sPD/BOFV/lUJSDL6Vw4mW58RxgAw6ns8yCA=; b=wQ/YBDHXZjueud9GzmfBPzC9L1C7ubOCqPCUfhIXFqU+V2JRRHmmM3BRjQtuJtgZfO SRtBy485bT9WvW+x2Rf9zcH23AOCuCYELPe9Xa3mVNyfYxd8SUaGniDh3f9dQouVNceU 6Q5oE6IVTMmT62fcbtmMWfHa6NuhUhs5b0xfQ= 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=oQIgfojMumU1/WN4FFYg7Rk7fWnW6on4aCRek8sEW320BCI7v575mO0LX5YsoOtpFp umHmmCH2SKyWEosePTVVXmbxPshhPPdP9vusN2kOhGcFOMY5tpnaCwTxpwTX/4lJ7hxy i0lRCfNZp8zY04P5N8vvu5dR6BfAbwk4s03jI= Received: by 10.223.36.92 with SMTP id s28mr4410813fad.28.1267421075677; Sun, 28 Feb 2010 21:24:35 -0800 (PST) Received: from mbp-gige.totalterror.net (93-152-151-19.ddns.onlinedirect.bg [93.152.151.19]) by mx.google.com with ESMTPS id 18sm4669095fks.5.2010.02.28.21.24.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Feb 2010 21:24:34 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Nikolay Denev In-Reply-To: <20100227204715.GC2586@garage.freebsd.pl> Date: Mon, 1 Mar 2010 07:24:31 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <26CCAE99-B056-4754-9324-2945D1643C78@gmail.com> <272C3933-72C9-41AF-AD3A-605A7C57FB61@gmail.com> <20100227204715.GC2586@garage.freebsd.pl> To: Pawel Jakub Dawidek X-Mailer: Apple Mail (2.1077) Cc: freebsd-fs@freebsd.org Subject: Re: should zfs care so much about device name changes X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 05:24:46 -0000 On 27 Feb, 2010, at 22:47 , Pawel Jakub Dawidek wrote: > On Wed, Feb 24, 2010 at 03:58:58PM +0200, Nikolay Denev wrote: >>=20 >> On Feb 24, 2010, at 11:53 AM, Nikolay Denev wrote: >>=20 >>> Hello, >>>=20 >>> I wanted to test the new option ATA_CAM, but that would require a = boot from another media (USB Drive/CD) and a zpool export/import >>> to update the vdev names. (actually it's shown as "path" in the = zpool.cache file) because otherwise the system would refuse to = open/mount >>> the pool. >>> But is that really necessary given the fact that all the devices are = here, and have matching GUIDS to those in the zpool.cache file? >>> Shouldnt ZFS just import the pool?=20 >>>=20 >>> In the current state what would one have to do to for example test = ATA_CAM on a remote machine, where export/import from a rescue >>> media is not possible? >>>=20 >>> Thanks, >>> Niki >>=20 >>=20 >> I have now looked at = sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c and it seems = that when a vdev isn't found by pathname it >> is being searched by guid. But it doesn't seem to be the case here. = The loader sees the pool and boots the kernel, but then the kernel does = not see >> the pool. Any ideas? >=20 > Try adding vfs.zfs.debug=3D1 to /boot/loader.conf. This will hopefully > show what's going on. >=20 > --=20 > Pawel Jakub Dawidek http://www.wheel.pl > pjd@FreeBSD.org http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! Sorry for the noise, it seems like it's not zfs's fault, the machine = just doesn't see any disks because I added ATA_CAM but missed atacore and atapci. I had to capture the boot screen with my camera because my USB keyboard = does not work on rootfs mount prompt and I was not able scroll up to see what's = the cause, but that's another problem that deserves another thread not in -fs. Thanks, Niki