|
|
Log in / Subscribe / Register

Deploying Docker

Deploying Docker

Posted Nov 27, 2013 8:36 UTC (Wed) by jospoortvliet (guest, #33164)
Parent article: Deploying Docker

I wonder what is unstable about btrfs for this purpose? Does it need btrfs functionality not yet stable, like de-duplication?


to post comments

Deploying Docker

Posted Nov 27, 2013 13:49 UTC (Wed) by rleigh (guest, #14622) [Link] (1 responses)

I have been doing this with schroot's "btrfs-snapshot" chroot type for a few years now without running into a single problem relating to snapshotting/subvolumes. Not that btrfs is stable enough for me to trust for anything but transient snapshots, but that's ideal for this type of usage, and btrfs snapshots are super fast and you can create dozens of snapshots in parallel for e.g. parallel build jobs. I've found them to be more robust than LVM snapshots in practice; rapid parallel snapshotting of LVM LVs will rapidly lock up the kernel (unless it's been fixed in the interim--I just stopped pushing it so hard).

The only Btrfs limitation I've found is the lack of being able to atomically replace one subvolume with another (e.g. if you want to replace the original subvolume with an updated snapshot atomically). In practice you have to do two renames, so it's not atomic.

Deploying Docker

Posted Nov 27, 2013 15:55 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

> In practice you have to do two renames, so it's not atomic.

Has there been thought of a swap() syscall (and probably a corresponding coreutils program) to do this? I want this for normal files as well often enough…


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds