Article sections

    source : https://base64.co.za/adding-another-drive-whm-cpanel/

    A couple of steps to take to add an additional drive to cPanel / WHM:

    Find the path to the disk you are trying to add by issuing the following command:

    fdisk -l | grep '^Disk'

    Create a partition and format the partition to EXT3

    fdisk /dev/sdb

    and then use following in the prompt – "n" for new partion – "p" for primary partition – "1" for the first partition – "Enter" / "Enter" for the first AND last cylinders (automatically use the entire disk) – "w" to save what I have done

    mkfs -t ext3 /dev/sdb1

    cPanel picks up any directory similar to “/home” “/home2” etc, so the next step is to create another directory as follows:

    mkdir /home2

    The next step is to label the disk using e2label

    e2label /dev/sdb1 /home2

    You can now mount the drive using:

    mount /home2

    To enable the automatic mounting of the drive edit /etc/fstab and add the following:

    LABEL=/home2 /home2 ext3 defaults,usrquota,noatime 0 0

    Ensure that there is an empty line after this, as this is required by fstab

    in cPanel & WHM ServerLinux Commands