Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2011 16:00:38 -0500
From:      Thomas Johnson <tom@claimlynx.com>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: HAST + ZFS causes system to shutdown uncleanly?
Message-ID:  <AANLkTikvQ%2BV5DcaWU2ve58GdsTP0b8Jdtn6qFvC7=-Vc@mail.gmail.com>
In-Reply-To: <AANLkTikh=svOS-HYPop5ieVxf3cuUUc8V=h=5xXt6-A5@mail.gmail.com>
References:  <AANLkTim5Brtn6nn=HJzB_eQGBg-Va4fXc5wSdvs5Y0kQ@mail.gmail.com> <AANLkTikh=svOS-HYPop5ieVxf3cuUUc8V=h=5xXt6-A5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
(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 <fjwcash@gmail.com> 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.
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikvQ%2BV5DcaWU2ve58GdsTP0b8Jdtn6qFvC7=-Vc>