[lxc-users] lxc-snapshot with btrfs on debian 8.1

Matthias Leopold matthias at leopold.priv.at
Wed Jun 17 09:19:13 UTC 2015


Am 2015-06-15 17:33, schrieb Serge Hallyn:
> Quoting Matthias Leopold (matthias at leopold.priv.at):
>> Hi,
>> 
>> i'm very new to lxc and btrfs. i'm just playing around and can't use
>> lxc-snapshot like it's being described.
>> 
>> error looks like this
>> 
>> root at debian:~# lxc-snapshot -n c001
>> lxc_container: failed getting pathnames for cloned storage:
>> /var/lib/lxc/c001/rootfs
>> lxc_container: Error copying storage
>> lxc_container: clone of /var/lib/lxc:c001 failed
>> lxc_container: Error creating a snapshot
>> 
>> some questions below. i admit to having rtfm'ed only quickly ;-)
>> 
>> do /var/lib/lxc and /var/lib/lxcsnaps have to reside on the _same_
> 
> What version of lxc are you on?  Since quite some time ago lxc
> should by default be using /var/lib/lxc/$container/snaps, which
> certainly should be on the same btrfs
1.0.6

> 
>> btrfs filesystem for lxc-snaphot to work? currentyl i have two
>> separate btrfs filesystems
>> 
>> is /var/lib/lxcsnaps used at all when doing snapshots on a btrfs
>> /var/lib/lxc?
>> 
>> do btrfs snapshots have to reside below the snapshotted root?
>> 
>> is this related to
>> https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1414771 ?
>> 
>> thx
>> matthias
>> 
>> 
>> 
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list