Migrating CloudLinux and cPanel from a Single NVMe SSD to RAID1 Without Reinstalling

A real-world migration of a production CloudLinux cPanel server from a failing NVMe SSD to software RAID1, including rsync, dracut, GRUB troubleshooting and degraded RAID recovery.

Share
Illustration of a single NVMe SSD migrating to two mirrored RAID1 drives on a CloudLinux and cPanel server without reinstalling the operating system, featuring ShellSecrets branding.

Migrating CloudLinux and cPanel from a Single NVMe SSD to RAID1 Without Reinstalling

A failing SSD on a production hosting server is not something you want to discover after it stops responding.

Recently, I encountered an NVMe SSD that had consumed 173% of its estimated endurance and was reporting a SMART failure. The server was running CloudLinux, cPanel, LiteSpeed and MariaDB, making a complete operating system reinstallation an inconvenient option.

Instead of reinstalling everything and restoring hosting accounts individually, I migrated the existing operating system to a degraded software RAID1 array using an additional NVMe SSD.

The migration worked, but there was an unexpected problem: despite installing GRUB on the new SSD, the server continued booting from the original disk.

In this article, I'll walk through the migration process, the challenges encountered, and how I eventually booted the server from RAID1 without reinstalling CloudLinux or cPanel.

The server environment

The server had the following configuration:

Component Configuration
Operating system CloudLinux 8.10
Control panel cPanel/WHM
Web server LiteSpeed
Database MariaDB
Boot mode Legacy BIOS
Partition table DOS/MBR
Filesystem EXT4
Software RAID mdadm
OS storage 1 TB NVMe SSD
Additional storage 1 TB NVMe SSD
Home storage Two 2 TB NVMe SSDs in RAID1

The existing /home RAID1 array was healthy and would remain untouched throughout the migration.

Identifying the failing SSD

The condition of the original NVMe SSD was confirmed using smartctl.

smartctl -x /dev/nvme0n1

The important parts of the SMART report were:

SMART overall-health self-assessment test result: FAILED!
- NVM subsystem reliability has been degraded

Critical Warning:                   0x04
Available Spare:                    100%
Percentage Used:                    173%
Data Units Written:                 515 TB
Data Units Read:                    2.16 PB
Power On Hours:                     25,143
Media and Data Integrity Errors:    0

Despite reporting zero media and data integrity errors, the SSD had exceeded its estimated endurance and its controller was explicitly reporting degraded reliability.

This is a good example of why SSD health should not be evaluated solely by available spare capacity or media errors.

The drive was still operational, which provided an opportunity to migrate the system before a complete failure.

Planning the migration

The original operating system used separate partitions for root, boot, swap and temporary storage.

For the new RAID configuration, I wanted a simpler layout.

Mount point Original configuration New configuration
/ Dedicated partition RAID1
/boot Dedicated partition RAID1
/var/tmp Dedicated temporary storage Managed by the OS/cPanel
Swap Dedicated partition Swapfile
/home Existing RAID1 Unchanged

The new operating system disk would contain only two partitions: a 1 GiB boot partition and a root partition occupying the remaining space.

The migration strategy was to create RAID1 arrays with one missing member, migrate the operating system, verify that everything worked, and eventually add the replacement SSD as the second RAID member.

This allowed the original operating system to remain available as a fallback during the migration.

A degraded RAID1 array provides no redundancy until the second member is added. Always maintain independent backups before performing storage migrations.

1. Boot into rescue mode

Performing the initial migration from a rescue environment ensures that databases, mail servers and other applications are not actively modifying the source filesystem.

After booting into rescue mode, identify all physical disks and existing RAID arrays.

lsblk -o NAME,SIZE,FSTYPE,UUID,MOUNTPOINT,SERIAL
cat /proc/mdstat
blkid

One important detail I encountered was that NVMe device names changed between the rescue environment and the installed operating system.

A disk identified as /dev/nvme0n1 in the running operating system appeared as /dev/nvme2n1 in rescue mode.

Never assume that a device name identifies the same physical disk after a reboot. Verify its serial number before performing partitioning, formatting or bootloader operations.

Use tmux for long-running operations

Before starting the migration, I recommend opening a persistent terminal session using tmux.

tmux new -s raid-migration

Large rsync operations, filesystem checks and checksum comparisons can take hours. Running them inside an ordinary SSH session introduces an unnecessary risk if your internet connection drops or your terminal closes unexpectedly.

To detach from the session, press Ctrl+B, followed by D.

Reconnect whenever necessary:

tmux attach -t raid-migration

List existing sessions with:

tmux ls

The commands continue running on the server even if your SSH connection is interrupted.

Keep in mind that tmux protects against client-side disconnections, not server reboots or power failures.

2. Partition the new NVMe SSD

In my rescue environment, the additional SSD was identified as /dev/nvme3n1.

Since the server used Legacy BIOS, I retained the MBR partition table and left a 1 MiB alignment gap before the first partition for GRUB embedding.

Warning: The following commands destroy the partition table on the selected disk. Verify that you are targeting the unused destination SSD.

parted -s /dev/nvme3n1 mklabel msdos

parted -s /dev/nvme3n1 mkpart primary 1MiB 1025MiB

parted -s /dev/nvme3n1 mkpart primary 1025MiB 100%

parted -s /dev/nvme3n1 set 1 boot on

partprobe /dev/nvme3n1

Verify the resulting partition layout:

lsblk /dev/nvme3n1

The disk should now contain a 1 GiB boot partition and a second partition using the remaining space.

3. Create degraded RAID1 arrays

Using mdadm, it is possible to create a RAID1 array with only one physical member by specifying missing for the second device.

Create the boot array:

mdadm --create /dev/md/boot \
    --level=1 \
    --raid-devices=2 \
    --metadata=1.0 \
    /dev/nvme3n1p1 missing

Create the root array:

mdadm --create /dev/md/root \
    --level=1 \
    --raid-devices=2 \
    --metadata=1.2 \
    /dev/nvme3n1p2 missing

I used metadata version 1.0 for /boot and version 1.2 for the root filesystem.

Format both arrays:

mkfs.ext4 -L boot /dev/md/boot
mkfs.ext4 -L sysroot /dev/md/root

Check the RAID status:

cat /proc/mdstat

The resulting configuration looked like this:

md126 : active raid1 nvme3n1p2[0]
      999022592 blocks super 1.2 [2/1] [U_]

md127 : active raid1 nvme3n1p1[0]
      1048512 blocks super 1.0 [2/1] [U_]

md0 : active raid1 nvme0n1[2] nvme1n1[1]
      2000266560 blocks super 1.2 [2/2] [UU]

The [U_] status indicates that the new arrays are operating with one missing member. This is intentional.

The existing /home array remains healthy with [UU].

4. Mount and migrate the operating system

Create temporary mount points:

mkdir -p /mnt/{oldroot,newroot,oldboot}

After verifying the source filesystem UUIDs and ensuring the original system was shut down cleanly, mount the original root and boot filesystems read-only.

mount -o ro UUID=<OLD_ROOT_UUID> /mnt/oldroot

mount -o ro UUID=<OLD_BOOT_UUID> /mnt/oldboot

Mount the new RAID filesystems:

mount /dev/md/root /mnt/newroot

mkdir -p /mnt/newroot/boot

mount /dev/md/boot /mnt/newroot/boot

Verify the mounts before proceeding:

findmnt -R /mnt

Rather than cloning the entire disk using dd, I used rsync. This provided the flexibility to change the partition layout while preserving the existing operating system.

rsync -aHAXSx --numeric-ids \
    --info=progress2 --stats \
    --exclude='/boot/*' \
    --exclude='/home/*' \
    --exclude='/proc/*' \
    --exclude='/sys/*' \
    --exclude='/dev/*' \
    --exclude='/run/*' \
    --exclude='/tmp/*' \
    --exclude='/var/tmp/*' \
    --exclude='/mnt/*' \
    --exclude='/lost+found' \
    /mnt/oldroot/ /mnt/newroot/

The important rsync options are:

Option Purpose
-a Preserve ownership, permissions and timestamps
-H Preserve hard links
-A Preserve ACLs
-X Preserve extended attributes
-S Preserve sparse files efficiently
-x Avoid crossing filesystem boundaries
--numeric-ids Preserve numeric user and group IDs

These attributes are particularly important on a cPanel server, where incorrect ownership or permissions can break hosting accounts and applications.

Synchronize the boot filesystem separately:

rsync -aHAXS --numeric-ids \
    --info=progress2 --stats \
    /mnt/oldboot/ /mnt/newroot/boot/

Prepare the temporary directories:

mkdir -p /mnt/newroot/{tmp,var/tmp}

chmod 1777 /mnt/newroot/tmp
chmod 1777 /mnt/newroot/var/tmp

If persistent application data exists in the original temporary filesystem, migrate it selectively. Avoid blindly restoring old sockets, PID files and process locks.

The existing /home array does not need to be copied because the migrated operating system will mount it directly.

5. Configure fstab and replace the swap partition

Obtain the filesystem UUIDs:

blkid

Edit the migrated system's fstab:

vim /mnt/newroot/etc/fstab

The new configuration follows this structure:

proc /proc proc defaults 0 0

UUID=<NEW_ROOT_UUID> / ext4 usrjquota=quota.user,jqfmt=vfsv1 0 1

UUID=<NEW_BOOT_UUID> /boot ext4 defaults 0 2

UUID=<EXISTING_HOME_UUID> /home ext4 usrjquota=quota.user,jqfmt=vfsv1 0 2

/swapfile none swap defaults 0 0

Preserve the existing filesystem quota options required by cPanel.

Instead of creating another dedicated swap partition, I created a 32 GiB swapfile on the new root filesystem.

dd if=/dev/zero \
    of=/mnt/newroot/swapfile \
    bs=1M count=32768 \
    status=progress
chmod 600 /mnt/newroot/swapfile

mkswap /mnt/newroot/swapfile

Using a swapfile simplifies the partition layout and makes future swap resizing easier.

The old swap and temporary filesystem entries are no longer needed in fstab.

6. Configure mdadm and rebuild initramfs

Retrieve the RAID array UUIDs:

mdadm --detail --scan

Configure /mnt/newroot/etc/mdadm.conf:

DEVICE partitions

ARRAY /dev/md/boot metadata=1.0 UUID=<BOOT_RAID_UUID>
ARRAY /dev/md/root metadata=1.2 UUID=<ROOT_RAID_UUID>
ARRAY /dev/md/home metadata=1.2 UUID=<HOME_RAID_UUID>

Remember that RAID UUIDs and filesystem UUIDs are different. The former identify mdadm arrays, while the latter identify filesystems used by fstab and the kernel root parameter.

Prepare the chroot environment:

for dir in dev proc sys run; do
    mount --rbind /$dir /mnt/newroot/$dir
    mount --make-rslave /mnt/newroot/$dir
done

Enter the migrated operating system:

chroot /mnt/newroot /bin/bash

The initramfs must contain the necessary RAID and NVMe support to assemble the root array during early boot.

Review the existing configuration under:

/etc/dracut.conf.d/

The relevant configuration in my environment was:

add_dracutmodules+=" lvm mdraid "
add_drivers+=" raid0 raid1 raid10 raid456 nvme nvme_core "

hostonly="no"
hostonly_cmdline="no"

lvmconf="yes"
mdadmconf="yes"
persistent_policy="by-uuid"

One issue I encountered was that explicitly adding md_mod caused dracut to fail. Removing that explicit driver reference resolved the problem.

Identify the installed kernel:

ls /lib/modules/

Rebuild its initramfs:

KVER=4.18.0-553.121.1.lve.el8.x86_64

dracut --force \
    /boot/initramfs-${KVER}.img \
    "$KVER"

Replace the kernel version with the one installed on your server.

Avoid using uname -r blindly inside a rescue chroot because it reports the currently running rescue kernel.

7. Configure and install GRUB

CloudLinux 8 uses GRUB2 with Boot Loader Specification (BLS) entries.

Before installing GRUB, ensure that the kernel root parameter references the new RAID root filesystem rather than the original standalone partition.

Review:

cat /etc/default/grub

grubby --info=ALL

grub2-editenv /boot/grub2/grubenv list

For example, the kernel options should reference:

root=UUID=<NEW_ROOT_UUID>

If the old root UUID is still present, update the kernel entries while preserving the remaining CloudLinux-specific kernel arguments.

grubby --update-kernel=ALL \
    --remove-args="root=UUID=<OLD_ROOT_UUID>" \
    --args="root=UUID=<NEW_ROOT_UUID>"

Since this server used Legacy BIOS, GRUB was installed directly onto the new physical SSD.

grub2-install --target=i386-pc --recheck \
    --modules="part_msdos diskfilter mdraid1x ext2" \
    /dev/nvme3n1

Generate the GRUB configuration:

grub2-mkconfig -o /boot/grub2/grub.cfg

Check its syntax:

grub2-script-check /boot/grub2/grub.cfg

Verify that GRUB recognizes the RAID boot filesystem:

grub2-probe --target=abstraction /boot

grub2-probe --target=fs_uuid /boot

grubby --info=DEFAULT

After verifying the configuration, exit the chroot, synchronize pending writes and cleanly unmount the migration filesystems before rebooting.

At this point, everything appeared ready.

Or so I thought.

8. The unexpected problem: the server booted from the old SSD

After rebooting, the server came online successfully. SSH was accessible, and the operating system appeared to be working normally.

However, checking the mounted filesystems revealed that the server was still running from the original SSD.

findmnt -no SOURCE,UUID /

findmnt -no SOURCE,UUID /boot

The new RAID arrays had assembled successfully, but neither was being used as the active operating system filesystem.

The problem was not mdadm, rsync or filesystem corruption.

The BIOS was still selecting the original SSD's bootloader.

Installing GRUB on another disk does not automatically change the BIOS boot priority. A server can continue booting from its original disk even when another disk contains a correctly configured operating system.

This is why a successful reboot should never be considered sufficient proof of a successful storage migration.

Always verify the actual root filesystem.

9. Booting RAID1 using a custom GRUB migration entry

Instead of immediately changing the BIOS boot order through a remote console, I used the original SSD's working GRUB installation to load the kernel and initramfs from the new RAID boot filesystem.

The temporary boot process would look like this:

BIOS
  |
  +-- Original SSD GRUB
        |
        +-- RAID migration entry
              |
              +-- Kernel and initramfs from RAID /boot
                    |
                    +-- RAID root filesystem

On the original operating system, back up the existing GRUB configuration:

cp -a /etc/grub.d/40_custom /etc/grub.d/40_custom.bak

cp -a /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak

cp -a /boot/grub2/grubenv /boot/grub2/grubenv.bak

Edit:

vim /etc/grub.d/40_custom

Append the following custom menu entry without removing the existing script header:

menuentry 'CloudLinux RAID1 Migration' --id raid-migration {
    insmod part_msdos
    insmod diskfilter
    insmod mdraid1x
    insmod ext2

    search --no-floppy --fs-uuid --set=root <NEW_BOOT_UUID>

    linux16 /vmlinuz-4.18.0-553.121.1.lve.el8.x86_64 root=UUID=<NEW_ROOT_UUID> ro biosdevname=0 rd.auto=1 consoleblank=0 crashkernel=auto cgroup.memory=nokmem systemd.unified_cgroup_hierarchy=0 systemd.legacy_systemd_cgroup_controller

    initrd16 /initramfs-4.18.0-553.121.1.lve.el8.x86_64.img
}

Replace the filesystem UUIDs and kernel version with the actual values from your environment.

The kernel arguments shown here were specific to my CloudLinux installation. Preserve the arguments required by your own system.

Regenerate the original GRUB configuration:

grub2-mkconfig -o /boot/grub2/grub.cfg

grub2-script-check /boot/grub2/grub.cfg

This is not traditional GRUB chainloading. The original bootloader directly loads the kernel and initramfs from the RAID filesystem.

It provides a useful temporary workaround when the BIOS continues selecting the original disk.

10. Perform the final synchronization

Because the server had booted back into the original operating system, production data could have changed since the initial migration.

Another synchronization was necessary before switching to RAID.

I initially attempted a checksum-based rsync from the running operating system, but it was considerably slower than expected. The server was still dealing with production workloads, and checksum verification required reading files from both storage devices.

Returning to rescue mode provided a cleaner environment for the final synchronization.

Once the original and new filesystems were mounted again, I prepared an exclusion file to protect the RAID-specific configuration.

cat > /root/raid-migration.exclude <<'EOF'
/boot/*
/home/*
/proc/*
/sys/*
/dev/*
/run/*
/tmp/*
/var/tmp/*
/mnt/*
/lost+found
/swapfile
/etc/fstab
/etc/mdadm.conf
/etc/default/grub
/etc/dracut.conf.d/
/etc/grub.d/
/root/raid-migration.exclude
EOF

Run a dry run first:

rsync -aHAXSxn --numeric-ids \
    --delete \
    --exclude-from=/root/raid-migration.exclude \
    --itemize-changes --stats \
    /mnt/oldroot/ /mnt/newroot/

Review the proposed changes carefully, especially deletions.

Then perform the final incremental synchronization:

rsync -aHAXSx --numeric-ids \
    --delete \
    --exclude-from=/root/raid-migration.exclude \
    --info=progress2 --stats \
    /mnt/oldroot/ /mnt/newroot/

Check the exit status immediately afterward:

echo $?

An exit status of 0 indicates successful completion.

For databases that were previously copied while services were running, checksum-based offline synchronization is particularly important.

For example, with the standard MariaDB data directory:

rsync -aHAXSxc --numeric-ids \
    --delete --info=progress2 --stats \
    /mnt/oldroot/var/lib/mysql/ \
    /mnt/newroot/var/lib/mysql/

Apply equivalent verification to other database directories and application data stores.

A complete offline checksum comparison provides stronger assurance than relying only on file sizes and modification timestamps.

Also verify that no kernel updates occurred on the original system between synchronization passes. The migrated kernel, its modules and initramfs must remain consistent.

And, of course, keep these long-running operations inside tmux.

11. Schedule a one-time RAID boot from rescue mode

The custom GRUB entry was ready, but there was another small complication.

The rescue environment did not recognize the CloudLinux GRUB utility:

-bash: grub2-editenv: command not found

Instead of installing additional packages into the rescue environment, I used the original operating system's GRUB utility through chroot.

Mount the original boot filesystem read-write inside the original root filesystem:

umount /mnt/oldboot

mount -o rw UUID=<OLD_BOOT_UUID> /mnt/oldroot/boot

The original root filesystem can remain read-only.

Schedule the custom entry:

chroot /mnt/oldroot /usr/bin/grub2-editenv \
    /boot/grub2/grubenv set next_entry=raid-migration

Verify it:

chroot /mnt/oldroot /usr/bin/grub2-editenv \
    /boot/grub2/grubenv list

The output should include:

next_entry=raid-migration

This performs the GRUB environment change normally handled by:

grub2-reboot raid-migration

The advantage of a one-time boot entry is that the original default boot configuration remains available.

It does not, however, automatically recover a server that hangs during boot. Remote console or rescue access should still be available.

After cleanly unmounting the filesystems and ensuring the server would boot from its local storage rather than rescue mode, I rebooted.

12. Finally booting from RAID1

This time, the server booted into the migrated operating system.

Verification was straightforward:

findmnt -no SOURCE,UUID /

findmnt -no SOURCE,UUID /boot

findmnt -no SOURCE,UUID /home

cat /proc/mdstat

lsblk

swapon --show

The resulting storage layout looked like this:

nvme2n1
├─nvme2n1p1
│ └─md127       /boot
└─nvme2n1p2
  └─md126       /

nvme1n1
└─md0           /home

nvme3n1
└─md0           /home

Both / and /boot were now running from the new RAID arrays, while the existing home storage remained unchanged.

None of the original SSD's partitions were mounted.

The operating system migration had succeeded without reinstalling CloudLinux or cPanel.

13. Post-migration checks and service troubleshooting

Booting successfully is only part of a production server migration. Application availability is equally important.

Check for failed systemd services:

systemctl --failed

Verify critical hosting services:

systemctl is-active \
    cpanel mariadb lshttpd exim dovecot pdns

In my case, MariaDB, cPanel, mail and DNS services were already running, but several other services required attention.

These included:

  • LiteSpeed
  • cPanel PHP-FPM
  • cPanel Greylisting
  • mdadm monitoring
  • OSSEC

LiteSpeed startup timeout

LiteSpeed initially started successfully but failed during a subsequent restart.

The systemd journal revealed leftover processes and a missing PID file:

Found left-over process (litespeed) in control group

Can't open PID file /var/run/lshttpd.pid

start operation timed out

This pointed toward a process lifecycle problem rather than a direct RAID failure.

The troubleshooting approach was to stop LiteSpeed completely, inspect remaining processes, check temporary directory permissions and remove stale PID files only after confirming the relevant processes had terminated.

systemctl stop lshttpd

/usr/local/lsws/bin/lswsctrl stop

Inspect remaining processes:

pgrep -a -x litespeed

pgrep -a -x lscgid

Once all relevant processes have stopped:

rm -f /var/run/lshttpd.pid

rm -f /tmp/lshttpd/lshttpd.pid

systemctl reset-failed lshttpd

systemctl start lshttpd

Review the service status and logs:

systemctl status lshttpd -l --no-pager

journalctl -u lshttpd -b -n 50 --no-pager

Temporary filesystems and cPanel

Removing the dedicated temporary storage partition also requires attention to cPanel's securetmp mechanism and CloudLinux CageFS.

In my migrated environment, a 4 GiB loop-backed temporary filesystem appeared after boot.

Check the actual mount configuration and permissions:

findmnt /tmp

findmnt /var/tmp

ls -ld /tmp /var/tmp

Temporary directories should have the appropriate sticky-bit permissions, normally 1777, and any required security-related mount options should be preserved.

For mdadm monitoring failures, inspect the service logs and verify that /etc/mdadm.conf contains an appropriate monitoring notification configuration.

Finally, test websites, database connections, email delivery, account quotas, backups and WHM functionality.

14. Preparing for removal of the defective SSD

There is an important distinction between booting an operating system from RAID and booting independently from a RAID member.

Although the operating system was now running from RAID1, the temporary raid-migration entry had been stored on the original SSD.

Removing that SSD would also remove the original GRUB installation and its custom entry.

Therefore, the new RAID SSD must have a functional independent bootloader before the defective drive is physically removed.

From the running RAID system, verify the physical disk identity again:

lsblk -d -o NAME,SIZE,MODEL,SERIAL

Install GRUB directly onto the healthy operating system SSD:

grub2-install --target=i386-pc --recheck \
    --modules="part_msdos diskfilter mdraid1x ext2" \
    /dev/nvme2n1

Regenerate and verify the native configuration:

grub2-mkconfig -o /boot/grub2/grub.cfg

grub2-script-check /boot/grub2/grub.cfg

grub2-editenv /boot/grub2/grubenv list

grubby --info=DEFAULT

The definitive test is to select the new RAID SSD directly from the BIOS boot menu, ideally with the original SSD temporarily disabled or disconnected.

Once independent bootability is confirmed, the defective SSD can be replaced with a blank drive.

The replacement does not need an operating system installed because the existing degraded RAID arrays already contain the migrated system.

15. Completing RAID1 after SSD replacement

At the time of writing, the operating system migration has been completed and the defective SSD is awaiting physical replacement.

The remaining procedure is to add the replacement SSD to the existing RAID arrays.

After installation, identify the replacement by its serial number and verify that its usable capacity is sufficient.

The following example assumes:

  • /dev/nvme2n1 is the existing healthy RAID SSD.
  • /dev/nvme0n1 is the verified blank replacement SSD.

Export the existing partition layout:

sfdisk --dump /dev/nvme2n1 > /root/raid-layout.sfdisk

Review the exported layout and remove the existing MBR disk identifier so that the replacement receives a unique identifier.

sed -i '/^label-id:/d' /root/raid-layout.sfdisk

Apply the partition layout to the replacement disk:

sfdisk /dev/nvme0n1 < /root/raid-layout.sfdisk

partprobe /dev/nvme0n1

Verify the new partitions, check for conflicting filesystem or RAID signatures, and confirm the current mdadm device mapping.

Add the replacement partitions to the existing arrays:

mdadm --manage /dev/md127 --add /dev/nvme0n1p1

mdadm --manage /dev/md126 --add /dev/nvme0n1p2

Do not create new arrays or format these partitions. The existing RAID arrays will synchronize their contents to the replacement SSD.

Monitor synchronization:

watch -n 2 cat /proc/mdstat

Install GRUB on both physical operating system disks:

grub2-install --target=i386-pc --recheck \
    --modules="part_msdos diskfilter mdraid1x ext2" \
    /dev/nvme0n1
grub2-install --target=i386-pc --recheck \
    --modules="part_msdos diskfilter mdraid1x ext2" \
    /dev/nvme2n1

Once synchronization completes, both operating system arrays should report [UU].

Both disks should then be independently boot-tested to ensure that losing either SSD does not prevent the server from starting.

This stage can largely be performed while the operating system and hosting services remain online, although RAID synchronization may temporarily affect storage performance.

Lessons learned

This migration reinforced several important principles of Linux system administration:

  • SMART health matters more than a single wear metric. An SSD can report degraded reliability even with zero media errors.
  • Device names are not permanent. Always identify physical disks by serial number.
  • Use tmux for long-running operations. An unstable internet connection should not interrupt hours of data synchronization.
  • Preserve application-specific filesystem attributes. Ownership, ACLs, extended attributes and quotas are essential on hosting servers.
  • Perform final synchronization offline. Production databases should not be treated as ordinary static files.
  • Installing GRUB does not change BIOS boot priority. A successful installation does not guarantee the firmware will select that disk.
  • Verify the mounted root filesystem after every migration reboot. SSH connectivity alone proves very little.
  • RAID bootability and bootloader redundancy are separate concerns. Both must be verified.
  • RAID is not a backup. Maintain independent, tested backups regardless of storage redundancy.

Final thoughts

Migrating a production CloudLinux and cPanel server from a failing standalone NVMe SSD to software RAID1 does not necessarily require an operating system reinstallation.

By combining degraded RAID1 arrays, rsync, a properly configured initramfs and GRUB, it is possible to preserve an existing hosting environment while redesigning its underlying storage.

The most interesting part of this migration was discovering that the server had successfully rebooted into the wrong operating system. Everything appeared normal until the mounted root filesystem was inspected.

A temporary GRUB migration entry provided a practical solution, allowing the original bootloader to start the operating system directly from the new RAID arrays.

The server is now running from its migrated RAID storage, with the defective SSD awaiting replacement.

Sometimes the most valuable part of a successful migration is not the commands that worked as expected, but the problems that forced you to understand how the system actually boots.