ZFS Life Preserver issues

As some of you I prefer TrueOS to vanilla FreeBSD for several reasons. Apparently one of those reasons, Life Preserver, is not working as advertised. I posted a question on PC-BSD forum but that thing is very low volume and unlikely to be answered by a serious person so here is the description of my problem. I would appreciate any help. Between I am on the verge of switching to zfsnap based on this article

http://blather.michaelwlucas.com/archives/2128

Any suggestions regarding automated snapshot tools would be appreciated.



Hi,

I am running TrueOS 10.1 on one of my servers

Code:
[root@backup1] ~# beadm list
BE Active Mountpoint Space Created
beforeUpdate-2014-11-18_20-06-14 - - 63.8M 2014-11-18 15:06
beforeUpdate-2014-11-20_20-47-20 - - 25.4M 2014-11-20 15:47
beforeUpdate-2014-11-20_20-47-52 - - 25.4M 2014-11-20 15:47
beforeUpdate-2015-01-28_00-03-50 - - 110.5M 2015-01-27 19:03
10.1-RELEASE-up-20150128_002109 - - 52.4M 2015-01-27 19:05
10.1-RELEASE-p24-up-20150615_211707 NR / 2.4G 2015-06-15 21:14

The purpose of the servers it to backup up bunch of RHEL desktops using rsnapshot. So far the things have being working great. About 3-4 months ago I decided take daily snapshots of the file system in the case some files got corrupted for whatever reason. I use Life Preserver to schedule snapshots
Code:
[root@backup1] ~# lpreserver listcron
Datasets scheduled for snapshots:
---------------------------------
storage/backups - daily@11 - total: 10

storage/attic - daily@15 - total: 10

This is were things become weird namely

Code:
[root@backup1] ~# lpreserver listsnap storage/backups
Snapshot Comment
-----------------------------------------------
[root@backup1] ~# lpreserver listsnap storage/attic
Snapshot Comment
-----------------------------------------------

On another hand doing

ls /storage/attic/.zfs/snapshot

I see over hundred of snapshots for each day of the past three and a half months. I expected to see only last 10 daily snapshots. I am totally confused. Why old snapshots are not destroyed? I tested and I have no problem destroying them manually. The large number of snapshots create of course serious problems. I discovered the problem when Monit alerted me that I am running out of disk space (I have 5.4 TB ZFS pool used to backup 20 desktops which contain in average 100GB of data). That should be plenty enough considering lz4 compression. The file system is becoming sluggish with this many snapshots.

My question is what am I doing wrong? Does Live Preserver works as advertised form CLI? If not I should just start using something as zfsnap. Just I use periodic script for ZFS scrubs instead of Life Preserver.
 
Back
Top