On 05/06/13, Serge Hallyn (serge.hal...@ubuntu.com) wrote: > Quoting Rory Campbell-Lange (r...@campbell-lange.net): > > On another point I'd also like to know of the recommended way of using > > another mount point for lxc containers and the dpkg cache. For example, > > I wish to hold my containers in /dev/sdb/ mounted on /containers. Should > > I symlink /var/lib/lxc/ to this mount point? > > If you're on a new enough lxc (i.e. 0.9.0) I'd recommend using lxcpath. > You can set 'lxcpath = /srv/lxc' in /etc/lxc/lxc.conf, then all > containers will be created and run from /srv/lxc instead of > /var/lib/lxc. Or you can just add '-P /srv/lxc' to all lxc-* commands.
I'm on Debian Wheezy which has 0.8.0~rc1-8+deb7u1. Looks like I should use the -P flag. > > Finally I'd be grateful to learn of people's experiences with btrfs for > > snapshotting and managing containers. I personally use it for my laptop > > backups, but my host server is on a 3.2.0-4-amd64 kernel which is pretty > > old by btrfs standards. > > yeah I don't know that I'd trust it under 3.2. I think 3.5 is where it > stopped losing data for me. But best to run some tests. When it > failed me, it generally did so after one or two subvolume commands. Cheers for those notes. Rory -- Rory Campbell-Lange r...@campbell-lange.net ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users