Skip to main content
XenonStack

DevOps

XenonStack Blog RAID Storage for Databases in the Public Cloud

| Published | Updated

RAID Storage for Databases in the Public Cloud
8:14

Key takeaway

  • RAID storage combines cloud disks for speed or redundancy. See RAID 0, 1, 5, 6 and 10, what AWS and MongoDB advise, and how to choose per database.

RAID storage combines several disks or cloud block volumes into one logical device so a database can get more speed, more capacity or protection from a disk failure, depending on the RAID level you choose. RAID stands for redundant array of independent disks, and no single level gives a database the best of every property.

This guide is for platform, DevOps and database engineers who run MySQL, MongoDB, Cassandra or Druid on persistent block storage in a public cloud. It covers what each RAID level does, what the cloud providers and database vendors say about them, how to choose per database, and how AI agents change the way you operate storage. For the wider database landscape, see our guides to databases and NoSQL databases.

What is RAID storage and why do databases use it?

Every persistent block storage service has limits on IOPS, throughput and size for the volume type you pick. When a database outgrows one volume, you can add servers, which raises cost, or combine volumes with RAID. Striping spreads reads and writes across volumes, and mirroring keeps copies, so RAID is a way to trade capacity and cost for speed or protection.

RAID is a storage-layer choice, not a replacement for backups or database replication. A mirrored volume still copies a deleted table to both sides.

What are the RAID levels used for cloud databases?

Four levels come up most often. The capacity and disk-count figures below are the standard definitions of each level; the failure and performance statements for RAID 0, 1, 5 and 6 on Amazon EBS come from the Amazon EBS RAID configuration guide.

LevelHow it worksMinimum disksUsable capacityMain trade-off
RAID 0Stripes data across disks2Sum of all disksFastest, but one lost volume loses the whole array
RAID 1Mirrors data between disks2Half of the raw spaceRedundancy, but no write speed gain
RAID 5 and 6Stripes data with parity3 and 4Raw space minus parityParity writes consume IOPS
RAID 10Mirrors pairs, then stripes across the pairs4Half of the raw spaceSpeed and redundancy at higher disk cost

The Amazon EBS guide says the size of a RAID 0 array is the sum of its volumes, and that performance of the stripe is limited to the worst performing volume in the set. It does not recommend RAID 1 because data is written to multiple volumes at once, which needs more EC2 to EBS bandwidth and gives no write improvement.

What do cloud providers say about RAID on block storage?

The Amazon EBS guide says RAID 5 and RAID 6 are not recommended because parity writes consume some of the IOPS available to your volumes, and that depending on the configuration these modes provide 20 to 30 percent fewer usable IOPS than RAID 0. It recommends RAID 0 when I/O performance is of the utmost importance.

The same guide notes that Amazon EBS volume data is already replicated across multiple servers in an Availability Zone, which it says makes the volumes ten times more reliable than typical commodity disk drives. That replication is separate from RAID and does not protect a RAID 0 stripe from losing a single volume. The guide also advises avoiding booting from a RAID volume, and warns that snapshots of RAID members are created independently, so you must make sure they are consistent before you restore.

Azure and Google Cloud have their own disk guidance. Read the current storage documentation for your provider before copying a layout, because disk types and limits change.

Which RAID level fits which database?

The right level depends on whether the database already replicates data across nodes. The table separates what a vendor states from the reasoning to apply.

DatabaseGuidanceBasis
MongoDBUse disks backed by RAID-10; RAID-5 and RAID-6 do not typically give enough performanceMongoDB production notes
MySQL (single node)RAID 10 for speed and redundancy, RAID 1 if only redundancy mattersEngineering judgement, confirm in your MySQL documentation
CassandraBecause it keeps copies on several nodes, a large cluster can tolerate a failed disk; small clusters may want RAID 1 or 10Engineering judgement, confirm in the Cassandra documentation
DruidMatch the level to the role: local deep storage on a single node differs from HDFS or S3 backed deep storageEngineering judgement, confirm in the Druid documentation

Notice the tension: the MongoDB notes point to RAID-10, while the Amazon EBS guide does not mention RAID 10 and advises against RAID 1. Benchmark your own workload on your own volume type before you commit, and count the extra disk cost that mirroring brings.

How do you choose a RAID level for a cloud database?

Ask four questions in order. Does the database already replicate data across nodes? What is the cost of losing a node compared with losing a disk? Is the bottleneck IOPS, throughput or capacity? Can the team restore from consistent snapshots? A replicated cluster with fast rebuilds can accept striping per node, while a single critical node usually needs redundancy as well as speed. When in doubt, use the simplest layout that meets your recovery target, because each extra layer is one more thing to monitor.

Two-column diagram. Inputs: volume limits, replication, failure cost, vendor guidance. Decisions: striping, mirroring, mirror and stripe, benchmark and test.

How do AI agents change storage operations?

Storage layouts are usually chosen once and revisited only after an incident. AI agents can watch I/O wait, queue depth and volume health, compare them with the layout you chose, and raise a change request with the evidence attached. The decision to rebuild an array or move data should still pass through a human approval and a recorded policy. ElixirClaw, the AI agents computing platform, is where XenonStack builds and runs agents of this kind.

What should you do first?

  1. Record the volume type, IOPS and throughput limits your database actually uses today.
  2. Check whether the database already replicates data across nodes.
  3. Read your database vendor and cloud provider RAID guidance, and note where they disagree.
  4. Benchmark two candidate layouts with a realistic workload before production.
  5. Test a snapshot restore and a failed-disk replacement, then write the runbook.

To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

XenonStack also offers Managed Cloud Services and DevOps Consulting Services and Solutions for teams that want help with database and storage design.

Frequently asked questions

What does RAID stand for?

RAID stands for redundant array of independent disks. It combines several disks or volumes into one logical unit to improve performance, fault tolerance or capacity.

Is RAID 0 safe for a database?

Not on its own. The Amazon EBS guide says the loss of a single volume in a RAID 0 set results in complete data loss for the array, so it suits workloads where the data is replicated elsewhere.

Should I use RAID 5 or RAID 6 on cloud block storage?

The Amazon EBS guide does not recommend them, because parity writes consume some of the IOPS available to the volumes. The MongoDB production notes also say RAID-5 and RAID-6 do not typically provide sufficient performance for a MongoDB deployment.

Do cloud block volumes already have redundancy?

Amazon EBS volume data is replicated across multiple servers in an Availability Zone to prevent data loss from the failure of a single component, according to the Amazon EBS guide. RAID adds a separate layer on top, so decide whether you need it for performance, capacity or your own failure rules.

Which RAID level does MongoDB recommend?

The MongoDB production notes say that for optimal storage-layer performance you should use disks backed by RAID-10.

Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.

Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue