From owner-freebsd-fs@FreeBSD.ORG Thu Mar 17 20:02:06 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 93884106566B for ; Thu, 17 Mar 2011 20:02:06 +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 2FECA8FC16 for ; Thu, 17 Mar 2011 20:02:05 +0000 (UTC) Received: from source ([209.85.212.52]) (using TLSv1) by na3sys009aob112.postini.com ([74.125.148.12]) with SMTP ID DSNKTYJovR29nMqu1SHeNNCQqxdRAAFdkf5v@postini.com; Thu, 17 Mar 2011 13:02:06 PDT Received: by vws16 with SMTP id 16so3619437vws.11 for ; Thu, 17 Mar 2011 13:02:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.0.41 with SMTP id 9mr154756vdb.212.1300390364593; Thu, 17 Mar 2011 12:32:44 -0700 (PDT) Received: by 10.52.157.229 with HTTP; Thu, 17 Mar 2011 12:32:44 -0700 (PDT) Date: Thu, 17 Mar 2011 14:32:44 -0500 Message-ID: From: Thomas Johnson To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 20:02:06 -0000 Has anyone else noticed issues halting a system that is configured with a ZFS filesystem on a HAST device? I am using HAST to replicate a ZFS filesystem between two ESXi virtual machines (trying to emulate our production systems in a test environment) and I've noticed that the system doesn't seem to shutdown completely in this arrangement (hangs after "" message). I did some poking around and learned that if I unmount my zfs filesystems before shutdown, the shutdown finishes cleanly. Muddling my way through the rc scripts, it looks like hastd is killed fairly early on in the shutdown sequence. Presumably this is preventing the system from syncing/unmounting the ZFS mounts, causing the shutdown to hang. Does this seem plausible? If so, any ideas on fix, besides making sure I 'zfs unmount -a' before shutdown? -- Thomas Johnson