[Lxc-users] zfs support

Serge Hallyn serge.hallyn at ubuntu.com
Thu Apr 4 13:54:48 UTC 2013


Quoting Papp Tamas (tompos at martos.bme.hu):
> On 04/03/2013 11:43 PM, Serge Hallyn wrote:
> >
> >It's on the list - only trick is I need to learn how to use it :)
> 
> I planning to make some changes like this:
> 
>     echo "  -B zfs [--zfs-root PATH]" >&2
> 
>     echo "  --zfs-root PATH    specify the zfs path for lxcpath (default: tank/lxc)" >&2
> 
> where tank used to be the default zfs pool name for.
> A typical zfs list output is like this:
> 
> NAME                  USED  AVAIL  REFER  MOUNTPOINT
> tank                  384G   710G   168K  /tank
> tank/lxc              384G   710G   256K  /data/lxc
> tank/lxc/camel        108G   710G   108G  /data/lxc/camel
> tank/lxc/common       854M   710G   854M  /data/lxc/common
> tank/lxc/confluence  5.84G   710G  5.84G  /data/lxc/confluence
> tank/lxc/demo        1.13G   710G  1.13G  /data/lxc/demo
> 
> It's mount point was set by:
> 
> zfs set mountpoint=/data/lxc tank/lxc
> 
> Of course it's can be anywhere on the filesystem, eg. /var/lib/lxc.

If you want to go ahead and send a full patch against the current
lxc-clone.in script, that should help me reproduce what you want in
the api version.

Will the path used as rootfs always be a zfs mountpoint?  (I.e. not a
subdir?)  If so that'll make it easier to detect zfs mounts
automatically.

-serge




More information about the lxc-users mailing list