Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Cloud-backup solutions for Linux?



> Edward Ned Harvey (blu) <blu at nedharvey.com> wrote:

> For VM's, you only have three choices:

My approach changed after I switched most of my VMs to containers (with LXC). I now make sure all user-data is in a mounted volume shared from the host into the client instance. With containers there's no overhead and you don't need something clunky like NFS or samba (which is what I'd been doing to make DVD ISO image collections available to my MythTV backends, but performance sucked for live-recording volumes).

Someday I'd like to see a data-isolation tweak to LUKS: if the encryption keys were moved from host into client LXC, a container security breach would have a much tougher time trying to get hold of another container's data. (I digress, because I'm thinking of commercial cloud deployment vs. home-use for that.)

Making sure user data is isolated in a mounted volume is hard to do unless you first set up a repeatable way of cloning instances. Make a tarball of your standard root volume, and set up a config-management system of some sort to apply customizations (could be as simple as storing your configs in a directory named for each hostname and checked into git, or a full-blown ansible or puppet system). Then make sure your apps like pvr software are set up to use mounted volumes.

This approach also made it possible to set up warm standby containers on separate hardware without needing a complicated or expensive clustering file system or SAN. Just sync the volumes bidirectionally with a tool like unison, and use haproxy to access the instances using floating IP addresses.

-rich



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org