This post documents the baseline hardware preparation, OS installation, and post-install tuning for a 4-node Dell PowerEdge R630 cluster built for Ceph.
Hardware & Capacity Overview
- Compute: 4 × identical Dell PowerEdge R630 servers (all nodes have matching hardware resources).
- Capacity Planning (N+1): Workloads are always planned strictly for 3 servers. The 4th server’s capacity is reserved solely to handle a single-server failure without degrading performance.
- Storage per node:
- 3 × 1 TB HDDs: Dedicated to boot and the operating system (configured in a 3-way Software RAID 1).
- SSDs & NVMe drives: Reserved exclusively as Ceph OSDs.
Pre-Installation Preparation
1. Wipe Existing Storage Metadata
Before starting the OS installation, remove all existing Volume Groups (VGs), Logical Volumes (LVs), and partition tables from every disk you plan to use, then reboot. This prevents installer conflicts and ensures Ceph receives clean raw block devices.
2. Switch PERC H730P to HBA Mode
Ceph is designed to manage raw disks directly rather than sitting on top of hardware RAID. Configure the Dell PERC H730P controller in BIOS (F2 → Device Settings → PERC H730P):
- Clear existing configs: Navigate to Configuration Management → Clear Configuration (also clear any Foreign Configuration if present).
- Enable HBA mode: Navigate to Controller Management → Advanced Controller Management → Switch to HBA Mode.
- Save changes and reboot.
Ubuntu 24.04 Installation
Boot the Ubuntu 24.04 Server installer and configure storage manually:
- Mark HDD 1 as Use As Boot Device, and mark HDD 2 and HDD 3 as Add As Another Boot Device.
- Create an unformatted partition using the remaining free space on all three HDDs.
- Create a Software RAID (
md) device:- RAID Level: RAID 1
- Devices: Select all 3 HDD partitions
- Format & Mount: Format
/dev/md0asext4and mount at/
- Leave all SSDs and NVMe drives completely untouched.
Post-Installation Configuration
1. Software RAID (mdadm) Tuning
Throttle RAID resync speeds so that a disk replacement and full array rebuild do not starve latency-sensitive services like ceph-mon:
cat <<EOF | sudo tee /etc/sysctl.d/99-mdadm.conf
dev.raid.speed_limit_min = 10000
dev.raid.speed_limit_max = 50000
EOF
sudo sysctl --system
Enable an internal write-intent bitmap to avoid full array resyncs after unexpected reboots:
sudo mdadm --detail /dev/md0 | grep -q "Intent Bitmap : Internal" || sudo mdadm --grow --bitmap=internal /dev/md0
Verify array health and sync status:
sudo mdadm --detail /dev/md0 | grep -E "State :|Rebuild|Resync|Active Devices"
2. Hostname, Timezone, and Base Updates
Set the node hostname, timezone, and apply initial OS updates:
sudo hostnamectl set-hostname serverxx.yourdomain.net
sudo timedatectl set-timezone Asia/Kolkata
sudo apt update -y
sudo apt upgrade -y
3. Disable Swap
Identify active swap units with systemctl list-units | grep swap, then stop, disable, and mask them:
sudo systemctl stop swap.img.swap swap.target
sudo systemctl disable swap.img.swap swap.target
sudo systemctl mask swap.img.swap swap.target
sudo swapoff -a
sudo rm -f /swap.img
Remove the swap entry from /etc/fstab so it is not re-mounted on reboot.
4. Disable Unnecessary Timers and Auto-Upgrades
To prevent unexpected background I/O or package updates on cluster nodes, stop, disable, and mask non-essential systemd timers (check sudo systemctl list-units | grep timer for your full list) and unattended-upgrades:
sudo systemctl stop apt-daily-upgrade.timer apt-daily.timer fwupd-refresh.timer motd-news.timer update-notifier-download.timer update-notifier-motd.timer
sudo systemctl disable apt-daily-upgrade.timer apt-daily.timer fwupd-refresh.timer motd-news.timer update-notifier-download.timer update-notifier-motd.timer
sudo systemctl mask apt-daily-upgrade.timer apt-daily.timer fwupd-refresh.timer motd-news.timer update-notifier-download.timer update-notifier-motd.timer
sudo systemctl stop unattended-upgrades.service
sudo systemctl disable unattended-upgrades.service
sudo systemctl mask unattended-upgrades.service
5. Clean Up SSH Login Noise
- In
/etc/pam.d/sshd, comment out the optionalpam_motdandpam_maillines. - In
/etc/default/motd-news, setENABLED=0.
6. Reduce Network Wait-Online Timeout
Prevent boot delays if an interface is down by capping systemd-networkd-wait-online at 10 seconds:
sudo systemctl edit systemd-networkd-wait-online.service
Add the following override:
[Service]
ExecStart=
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --timeout=10
7. DNS Resolution (systemd-resolved)
Update /etc/systemd/resolved.conf:
DNS=10.0.0.1
FallbackDNS=8.8.8.8
Domains=yourdomain.net
DNSStubListener=no
Restart the service:
sudo systemctl restart systemd-resolved
8. Journald Size Limit
In /etc/systemd/journald.conf, uncomment and set:
SystemMaxFileSize=256M
SystemMaxFiles=5
9. Increase Process and File Descriptor Limits
Add the following to /etc/security/limits.conf:
Plaintext
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
10. 40G NIC Kernel Tuning
Create /etc/sysctl.d/99-40g-tuning.conf:
cat <<EOF | sudo tee /etc/sysctl.d/99-40g-tuning.conf
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.core.netdev_max_backlog = 250000
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = cubic
EOF
sudo sysctl --system
11. Install Essential Utilities
sudo apt install -y net-tools iperf3 chrony