From owner-freebsd-stable@FreeBSD.ORG Sat Jul 24 13:01:28 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63D891065675 for ; Sat, 24 Jul 2010 13:01:28 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id 364088FC08 for ; Sat, 24 Jul 2010 13:01:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id 8429D50B7A; Sat, 24 Jul 2010 14:01:27 +0100 (BST) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id frLn+xhKuiG8; Sat, 24 Jul 2010 14:01:26 +0100 (BST) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id 5604450A93 ; Sat, 24 Jul 2010 14:01:26 +0100 (BST) Message-ID: <4C4AE419.2020503@langille.org> Date: Sat, 24 Jul 2010 09:01:13 -0400 From: Dan Langille Organization: The FreeBSD Diary User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Pawel Tyll References: <4C47B57F.5020309@langille.org> <4C48E695.6030602@langille.org> <718046944.20100723032259@nitronet.pl> <4C4A42D5.7080805@langille.org> <136751861.20100724135630@nitronet.pl> In-Reply-To: <136751861.20100724135630@nitronet.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Adam Vande More , freebsd-stable@freebsd.org Subject: Re: Using GTP and glabel for ZFS arrays X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2010 13:01:28 -0000 On 7/24/2010 7:56 AM, Pawel Tyll wrote: >> Easiest way to create sparse eg 20 GB assuming test.img doesn't exist >> already You trim posts too much... there is no way to compare without opening another email. Adam wrote: > truncate -s 20g test.img > ls -sk test.img > 1 test.img > No no no. Easiest way to do what you want to do: > mdconfig -a -t malloc -s 3t -u 0 > mdconfig -a -t malloc -s 3t -u 1 In what way is that easier? Now I have /dev/md0 and /dev/md1 as opposed to two sparse files. > Just make sure to offline and delete mds ASAP, unless you have 6TB of > RAM waiting to be filled ;) - note that with RAIDZ2 you have no > redundancy with two fake disks gone, and if going with RAIDZ1 this > won't work at all. I can't figure out a safe way (data redundancy all > the way) of doing things with only 2 free disks and 3.5TB data - third > disk would make things easier, fourth would make them trivial; note > that temporary disks 3 and 4 don't have to be 2TB, 1.5TB will do. The lack of redundancy is noted and accepted. Thanks. :) -- Dan Langille - http://langille.org/