From owner-freebsd-fs@FreeBSD.ORG Wed Jun 8 07:46:43 2011 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 B6F691065674 for ; Wed, 8 Jun 2011 07:46:43 +0000 (UTC) (envelope-from gpm@hotplug.ru) Received: from gate.pikinvest.ru (gate.pikinvest.ru [87.245.155.170]) by mx1.freebsd.org (Postfix) with ESMTP id 6B3B78FC1A for ; Wed, 8 Jun 2011 07:46:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailgate.pik.ru (Postfix) with ESMTP id B29ED1C0880 for ; Wed, 8 Jun 2011 11:46:40 +0400 (MSD) Received: from EX03PIK.PICompany.ru (unknown [192.168.156.51]) by mailgate.pik.ru (Postfix) with ESMTP id B0B731C0879 for ; Wed, 8 Jun 2011 11:46:40 +0400 (MSD) Received: from [192.168.148.9] ([192.168.148.9]) by EX03PIK.PICompany.ru with Microsoft SMTPSVC(6.0.3790.4675); Wed, 8 Jun 2011 11:46:36 +0400 Message-ID: <4DEF28BE.4090303@hotplug.ru> Date: Wed, 08 Jun 2011 11:46:06 +0400 From: Emil Muratov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4DEE4654.6060404@hotplug.ru> <20110607160406.GC43075@tolstoy.tols.org> In-Reply-To: <20110607160406.GC43075@tolstoy.tols.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Jun 2011 07:46:36.0295 (UTC) FILETIME=[3190D970:01CC25B0] Subject: Re: zfs snapshot management 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: Wed, 08 Jun 2011 07:46:43 -0000 >>> We've had plenty of good experiences with sysutils/zfs-snapshot-mgmt >> I have had problems with this tool regarding daylight saving time >> changes and snapshot aging calculation. I wrote to the author but didn't >> get any response. >> I used zfSnap (/usr/ports/sysutils/zfsnap) as a very good alternative >> for quite a long time, but now it's broken for v28 since zfs -r behavior >> for snapshots has changed. Hope there will be a fix for it someday. > Isn't it so that cron is aware of daylight savings time changes, and > will not run the same cronjob twice if on a given day hour x occurs > twice? Or can be configured to be aware of that? > > An alternative I'm using at the moment is to have root be in UTC. > Downside is that your snapshot names will be in UTC time. > No, cron is fine. The problem was in the script itself. As far as I remember it calculates snapshot age by checking if snapshot age in minutes is even to 24h, which is definitely not true after daylight shift. So such snapshots were not purged properly.