[Lxc-users] [PATCH 0/3] several mods to lxc-clone.in
InformatiQ
rhanna at informatiq.org
Tue Aug 30 09:14:55 UTC 2011
*** BLURB HERE ***
InformatiQ (3):
* allow cloning of non-snapshot lvm devices
* if no -s then create a copy of the lvm block device and copy data from the orig
to the new container device
* first take a snapshot, then use this snapshot to copy data, remove snapshot after done
* if orig container is running freeze it while copying
* in case lvm block device, the container is only frozen during creation of snapshot ~1 sec
* use rsync -ax insted of cp -a
* in case copying a live contrainer it won't copy runtine mounted files such as /proc, /sys and some /dev
* new opts
* fstype: type of fs for the newly created lvm device in case of non-snapshot lvm
* lvprefix: prefix for new lvm device name.
* do not delete the lines lxc.mount by default
* check is fstab exists then copy it
* only modify lines that contain "lxc.mount =", debian template seems to not have that line but uses lxc.mount.* lines which get screwed
* add the new opts to help() *set container_running=false
* if after freezing the container the snapshot/rsync fails, unfreeze before exiting
More information about the lxc-users
mailing list