✅Setup New OVH Public Cloud Server

⚠️ IMPORTANT

Before installing cPanel, you must configure and mount the additional drive (/dev/sdb) to /home. Perform a soft reboot and then a hard reboot after each major step to ensure everything is applied correctly.


1. Initial Login

  • By default, the server is set up with the user centos.
  • Connect using SSH with the appropriate key:
ssh centos@your-server-ip

2. Set Root Password & Switch User

  • Once logged in as centos, set the password:
sudo passwd
  • Then switch to root:
su -
  • (Optional) Remove the centos user’s SSH key from:
~/.ssh/authorized_keys

3. Add and Format Additional Drive (/dev/sdb)

Check Available Drives

fdisk -l | grep '^Disk'
lsblk

Look for /dev/sdb (this is your new drive).


Partition the Drive

fdisk /dev/sdb

Then enter the following at the prompts:

n       # New partition
p       # Primary
[Enter] # Partition number default (1)
[Enter] # First sector default
838860799  # Last sector or press enter for default
w       # Write and save changes

Format the Drive

mkfs.ext4 /dev/sdb

If prompted:

/dev/sdb is entire device, not just one partition! Proceed anyway? (y,n) y

Mount the Drive

mkdir /home
mount /dev/sdb /home

Confirm the Mount

df -h

Expected Output:

/dev/sda1   99G   11G   84G  12% /
/dev/sdb   394G   73M  374G   1% /home

4. Set Auto-Mount on Reboot

Get UUID

blkid

Look for the line similar to:

/dev/sdb: UUID="07a63aca-cfe5-4b3c-8931-17450b6877e" TYPE="ext4"

Edit fstab

vi /etc/fstab

Add the following line (replace UUID accordingly):

UUID=07a63aca-cfe5-4b3c-8931-17450b6877e /home ext4 errors=remount-ro,discard,usrjquota=quota.user,jqfmt=vfsv0 1 1

Save and Exit (press ESC, then type :wq and press Enter).


5. Reboot and Verify

  • Reboot the system:
reboot
  • After reboot, run:
df -h

Make sure /home is still mounted and reflects the new drive.


✅ Example /etc/fstab (For Reference)

UUID=9b3b19ba-d5f5-46e7-94b2-e8315074c75f / ext4 errors=remount-ro,discard,usrjquota=quota.user,jqfmt=vfsv0 1 1
UUID=82a3eb58-a658-4fca-8f08-8e5ec763878e /home ext4 errors=remount-ro,discard,usrjquota=quota.user,jqfmt=vfsv0 1 1
UUID=932ac0ae-0b66-41f9-b28d-21b03a7019bc /backup ext4 errors=remount-ro,discard 1 1
UUID=c5fb8ed3-565d-4a0b-a374-7f8f2acebf53 /incremental ext4 errors=remount-ro,discard 1 1
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0

Once the /home drive is mounted and confirmed persistent, you can safely proceed with cPanel installation.

Scroll to Top