Opened 17 months ago

Closed 9 months ago

#1242 closed enhancement (duplicate)

Add support for expiring remote snapshots

Reported by: gcooper Owned by:
Priority: major Milestone:
Component: Backend Version: 8.0.3-RELEASE-p1
Keywords: Cc:

Description

The code in autosnap.py handles ZFS snapshot expiration on the local machine:

for snapshot in snapshots_pending_delete:
    zfsproc = pipeopen('/sbin/zfs get -H freenas:state %s' % (snapshot))
    output = zfsproc.communicate()[0]
    if output != '':
        fsname, attrname, value, source = output.split('\n')[0].split('\t')
        if value == '-':
            snapcmd = '/sbin/zfs destroy %s' % (snapshot)
            system(snapcmd)

A user requested that we add replicated snapshot expiration support, so the remote end doesn't fill up the remote filesystem with replicated snapshots, s.t. manual intervention would be required to fix the issue.

Change History (1)

comment:1 Changed 9 months ago by william

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicated of #388

Note: See TracTickets for help on using tickets.