From owner-freebsd-stable@freebsd.org Thu Jun 2 14:50:36 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 495ADB6398B for ; Thu, 2 Jun 2016 14:50:36 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 387F512DD for ; Thu, 2 Jun 2016 14:50:36 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: by mailman.ysv.freebsd.org (Postfix) id 37E71B63989; Thu, 2 Jun 2016 14:50:36 +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 37900B63988 for ; Thu, 2 Jun 2016 14:50:36 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F1D8A12DC for ; Thu, 2 Jun 2016 14:50:35 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1b8Tx6-000IfD-3P; Thu, 02 Jun 2016 17:50:28 +0300 Date: Thu, 2 Jun 2016 17:50:28 +0300 From: Slawa Olhovchenkov To: "Eugene M. Zheganin" Cc: stable@freebsd.org Subject: Re: HAST, zfs and local mirroring Message-ID: <20160602145028.GC75625@zxy.spb.ru> References: <20160601132300.GA75625@zxy.spb.ru> <574FDC63.6090100@norma.perm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <574FDC63.6090100@norma.perm.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false 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: Thu, 02 Jun 2016 14:50:36 -0000 On Thu, Jun 02, 2016 at 12:12:35PM +0500, Eugene M. Zheganin wrote: > Hi. > > On 01.06.16 18:23, Slawa Olhovchenkov wrote: > > > > Only FS support changed data bypass FS layer is Files-11 ODS-2 level, > > may be hardware support required. > > > > Can you use ZFS mirror with one vdev local and other vdev by iSCSI? > > Every node using separate ZFS pool in this case. > If you mean that I should distribute the HAST one-disk device via iSCSI > and then use it as a half of zfs mirrored pool on each node, then I > should ask how the pool will decide which half is more recent - local or > iSCSI, after I will import it and the kernel will found that it's vdevs > differs a lot ? And why should I prefere this overcomplicated scheme > over the geom_mirror, which seems rather simple when comparing. Seems > like I can point HAST to /dev/mirror/whatever device, right ? I am suggesting next setup: node0: own pool zroot0: mirror-0: local_disk0 remote-iscsi_disk1/1 local_disk1: exported by iscsi as remote-iscsi_disk0/1 to node1 node1: own pool zroot1: mirror-0: local_disk0 remote-iscsi_disk0/1 local_disk1: exported by iscsi as remote-iscsi_disk1/1 to node0 No HAST. Disks synced by ZFS over iSCSI.