From owner-freebsd-fs@FreeBSD.ORG Fri Sep 10 08:50:33 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 CED3D106564A; Fri, 10 Sep 2010 08:50:33 +0000 (UTC) (envelope-from appdebgr@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6CE088FC2D; Fri, 10 Sep 2010 08:50:33 +0000 (UTC) Received: by qyk4 with SMTP id 4so2706056qyk.13 for ; Fri, 10 Sep 2010 01:50:32 -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:cc:content-type; bh=7AL0bVYCSfiR0wbegOxAGyAGB1dgIaSILhQ8PXJ8IbY=; b=PB1IRod56eg1aILVPgEXpxHKHYVhwAxgVVLfox9fNnI40OUIucOXsSUcweDpnn4CSU ZSO1mRvl52+cJgj16kYt+ejAoW221O/cB77vukLsunm523rh0Nw1T4JZ0LBZaHuPkmUa JFzu94knZZu7+cwsY1MkdqfJWk7NbnuwDfs58= 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=Z5r1dO+NZyc0U7FVmbD3lMW/vxFXkG6mNt8hm17W1nljK7SgCDgK9vW6gvqeI/v+/h 5rghKNPQ3ZZvoinqVz8K5i69dukbJfKJIhnsUXxWAZNRE5NRm2UyfQiLMSWXZmdusxWb poOSNiGO3ShSJCw80uBixmoYXSlM30sXYAFAc= MIME-Version: 1.0 Received: by 10.224.10.211 with SMTP id q19mr151429qaq.227.1284108632493; Fri, 10 Sep 2010 01:50:32 -0700 (PDT) Received: by 10.229.189.81 with HTTP; Fri, 10 Sep 2010 01:50:32 -0700 (PDT) In-Reply-To: <20100910073912.GC2007@garage.freebsd.pl> References: <20100910073912.GC2007@garage.freebsd.pl> Date: Fri, 10 Sep 2010 11:50:32 +0300 Message-ID: From: App Deb To: Pawel Jakub Dawidek Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: Swap on ZFS Volume still panics? 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: Fri, 10 Sep 2010 08:50:33 -0000 Yes sorry for actually calling it a panic, it is a deadlock, I didn't see any messages, anyway the system becomes unusable and needs a manual hard reboot. I found the mention (without any warnings) here: http://wiki.freebsd.org/RootOnZFS I have tried this on 3 different systems (all 8.1R though) and they always deadlock once the zfs swap is touched. I think that the "not recommended" is not enough. It just doesn't work at all, except if I am doing something wrong and there are some cases that it works? I have now switched to native freebsd-swap (after a long zfs send/receive backup to resize the zpool :) ) and everything works great. Thanks. On Fri, Sep 10, 2010 at 10:39 AM, Pawel Jakub Dawidek wrote: > On Wed, Sep 08, 2010 at 07:19:40PM +0300, App Deb wrote: > > Reading the wiki guides they mention the official way to add swap volumes > on > > ZFS (set org.freebsd:swap=on etc..), > > > > So I thought that it should work now, But I just got a panic in > 8.1-RELEASE > > after a heavy memory situation that touched swap for the first time. > > Swap on ZVOL is still not recommended. Where did you find information > that it now recommended? I can't find anything about swap on > http://wiki.freebsd.org/ZFS and on > http://wiki.freebsd.org/ZFSQuickStartGuide there is a note that it is > not recommended. Let me know where it is advised and I'll remove it or > add a note (if the documentation is mine). > > > It is a hassle to add gmirror volumes for swap on full zfs systems, is > there > > any workaround for this, or any news when a fix is coming or if it is > > coming? > > I've no plans to fix it, maybe with ZFSv28 it will be easier to fix, but > this is really low priority. If you use full ZFS system the recommended > layout is described here: > > > http://blogs.freebsdish.org/pjd/2010/08/06/from-sysinstall-to-zfs-only-configuration/ > > > If the current code procudes guaranteed panics with zfs swap, I think > that > > every mention of swap on zfs should be removed from the semi-official > wiki > > guides. > > BTW. If this issue will be worked on in the future, it will be useful to > actually see your panic, backtrace and other debug info. To be honest, I > didn't expect it to panic, rather deadlock. Maybe panic is from deadlock > resolver? Hard to say without any debug info. > > -- > Pawel Jakub Dawidek http://www.wheelsystems.com > pjd@FreeBSD.org http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! >