Glossary

Two-Drive Mirror (RAID 1)

A two-drive mirror, RAID 1, writes every block to two disks at once, so the machine keeps running and keeps its data if one disk fails.

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.

LayoutExamplesMirror capacity
2x 240 GB SSDE1, $30.52/mo240 GB
1x 480 GB SSDE2, $38.32/mosingle drive, no mirror
1x 1 TB NVMeS1, S2, S4, S8single drive, no mirror
2x 1 TB NVMeS3, S5, S6, D11 TB
2x 2 TB NVMeS11, S13, D52 TB
2x 4 TB NVMeS12, S14, M14 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 --daemonise is 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 --add and 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

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
S3Intel Xeon E-2356G6 / 1264 GB DDR42x 1 TB NVMe2x 10 Gbps$80.38$80.38 (1 month)
S5Intel Xeon E-2276G6 / 12128 GB DDR42x 1 TB NVMe2x 10 Gbps$88.72$88.72 (1 month)
S11Intel Core i9-14900K24 / 32128 GB DDR52x 2 TB NVMe2x 10 Gbps$149.39$149.39 (1 month)
S13AMD EPYC 4345P8 / 16128 GB DDR52x 2 TB NVMe2x 25 Gbps$237.92$237.92 (1 month)
D12x Intel Xeon Gold 5315Y16 / 32128 GB DDR42x 1 TB NVMe2x 25 Gbps$202.94$202.94 (1 month)

Keep Reading

SSH keys

How SSH key pairs replace passwords, how to make an ed25519 key and how to have it placed on your machine at install time.

Open

Outbound traffic allowance

How the 15 TB monthly egress allowance works, what it means per day and per second, and why inbound data costs nothing.

Open

Single CPU servers

High clocks, NVMe, 10 to 25 Gbps, from $53.32 a month.

Open

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.