Download presentation
Presentation is loading. Please wait.
1
Using Next-Gen FS asynchronous filesystem replication
rsync isn't always the answer anymore These slides are © 2013 Jim Salter, with license Creative Commons Attribution-ShareAlike 3.0 unported.
2
Today's slides can be found at:
First of all: Who? Jim Salter Technomancer, Mercenary Sysadmin, Small Business Owner 6 years of ZFS in production 6 [units of time] of btrfs in test Today's slides can be found at:
3
What, Which, Why What is “asynchronous filesystem replication”?
Which filesystems can do this? Why is it any better than rsync?
4
What does “asynchronous filesystem replication” mean?
You take a snapshot, copy it, and apply it on another system Block-level duplication Differential replication == awesome Doesn't directly know or care about files, folders, or anything else. This is a feature, not a bug!
5
Which filesystems can asynchronously replicate?
6
Why do I really care about this stuff?
Preserve ALL the metadata! Preserve snapshots, hardlinks, data deduplication, compression, encryption... Faster... sometimes much, much faster Much, much less load on the system
7
Demo Time!!!1 Finagle, please look the other way
Let's hit a shell and play with this stuff, people.
8
Just In Case... (sometimes, things don't go as planned)
If you rename a file, rsync copies it as new If you rename a folder, rsync copies it and everything beneath it as new If you change a file, rsync can propagate only the changed data... but it has to read and tokenize every single block on both ends in order to do so rsync can't handle snapshots, has trouble with hard links, doesn't know about subvolumes... If everything went right, you just saw rsync take 30 seconds to do what zfs send | zfs receive managed in 0.5.
9
Just In Case... (part deux – the basics look like this)
sudo zfs create zpool/filesystem [[put all your precious datas in the new filesystem]] sudo zfs snapshot ssh zfs send | sudo zfs receive zpool/filesystem [[put more precious datas in the filesystem]] sudo zfs snapshot sudo zfs rollback ssh zfs send -i | sudo zfs receive zpool/filesystem
10
(further testing may be in order)
Maturity (n / 2) + 7 Been doing this stuff for years... and years. In testing, in production. Totally had a patch applied recently, which everybody loved! And it was merged in! I'm pretty sure btrfs can do this now! Yay! (further testing may be in order)
11
The Bottom Line lern 2 replicate snapshots, n00b Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.