Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Jun 2011 11:46:06 +0400
From:      Emil Muratov <gpm@hotplug.ru>
To:        freebsd-fs@freebsd.org
Subject:   Re: zfs snapshot management
Message-ID:  <4DEF28BE.4090303@hotplug.ru>
In-Reply-To: <20110607160406.GC43075@tolstoy.tols.org>
References:  <alpine.OSX.2.00.1106052232210.1983@hotlap.nat.fasttrackmonkey.com>	<de98183e8bbc9e2886d6401f77c088d9@www1.xerq.net>	<4DEE4654.6060404@hotplug.ru> <20110607160406.GC43075@tolstoy.tols.org>

next in thread | previous in thread | raw e-mail | index | archive | help

>>> 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.









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DEF28BE.4090303>