lxc-clone makes new copies of each hardlinked file

Bug #1441307 reported by Jason Hobbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm using lxc 1.0.7 from the stable PPA on precise.

When I use lxc-clone to copy a container running MAAS, which uses hardlinks to manage images, each hardlinked file is created as a new file in the cloned rootfs, increasing my file system size by hundreds of GB's.

rsync is not using -H - just rsync -a.

Tags: oil
Revision history for this message
Erik B. Andersen (azendale) wrote :

I've attempted to fix this, see my branch on github:

https://github.com/Azendale/lxc/tree/fix-rsync-hardlinks

I'm not quite sure how I go about building a package from a github branch that I could test. If Jason Hobbs knows how to do that and could test if it fixes the issue, that would be great!

affects: lxc → lxc (Ubuntu)
Revision history for this message
Stéphane Graber (stgraber) wrote :

Looking at the current LXC code, "-H" is part of our rsync flags now.

Changed in lxc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.