From owner-freebsd-fs@FreeBSD.ORG Sun Oct 11 16:43:50 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9E331065672 for ; Sun, 11 Oct 2009 16:43:50 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 98FDE8FC0A for ; Sun, 11 Oct 2009 16:43:50 +0000 (UTC) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 9750B19E023 for ; Sun, 11 Oct 2009 18:43:48 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 75E3219E019 for ; Sun, 11 Oct 2009 18:43:46 +0200 (CEST) Message-ID: <4AD20B41.3070405@quip.cz> Date: Sun, 11 Oct 2009 18:43:45 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4AD1616C.8060504@quip.cz> In-Reply-To: <4AD1616C.8060504@quip.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ZFS vs. df -h completely different size of filesystem [solved] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2009 16:43:50 -0000 Solved after few hours of sleep - main problem was ... me. (working for more than 18 hours is not a good idea) Miroslav Lachman wrote: [...] > The strange thing is this: > > root@cage ~/# df -h /vol0/jail/kurt2 > Filesystem Size Used Avail Capacity Mounted on > tank/vol0/jail/kurt2 24G 19G 4.9G 80% /vol0/jail/kurt2 > > > root@cage ~/# zfs list | grep tank/vol0/jail/kurt2 > tank/vol0/jail/kurt2 355G 4.89G 19.2G > /vol0/jail/kurt2 > tank/vol0/jail/kurt2@manual-2009-08-18_11-04 7.29G - 299G - > tank/vol0/jail/kurt2@manual-2009-09-04_10-24 2.24G - 308G - > tank/vol0/jail/kurt2@manual-2009-09-28_11-41 21.4G - 317G - > > > root@cage ~/# zfs get -r quota tank/vol0/jail/kurt2 > NAME PROPERTY VALUE SOURCE > tank/vol0/jail/kurt2 quota 360G local Directory on source server was moved and rsync started from cron accidentaly deleted all data. But space remains occupied by data of snapshots! Thats why df showed just 24G size and not 360G. Df knows nothing about snapshots. The fix was relatively easy. 1] make a backup of a new files (logs, configs, etc.) 2] destroy clone: zfs destroy tank/vol0/jail/kurt2_clone 3] rollback last snapshot zfs rollback -f tank/vol0/jail/kurt2@manual-2009-09-28_11-41 4] restore backup from step 1) 5] fix rsync settings 6] run rsync as usual ;) Miroslav Lachman