From owner-freebsd-fs@FreeBSD.ORG Thu Mar 17 20:36:14 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 CC0D21065673 for ; Thu, 17 Mar 2011 20:36:14 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8A6B68FC13 for ; Thu, 17 Mar 2011 20:36:14 +0000 (UTC) Received: by gwb15 with SMTP id 15so1463269gwb.13 for ; Thu, 17 Mar 2011 13:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=awjZ16NZUcPNnn2JjKu4E5EQ3Za4iduLvB3HH8yjOfY=; b=jzZK0TpcgxO6Gce5jaN2kILs0TionnJu+R1uooSP0VSiv58LhQoeDv/jWzY0GryJgA MXHsmWVyGbnOjnOM3vM6O4CaYTLK+H5ZADYtFe5iJXFmx95SnvDvCUvrhhE5rYyz4TM9 79IJK7+zIuC9cYQzQYSsYL/M6NVPHie/7E97E= 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=i0DB0JMwro4g5kc/Eb9VMZch9+jlZ7GWycvzKZ/ChbtoO4dVPaLA27VIg3J69onGFA +fbb/+aUEAy3VWNlSpfN+LrxBZpltn2KylrVmQebUEIDjaUgpEbfhR2irNpw46Ef2643 /YLqEZWz4SrT11zUPOU9aywBQTDL9fdZygH8s= MIME-Version: 1.0 Received: by 10.90.126.19 with SMTP id y19mr295423agc.114.1300394173829; Thu, 17 Mar 2011 13:36:13 -0700 (PDT) Received: by 10.90.83.18 with HTTP; Thu, 17 Mar 2011 13:36:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Mar 2011 13:36:13 -0700 Message-ID: From: Freddie Cash To: Thomas Johnson Content-Type: text/plain; charset=UTF-8 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 20:36:14 -0000 On Thu, Mar 17, 2011 at 12:32 PM, Thomas Johnson wrote: > 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? 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. -- Freddie Cash fjwcash@gmail.com