zfs

package module
v0.0.0-...-8f49f9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

ZFS snapshotter plugin

WORK IN PROGRESS

ZFS snapshotter plugin for containerd, based on the official containerd zfs snapshotter, yet git different from the original since it's using a real API interface to ZFS rather than executing command.

This plugin is tested on Arch Linux for ZFS On Linux 2.x and Ubuntu for 1.8.x, targetting 2.x first.

Usage

The plugin is built-in by default since containerd 1.1. No need to recompile containerd or execute a proxy snapshotter process.

  1. Set up a ZFS filesystem. The ZFS filesystem name is arbitrary but the mount point needs to be /var/lib/containerd/io.containerd.snapshotter.v1.zfs, when the containerd root is set to /var/lib/containerd.
$ zfs create -o mountpoint=/var/lib/containerd/io.containerd.snapshotter.v1.zfs your-zpool/containerd

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSnapshotter

func NewSnapshotter(root string) (snapshots.Snapshotter, error)

NewSnapshotter returns a Snapshotter using zfs. Uses the provided root directory for snapshots and stores the metadata in a file in the provided root. root needs to be a mount point of zfs.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL