SlideShare uma empresa Scribd logo
1 de 27
RAID, Replication, and You
data storage and safekeeping
save it, keep it, serve it, back it up
These slides are © 2014 Jim Salter, with license Creative Commons Attribution-ShareAlike 3.0 unported.
http://creativecommons.org/licenses/by-sa/3.0/deed.en_US
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:
http://jrs-s.net/presentations/raid-replication-you/
RAID Subsystems
Isn't that just a “hardware thing?”
I heard “software RAID” sucks!
GTFO, I need PERFORMANCE.
Yes, Performance.1.4 GB/sec mixed R/W workload on commodity hardware... well OK!
1059.11059.1
MB/secMB/sec
readread
351.9351.9
MB/secMB/sec
writewrite
Featuresoh, so many features
● Btrfs-raid1: n/2 redundancy over arbitrary size and number of devices
THIS IS A REALLY AMAZINGLY BIG DEAL. (Microsoft ReFS can do this too)
● Atomic COW snapshots (lol)
● N-way diagonal parity RAID, n-way mirrors
● Per-file, per-folder, per-dataset feature granularity (compression, noCOW, etc)
● On-the-fly reconfiguration of RAID levels, size, rebalancing (btrfs only, another
REALLY BIG DEAL kind of thing)
● Asynchronous incremental remote snapshot replication (Except ReFS, so GTFO
ReFS. Sorry Microsoft)
Why integrated?What can't hardware RAID do for me? Why not separate layers?
● Self-healing redundant arrays
● Stable, well-documented, reliable
interface
● Stable, well-documented, configurable,
reliable error detection and correction
● Commodity HW: performance++, price --
Visualizing RAIDprepare your eyeballs
Traditional RAID0
“Hey I'll just stripe across ALL the disks LOL”
Traditional RAID1boooooooring >=[
Mirror. Identical drives. Yay.
Traditional RAID1boooooooring >=[
Mirror. Identical drives. Yay.
Traditional RAID5pros: storage efficiency cons: everything else
Diagonal Parity RAID, 1 parity block
Traditional RAID6pros: guaranteed two-drive failure survival cons: everything else
Diagonal Parity RAID, 2 parity blocks
Traditional RAID10RAID + RAID = moar RAID
Survives ALL single disk failures
Survives MOST two disk failures:
(n-2)/(n-1) = 80% survival
Very High Performance
btrfs-raid1omg so awesome you guys =)
So you have a bunch of drives...
btrfs-raid1omg so awesome you guys =)
obviously, btrfs-raid1 != RAID1
btrfs-raid1omg so awesome you guys =)
o hai expandability izzat you?
btrfs-raid1omg so awesome you guys =)
yes admin, expandability here
btrfs-raid1omg so awesome you guys =)
all full boss (well, mostly)
Replicationyour backups suck. so much. lern 2 replicate ok
WWW (^_^)
What is “asynchronous filesystem replication”?
Which filesystems can do this?
Why is replication better than rsync?
Whatdoes “asynchronous filesystem replication” mean?
● You take a snapshot, copy it, and
apply it on another system
● Block-level replication
● Differential replication == awesome
● Doesn't directly know or care about
files, folders, or anything else. This is
a feature, not a bug!
Whichfilesystems can asynchronously replicate?
Whydo 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
Why not rsync?rsync is an amazing tool, but...
● 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. Hello, system load!
● rsync can't handle snapshots, has trouble with hard links, doesn't
know about subvolumes...
● You can rsync 1MB of changes in a 1TB file in about 10 hours.
You can replicate them in < 10 seconds.
Sounds good but...
me@remotebackup:~$ grep zfsync /var/log/syslog.1
Mar 29 22:34:26 remotebackup zfsync[22852]: SUCCESS: Updated
backup/images from @zfsync_remotebackup_2014-03-28:22:00:01 to
@zfsync_remotebackup_2014-03-29:22:00:01
(2.2 GB transferred, 34m 25s elapsed)
me@remotebackup:~$ du -hs /backup/images
2.0T /backup/images
In a NutshellZFS replication looks like this...
you@box1:~$ sudo zfs create zpool/filesystem
you@box1:~$ [[put all your precious datas in the new
filesystem]]
you@box1:~$ sudo zfs snapshot zpool/filesystem@1
you@box2:~$ ssh root@box1 zfs send zpool/filesystem@1 |
sudo zfs receive zpool/filesystem
you@box1:~$ [[put more precious datas in the filesystem]]
you@box1:~$ sudo zfs snapshot zpool/filesystem@2
you@box2:~$ sudo zfs rollback zpool/filesystem@1
you@box2:~$ ssh root@box1 zfs send -i zpool/filesystem@1
zpool/filesystem@2 | sudo zfs receive zpool/filesystem
The Bottom Line
What was once enterprise is now small business.
If it can't protect my data, I don't want it.
If it can't replicate off-site, I don't want it.
Evolve, adapt, or die. ^_^
Today's slides can be found at:
http://jrs-s.net/presentations/raid-replication-you/

Mais conteúdo relacionado

Mais procurados

Introduction to Btrfs - FLOSS UK Spring Conference York 2015
Introduction to Btrfs - FLOSS UK Spring Conference York 2015Introduction to Btrfs - FLOSS UK Spring Conference York 2015
Introduction to Btrfs - FLOSS UK Spring Conference York 2015
Richard Melville
 
Raid designs in Qsan Storage
Raid designs in Qsan StorageRaid designs in Qsan Storage
Raid designs in Qsan Storage
qsantechnology
 
Btrfs by Chris Mason
Btrfs by Chris MasonBtrfs by Chris Mason
Btrfs by Chris Mason
Terry Wang
 

Mais procurados (20)

Ceph Day Bring Ceph To Enterprise
Ceph Day Bring Ceph To EnterpriseCeph Day Bring Ceph To Enterprise
Ceph Day Bring Ceph To Enterprise
 
openSUSE storage workshop 2016
openSUSE storage workshop 2016openSUSE storage workshop 2016
openSUSE storage workshop 2016
 
Introduction to Btrfs - FLOSS UK Spring Conference York 2015
Introduction to Btrfs - FLOSS UK Spring Conference York 2015Introduction to Btrfs - FLOSS UK Spring Conference York 2015
Introduction to Btrfs - FLOSS UK Spring Conference York 2015
 
LUG-BG 2017 - Rangel Ivanov - Spread some butter - BTRFS
LUG-BG 2017 - Rangel Ivanov - Spread some butter - BTRFSLUG-BG 2017 - Rangel Ivanov - Spread some butter - BTRFS
LUG-BG 2017 - Rangel Ivanov - Spread some butter - BTRFS
 
SUSE Enterprise Storage on ThunderX
SUSE Enterprise Storage on ThunderXSUSE Enterprise Storage on ThunderX
SUSE Enterprise Storage on ThunderX
 
Introduction to TrioNAS LX U300
Introduction to TrioNAS LX U300Introduction to TrioNAS LX U300
Introduction to TrioNAS LX U300
 
ZFS Talk Part 1
ZFS Talk Part 1ZFS Talk Part 1
ZFS Talk Part 1
 
Build an affordable Cloud Stroage
Build an affordable Cloud StroageBuild an affordable Cloud Stroage
Build an affordable Cloud Stroage
 
ZFS in 30 minutes
ZFS in 30 minutesZFS in 30 minutes
ZFS in 30 minutes
 
Bluestore
BluestoreBluestore
Bluestore
 
Raid designs in Qsan Storage
Raid designs in Qsan StorageRaid designs in Qsan Storage
Raid designs in Qsan Storage
 
Backup with Bareos and ZFS - by Christian Reiß
Backup with Bareos and ZFS - by Christian ReißBackup with Bareos and ZFS - by Christian Reiß
Backup with Bareos and ZFS - by Christian Reiß
 
Scale2014
Scale2014Scale2014
Scale2014
 
Btrfs by Chris Mason
Btrfs by Chris MasonBtrfs by Chris Mason
Btrfs by Chris Mason
 
Ceph Day KL - Ceph on All-Flash Storage
Ceph Day KL - Ceph on All-Flash Storage Ceph Day KL - Ceph on All-Flash Storage
Ceph Day KL - Ceph on All-Flash Storage
 
Performance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networksPerformance comparison of Distributed File Systems on 1Gbit networks
Performance comparison of Distributed File Systems on 1Gbit networks
 
Free Bsd7.2 Install V1.7
Free Bsd7.2 Install V1.7Free Bsd7.2 Install V1.7
Free Bsd7.2 Install V1.7
 
了解Cpu
了解Cpu了解Cpu
了解Cpu
 
JetStor 8 series 16G FC 12G SAS units
JetStor 8 series 16G FC 12G SAS unitsJetStor 8 series 16G FC 12G SAS units
JetStor 8 series 16G FC 12G SAS units
 
ZFS Tutorial USENIX June 2009
ZFS  Tutorial  USENIX June 2009ZFS  Tutorial  USENIX June 2009
ZFS Tutorial USENIX June 2009
 

Destaque

Cities social issues
Cities social issuesCities social issues
Cities social issues
dwessler
 
Sheepdog: yet another all in-one storage for openstack
Sheepdog: yet another all in-one storage for openstackSheepdog: yet another all in-one storage for openstack
Sheepdog: yet another all in-one storage for openstack
Liu Yuan
 
Sheepdog- Google Webinar
Sheepdog- Google Webinar Sheepdog- Google Webinar
Sheepdog- Google Webinar
Sheepdog
 
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
B tree file system
B tree file systemB tree file system
B tree file system
Dinesh Gupta
 

Destaque (9)

Cities social issues
Cities social issuesCities social issues
Cities social issues
 
Sheepdog: yet another all in-one storage for openstack
Sheepdog: yet another all in-one storage for openstackSheepdog: yet another all in-one storage for openstack
Sheepdog: yet another all in-one storage for openstack
 
I can\'t believe this is butter - A Tour of btrfs
I can\'t believe this is butter - A Tour of btrfsI can\'t believe this is butter - A Tour of btrfs
I can\'t believe this is butter - A Tour of btrfs
 
Sheepdog- Google Webinar
Sheepdog- Google Webinar Sheepdog- Google Webinar
Sheepdog- Google Webinar
 
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
 
Btrfs: Design, Implementation and the Current Status
Btrfs: Design, Implementation and the Current StatusBtrfs: Design, Implementation and the Current Status
Btrfs: Design, Implementation and the Current Status
 
B tree file system
B tree file systemB tree file system
B tree file system
 
File System Comparison on Linux Ubuntu
File System Comparison on Linux UbuntuFile System Comparison on Linux Ubuntu
File System Comparison on Linux Ubuntu
 
Container Storage Best Practices in 2017
Container Storage Best Practices in 2017Container Storage Best Practices in 2017
Container Storage Best Practices in 2017
 

Semelhante a RAID, Replication, and You

Semelhante a RAID, Replication, and You (20)

Open Source Data Deduplication
Open Source Data DeduplicationOpen Source Data Deduplication
Open Source Data Deduplication
 
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
 
Day 2 General Session Presentations RedisConf
Day 2 General Session Presentations RedisConfDay 2 General Session Presentations RedisConf
Day 2 General Session Presentations RedisConf
 
Raid
Raid Raid
Raid
 
The overview of raid10
The overview of raid10The overview of raid10
The overview of raid10
 
The Smug Mug Tale
The Smug Mug TaleThe Smug Mug Tale
The Smug Mug Tale
 
RAID
RAIDRAID
RAID
 
Drobo products ppt
Drobo products pptDrobo products ppt
Drobo products ppt
 
Drobo range ppt v.1.6
Drobo range ppt v.1.6Drobo range ppt v.1.6
Drobo range ppt v.1.6
 
Database performance tuning for SSD based storage
Database  performance tuning for SSD based storageDatabase  performance tuning for SSD based storage
Database performance tuning for SSD based storage
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databases
 
Hdlogger project 2014.Aug
Hdlogger project 2014.AugHdlogger project 2014.Aug
Hdlogger project 2014.Aug
 
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefs
 
San presentation nov 2012 central pa
San presentation nov 2012 central paSan presentation nov 2012 central pa
San presentation nov 2012 central pa
 
Capistrano and SystemD
Capistrano and SystemDCapistrano and SystemD
Capistrano and SystemD
 
Capistrano && SystemD
Capistrano && SystemDCapistrano && SystemD
Capistrano && SystemD
 
Xen time machine
Xen time machineXen time machine
Xen time machine
 
Putting some "logic" in LVM.
Putting some "logic" in LVM.Putting some "logic" in LVM.
Putting some "logic" in LVM.
 
Batel f re v66
Batel f re v66Batel f re v66
Batel f re v66
 

Mais de Great Wide Open

Mais de Great Wide Open (20)

The Little Meetup That Could
The Little Meetup That CouldThe Little Meetup That Could
The Little Meetup That Could
 
Lightning Talk - 5 Hacks to Getting the Job of Your Dreams
Lightning Talk - 5 Hacks to Getting the Job of Your DreamsLightning Talk - 5 Hacks to Getting the Job of Your Dreams
Lightning Talk - 5 Hacks to Getting the Job of Your Dreams
 
Breaking Free from Proprietary Gravitational Pull
Breaking Free from Proprietary Gravitational PullBreaking Free from Proprietary Gravitational Pull
Breaking Free from Proprietary Gravitational Pull
 
Dealing with Unstructured Data: Scaling to Infinity
Dealing with Unstructured Data: Scaling to InfinityDealing with Unstructured Data: Scaling to Infinity
Dealing with Unstructured Data: Scaling to Infinity
 
You Don't Know Node: Quick Intro to 6 Core Features
You Don't Know Node: Quick Intro to 6 Core FeaturesYou Don't Know Node: Quick Intro to 6 Core Features
You Don't Know Node: Quick Intro to 6 Core Features
 
Hidden Features in HTTP
Hidden Features in HTTPHidden Features in HTTP
Hidden Features in HTTP
 
Using Cryptography Properly in Applications
Using Cryptography Properly in ApplicationsUsing Cryptography Properly in Applications
Using Cryptography Properly in Applications
 
Lightning Talk - Getting Students Involved In Open Source
Lightning Talk - Getting Students Involved In Open SourceLightning Talk - Getting Students Involved In Open Source
Lightning Talk - Getting Students Involved In Open Source
 
You have Selenium... Now what?
You have Selenium... Now what?You have Selenium... Now what?
You have Selenium... Now what?
 
How Constraints Cultivate Growth
How Constraints Cultivate GrowthHow Constraints Cultivate Growth
How Constraints Cultivate Growth
 
Inner Source 101
Inner Source 101Inner Source 101
Inner Source 101
 
Running MySQL on Linux
Running MySQL on LinuxRunning MySQL on Linux
Running MySQL on Linux
 
Search is the new UI
Search is the new UISearch is the new UI
Search is the new UI
 
Troubleshooting Hadoop: Distributed Debugging
Troubleshooting Hadoop: Distributed DebuggingTroubleshooting Hadoop: Distributed Debugging
Troubleshooting Hadoop: Distributed Debugging
 
The Current Messaging Landscape
The Current Messaging LandscapeThe Current Messaging Landscape
The Current Messaging Landscape
 
Apache httpd v2.4
Apache httpd v2.4Apache httpd v2.4
Apache httpd v2.4
 
Understanding Open Source Class 101
Understanding Open Source Class 101Understanding Open Source Class 101
Understanding Open Source Class 101
 
Thinking in Git
Thinking in GitThinking in Git
Thinking in Git
 
Antifragile Design
Antifragile DesignAntifragile Design
Antifragile Design
 
Elasticsearch for SQL Users
Elasticsearch for SQL UsersElasticsearch for SQL Users
Elasticsearch for SQL Users
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

RAID, Replication, and You

  • 1. RAID, Replication, and You data storage and safekeeping save it, keep it, serve it, back it up These slides are © 2014 Jim Salter, with license Creative Commons Attribution-ShareAlike 3.0 unported. http://creativecommons.org/licenses/by-sa/3.0/deed.en_US
  • 2. 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: http://jrs-s.net/presentations/raid-replication-you/
  • 3. RAID Subsystems Isn't that just a “hardware thing?” I heard “software RAID” sucks! GTFO, I need PERFORMANCE.
  • 4. Yes, Performance.1.4 GB/sec mixed R/W workload on commodity hardware... well OK! 1059.11059.1 MB/secMB/sec readread 351.9351.9 MB/secMB/sec writewrite
  • 5. Featuresoh, so many features ● Btrfs-raid1: n/2 redundancy over arbitrary size and number of devices THIS IS A REALLY AMAZINGLY BIG DEAL. (Microsoft ReFS can do this too) ● Atomic COW snapshots (lol) ● N-way diagonal parity RAID, n-way mirrors ● Per-file, per-folder, per-dataset feature granularity (compression, noCOW, etc) ● On-the-fly reconfiguration of RAID levels, size, rebalancing (btrfs only, another REALLY BIG DEAL kind of thing) ● Asynchronous incremental remote snapshot replication (Except ReFS, so GTFO ReFS. Sorry Microsoft)
  • 6. Why integrated?What can't hardware RAID do for me? Why not separate layers? ● Self-healing redundant arrays ● Stable, well-documented, reliable interface ● Stable, well-documented, configurable, reliable error detection and correction ● Commodity HW: performance++, price --
  • 8. Traditional RAID0 “Hey I'll just stripe across ALL the disks LOL”
  • 11. Traditional RAID5pros: storage efficiency cons: everything else Diagonal Parity RAID, 1 parity block
  • 12. Traditional RAID6pros: guaranteed two-drive failure survival cons: everything else Diagonal Parity RAID, 2 parity blocks
  • 13. Traditional RAID10RAID + RAID = moar RAID Survives ALL single disk failures Survives MOST two disk failures: (n-2)/(n-1) = 80% survival Very High Performance
  • 14. btrfs-raid1omg so awesome you guys =) So you have a bunch of drives...
  • 15. btrfs-raid1omg so awesome you guys =) obviously, btrfs-raid1 != RAID1
  • 16. btrfs-raid1omg so awesome you guys =) o hai expandability izzat you?
  • 17. btrfs-raid1omg so awesome you guys =) yes admin, expandability here
  • 18. btrfs-raid1omg so awesome you guys =) all full boss (well, mostly)
  • 19. Replicationyour backups suck. so much. lern 2 replicate ok
  • 20. WWW (^_^) What is “asynchronous filesystem replication”? Which filesystems can do this? Why is replication better than rsync?
  • 21. Whatdoes “asynchronous filesystem replication” mean? ● You take a snapshot, copy it, and apply it on another system ● Block-level replication ● Differential replication == awesome ● Doesn't directly know or care about files, folders, or anything else. This is a feature, not a bug!
  • 23. Whydo 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
  • 24. Why not rsync?rsync is an amazing tool, but... ● 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. Hello, system load! ● rsync can't handle snapshots, has trouble with hard links, doesn't know about subvolumes... ● You can rsync 1MB of changes in a 1TB file in about 10 hours. You can replicate them in < 10 seconds.
  • 25. Sounds good but... me@remotebackup:~$ grep zfsync /var/log/syslog.1 Mar 29 22:34:26 remotebackup zfsync[22852]: SUCCESS: Updated backup/images from @zfsync_remotebackup_2014-03-28:22:00:01 to @zfsync_remotebackup_2014-03-29:22:00:01 (2.2 GB transferred, 34m 25s elapsed) me@remotebackup:~$ du -hs /backup/images 2.0T /backup/images
  • 26. In a NutshellZFS replication looks like this... you@box1:~$ sudo zfs create zpool/filesystem you@box1:~$ [[put all your precious datas in the new filesystem]] you@box1:~$ sudo zfs snapshot zpool/filesystem@1 you@box2:~$ ssh root@box1 zfs send zpool/filesystem@1 | sudo zfs receive zpool/filesystem you@box1:~$ [[put more precious datas in the filesystem]] you@box1:~$ sudo zfs snapshot zpool/filesystem@2 you@box2:~$ sudo zfs rollback zpool/filesystem@1 you@box2:~$ ssh root@box1 zfs send -i zpool/filesystem@1 zpool/filesystem@2 | sudo zfs receive zpool/filesystem
  • 27. The Bottom Line What was once enterprise is now small business. If it can't protect my data, I don't want it. If it can't replicate off-site, I don't want it. Evolve, adapt, or die. ^_^ Today's slides can be found at: http://jrs-s.net/presentations/raid-replication-you/