From owner-freebsd-questions@freebsd.org Thu Aug 31 14:11:09 2017 Return-Path: Delivered-To: freebsd-questions@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 478A6E1F58B for ; Thu, 31 Aug 2017 14:11:09 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9CC467D75F for ; Thu, 31 Aug 2017 14:11:07 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from [10.4.242.25] ([46.233.78.25]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id v7VEAtw5002911 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Thu, 31 Aug 2017 15:10:58 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <59A818F3.6000307@fjl.co.uk> Date: Thu, 31 Aug 2017 15:10:59 +0100 From: Frank Leonhardt Reply-To: Frank Leonhardt Organization: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: help creating new gmirror > 2TB References: <26f5e88e-1ea7-6332-ca5e-f055cfbdd280@fjl.co.uk> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 14:11:09 -0000 On 31/08/2017 01:35, William Dudley wrote: > I've never heard of AFD, and is having 4K sectors something I have control > of? Or is tthat something the manufacturer controls? > > My drives are: 2 of Seagate 4TB IronWolf NAS SATA 6Gb/s NCQ 64MB Cache > 3.5-Inch Internal Hard Drive (ST4000VN008) > > Which doesn't have the magic word "AFD" anywhere in the description. > > Also, I happen to like the idea of "fixing" the gmirror code to put it's > metadata in the penultimate sector if it discovers GPT > in the last sector, but I suppose I shouldn't get my hopes up. > > Bill Dudley > > On Wed, Aug 30, 2017 at 5:57 PM, Frank Leonhardt wrote: > > "I'm sure you'll be okay with MBR assuming it's an AFD (4K sector drive)." > > On 29/08/2017 21:12, William Dudley wrote: >>> Hi, >>> >>> I want to create a simple mirror > 2TB on a FreeBSD 10.3 system. >>> >>> I have 2 identical 4TB disks. >>> >>> The examples in freebsd handbook "geom-mirror" pages show creation of a >>> 2TB >>> mirror using >>> MBR partitioning, and that has an upper limit of 2TB. >>> >> I still get a bit worried about this, but I'm 99.9% sure you'll be okay >> with MBR assuming it's an AFD (4K sector drive). The bodge/workaround >> works. If it's SAS instead of SATA, all bets are off. >> >> Although I use ZFS a lot, I still prefer geom mirror for twin-disk >> systems. I feel a lot more comfortable booting from it in the event of a >> failure. ZFS has its good points, but so does UFS. >> >> Trying to get geom mirror to work with GPT as it stands just leads to >> pain. I've taken a look at the code with a view to fixing this is no one >> else does, but UFS is so un-cool in most circles and I don't fancy doing it >> alone in case I zap someone's data. it doesn't look that tricky to move the >> metadata somewhere else, and by checking for a GPT you can select between >> the old/new block. It's unexpected interactions I'm worried about. >> >> I think we're safe with MBR until we pass 16Tb. >> >> Regards, Frank. >> >> >> Sorry about the AFD - I think it's just called AF Disk now (was also known as Advanced Disk Format at one time). Basically, to get around the 2Tb crunch on MBR the size of the "hardware" sectors was increased from 512 to 4096 bytes (or octets if you want to be modern!) It does reduce the ECC space needed on the disk too, but could cause alignment problems if the OS wasn't aware and was translating 512-byte blocks. IIRC Microsoft sorted this with Windoze 8. But it's only putting off the evil hour when we have to move from MBR to GPT, and break geom mirror. Regards, Frank.