What is a two-drive mirror?
RAID 1 pairs two drives of the same size and keeps them identical. Each write goes to both; each read can be served by either. If one drive dies, the other holds a complete copy and the system carries on. Usable space is the size of one drive: two 1 TB NVMe drives in a mirror give 1 TB, not 2 TB. You trade half the raw space for the ability to survive a drive failure without restoring from backup.
A mirror is not a backup. A deleted file, a bad migration or ransomware is mirrored to both drives instantly. Keep copies off the machine as well; a second machine in another city is a common choice.
Which CheapDedicated machines have two drives?
Most of the list has two matching drives. A handful have a single data drive, which suits stateless jobs or setups where data is replicated elsewhere.
| Layout | Examples | Mirror capacity |
|---|---|---|
| 2x 240 GB SSD | E1, $30.52/mo | 240 GB |
| 1x 480 GB SSD | E2, $38.32/mo | single drive, no mirror |
| 1x 1 TB NVMe | S1, S2, S4, S8 | single drive, no mirror |
| 2x 1 TB NVMe | S3, S5, S6, D1 | 1 TB |
| 2x 2 TB NVMe | S11, S13, D5 | 2 TB |
| 2x 4 TB NVMe | S12, S14, M1 | 4 TB |
The cheapest two-drive NVMe machine is the S3 at $80.38 a month with Intel Xeon E-2356G and 64 GB DDR4.
Is the mirror set up when the machine arrives?
The drives are installed in the machine and the operating system image is installed on them; how the image lays out the disks can differ by system. Check right after your first login, and if you want a mirror and do not see one, build it yourself before you put data on the machine. Two commands tell you what you have:
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT # drives, partitions, md devices cat /proc/mdstat # software RAID status, if any
If /proc/mdstat shows an md device with [UU], both halves of the mirror are healthy. [U_] means one half is missing or failed.
How do I build a mirror for a data volume with mdadm?
The simplest pattern on a two-drive machine is to keep the system where the image put it and mirror a data partition across both drives. With a free partition of the same size on each drive (shown here as nvme0n1p4 and nvme1n1p4):
apt install mdadm # or: dnf install mdadm mdadm --create /dev/md10 --level=1 --raid-devices=2 /dev/nvme0n1p4 /dev/nvme1n1p4 mkfs.ext4 /dev/md10 mkdir -p /data && mount /dev/md10 /data mdadm --detail --scan >> /etc/mdadm/mdadm.conf # /etc/mdadm.conf on RHEL family update-initramfs -u # dracut -f on RHEL family
Add the array to /etc/fstab by UUID so it mounts at boot. The first sync copies one drive onto the other in the background; cat /proc/mdstat shows its progress. Mirroring the whole system, boot partitions included, is possible too, but it is easier to do from a fresh reinstall than on a machine that already holds data.
What about ZFS?
On FreeBSD, and on Linux with ZFS installed, a mirror is one command: zpool create data mirror DISK1 DISK2. ZFS adds checksums on every block, so it can detect silent corruption and repair it from the good copy. It likes memory, and the 64 GB or more on every single-CPU model is plenty.
How do I know when a drive fails?
- Have mdadm mail or log alerts:
mdadm --monitor --scan --daemoniseis enabled by the package on most systems. - Read drive health with
smartctl -a /dev/nvme0(package smartmontools); watch "Percentage Used" and media errors. - If a drive fails, open a ticket with the serial from smartctl. After the replacement, add the new partition back with
mdadm --manage /dev/md10 --addand the mirror rebuilds.
A rebuild reads one full drive. At NVMe speeds of a few GB per second, a 1 TB mirror resyncs in well under an hour on an idle machine; it takes longer while the server is busy, because mdadm yields to normal traffic.
Two-Drive Machines Ready for a Mirror
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E1 | Intel Xeon E3-1240 v3 | 4 / 8 | 16 GB DDR3 | 2x 240 GB SSD | 2x 1 Gbps | $30.52 | $91.56 (3 months) |
| S3 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $80.38 | $80.38 (1 month) |
| S5 | Intel Xeon E-2276G | 6 / 12 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $88.72 | $88.72 (1 month) |
| S11 | Intel Core i9-14900K | 24 / 32 | 128 GB DDR5 | 2x 2 TB NVMe | 2x 10 Gbps | $149.39 | $149.39 (1 month) |
| S13 | AMD EPYC 4345P | 8 / 16 | 128 GB DDR5 | 2x 2 TB NVMe | 2x 25 Gbps | $237.92 | $237.92 (1 month) |
| D1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 25 Gbps | $202.94 | $202.94 (1 month) |
FAQ
Quick Answers
The size of one drive. Two 1 TB NVMe drives in a mirror give about 1 TB of usable space.
E2 (1x 480 GB SSD) and S1, S2, S4 and S8 (1x 1 TB NVMe each).
The image is installed on the drives as that system lays them out. Check with cat /proc/mdstat after your first login and build a mirror with mdadm if you want one.
No. Deletions and corruption are copied to both drives at once. Keep backups on another machine or another city.
The S3 at $80.38 a month, with an Intel Xeon E-2356G, 64 GB of DDR4 and 2x 1 TB NVMe.
The mirror keeps running on the other drive. Open a ticket for a replacement, then add the new drive back to the array to rebuild.