From owner-freebsd-performance@FreeBSD.ORG Thu Nov 17 19:28:37 2011 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22713106566B for ; Thu, 17 Nov 2011 19:28:37 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id C65BC8FC14 for ; Thu, 17 Nov 2011 19:28:36 +0000 (UTC) Received: by vcbfy13 with SMTP id fy13so2286323vcb.13 for ; Thu, 17 Nov 2011 11:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=POzRw1UBfoBBZWXzvd1oVHdfJeAiUS6BbMIFLq6CQ1o=; b=pKCzfGoL1MOhJxatV88VhofKgH4Lnb2oGsSIgeaIeScTYN5dBnD74pKDR+0G5H03F0 GloWj1RH0W7daFYXJ4z7VXTlCBX15s+QkMgaUU1hcI8YC9qOU0bVFT4faxTpWoDohzwv 0JSi7gcu8t8ZkYsRAQ8JTY1mVgQKvzTpuZupY= MIME-Version: 1.0 Received: by 10.220.153.81 with SMTP id j17mr155203vcw.30.1321556312347; Thu, 17 Nov 2011 10:58:32 -0800 (PST) Received: by 10.220.190.71 with HTTP; Thu, 17 Nov 2011 10:58:32 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Nov 2011 10:58:32 -0800 Message-ID: From: Freddie Cash To: "list, mailing" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-performance@freebsd.org Subject: Re: ZFS Few Questions X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 19:28:37 -0000 On Thu, Nov 17, 2011 at 10:26 AM, list, mailing wrote: > Hello everyone I just had a few questions about ZFS. > I normally use Hardware RAID 5. > > Question 1: > > With the ZFS snapshots what is the lost in drive space? > > If no data changes after you create the snapshots, then no disk space is used by the snapshots. If data changes after you create the snapshot, then the snapshot holds the original data. For example, if you have 100 GB in the filesystem, create a snapshot, then modify 10 GB of data, the snapshot will hold 10 GB of data (the original, unchanged data), and the total disk usage (filesystem + snapshot) is 110 GB. > Hard drives I have: > 4 x 500 GB = 1.5T on RAID 5 > > I have see lots of videos like: http://www.youtube.com/watch?v=CN6iDzesEs0 With ZFS, you decide how much disk space you want to use for redundancy. With 4 harddrives, you have the following options: 2x mirror vdev = 1.0 TB of usable space; best performance, can lose 2 drives before losing data 1x raidz1 vdev = 1.5 TB of usable space; decent performance, can lose 1 drive before losing data 1x raidz2 vdev = 1.0 TB of usable space; ok performance,, can lose 2 drives before losing data raidz1 is similar to RAID5. raidz2 is similar to RAID6. > > Question 2: > > FreeBSD 9.0 installable on ZFS root? > Yes. > Question 3: > > Anyone Recommend for MySQL server? (Performance) > Read through the ZFS Admin Guide for recommendations for running databases on top of ZFS. > Question 4: > > fsck used with when Server just turns off? (Fast or slower filesystem check > when compared to UFS on HW RAID 5 ) > Taking note of: "FreeBSD 9.0 adds support for lightweight journaling on top > of softupdates(SU+J), which greatly reduces and need for background fsck, > and uses NFS-style ACLs by default." > > ZFS does not have a separate "fsck" tool. It does not need it. If the box crashes, ZFS will just come back online, possibly losing 5-10 seconds worth of uncommitted data. If ZFS is unable to come back online automatically, you can manually roll it back a transaction group or two. You'll lose a bit of data, but the filesystems will be coherent and intact and operational. -- Freddie Cash fjwcash@gmail.com