From owner-freebsd-fs@FreeBSD.ORG Thu Mar 17 21:00:41 2011 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 D0EB21065676 for ; Thu, 17 Mar 2011 21:00:41 +0000 (UTC) (envelope-from tom@claimlynx.com) Received: from na3sys009aog112.obsmtp.com (na3sys009aog112.obsmtp.com [74.125.149.207]) by mx1.freebsd.org (Postfix) with ESMTP id 3885C8FC08 for ; Thu, 17 Mar 2011 21:00:41 +0000 (UTC) Received: from source ([209.85.212.43]) (using TLSv1) by na3sys009aob112.postini.com ([74.125.148.12]) with SMTP ID DSNKTYJ2durARgLoAqBLjFLu2UmTxF+2TEsX@postini.com; Thu, 17 Mar 2011 14:00:41 PDT Received: by mail-vw0-f43.google.com with SMTP id 10so3581440vws.30 for ; Thu, 17 Mar 2011 14:00:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.70.49 with SMTP id j17mr318989vdu.292.1300395638288; Thu, 17 Mar 2011 14:00:38 -0700 (PDT) Received: by 10.52.157.229 with HTTP; Thu, 17 Mar 2011 14:00:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Mar 2011 16:00:38 -0500 Message-ID: From: Thomas Johnson To: Freddie Cash Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: HAST + ZFS causes system to shutdown uncleanly? 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: Thu, 17 Mar 2011 21:00:41 -0000 (replying again with the list CCd) Adding the hastd to the REQUIRE in zfs does not have any effect; although I'm not even sure if /etc/rc.d/zfs gets called during shutdown ('rcorder -k shutdown /etc/rc.d/*' would seem to indicate that it does not. I am using devd/CARP to manage my pools, but it seems to me that if the zfs rc script were running on shutdown it would handle this case properly, since the zfs script appears to simply run a 'zfs unmount -a'. I did add/test with enable_zfs=YES in my rc.conf, to no avail. A shutdown hook was my thought too. Also, to clarify an omission in my initial email, the vm hangs after the "All buffers synced." message on shutdown. On Thu, Mar 17, 2011 at 3:36 PM, Freddie Cash wrote: > > > Does it work if you manually add "hastd" to the REQUIRE: line in > /etc/rc.d/zfs? > > Of course, that only works if you are starting zfs automatically via > /etc/rc.conf, and not letting CARP/devd or something else manage the > pool import process. > >