From owner-freebsd-stable@freebsd.org Wed Jun 1 07:21:18 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26F80B60389 for ; Wed, 1 Jun 2016 07:21:18 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 123681065 for ; Wed, 1 Jun 2016 07:21:18 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: by mailman.ysv.freebsd.org (Postfix) id 0DE30B60388; Wed, 1 Jun 2016 07:21:18 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D8A9B60387 for ; Wed, 1 Jun 2016 07:21:18 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (unknown [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 75FB51062 for ; Wed, 1 Jun 2016 07:21:17 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from bsdrookie.norma.com. (pc846408.norma.com [IPv6:fd00::73d] (may be forged)) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTPS id u517LE01014882 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 1 Jun 2016 12:21:14 +0500 (YEKT) (envelope-from emz@norma.perm.ru) Subject: Re: HAST, zfs and local mirroring To: stable@freebsd.org References: From: "Eugene M. Zheganin" Message-ID: <574E8CEA.1010908@norma.perm.ru> Date: Wed, 1 Jun 2016 12:21:14 +0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2016 07:21:18 -0000 Hi. On 01.06.16 02:49, Freddie Cash wrote: > On Tue, May 31, 2016 at 11:18 AM, Eugene M. Zheganin > >wrote: > > I wat to start using HAST, I have two nodes and a pair of disk on > each node. So I want to use HASt in an environment where each HAST > resource would be mirrored. What is the preferred approach if I > want to use ZFS on an end-device to avoid exsessive fscking, and, > in the same time, I want to have some redundancy on a block level > ? I see two possibility: HAST on a zvol of a mirrored pool, and a > ZFS on a hast. But recently I heard that nested zfs (like zfs on > zvol) is clamed unsupported. Futhermore, I have zfs on a geli on a > zvol, and this solution proved itself to be very affected to > livelocking - when disk i/o on a such fs is above some treshold, > system is locking, and the only way out is to reset it. Should I > chose geom_mirror to provide a device for HAST and the build ZFS > on it ? > > > ​The generally recommend way to do this is to create a HAST resource > out of 1 disk from each system, and then build the ZFS pool using the > HAST resources as the "disks". > > That way, your ZFS pool is made up of 2 HAST devices in a mirror vdev. > > And each of the two HAST devices uses one disk from each server (total > of four disks). > ​ > > > But I don't need two HAST devices, I need one, but redundant on each server. Eugene.