To mount an additional disk in an OVH server, you’ll need to follow a series of steps that involve configuring the disk and updating the server’s configuration. Here’s a general guide to help you through the process:
- Log in to your OVH control panel:
- Open your web browser and go to the OVH website.
- Log in to your account using your credentials.
- Access the server management page:
- Navigate to the “Dedicated Servers” or “Servers” section of your OVH control panel.
- Select the server for which you want to mount the additional disk.
- Order and provision the additional disk:
- In the server management page, locate the “Additional Disks” or “Storage” section.
- Check the available options for adding a disk to your server.
- If needed, order and provision the additional disk from OVH.
- Configure the additional disk:
- Once the disk is provisioned, you may need to initialize and format it.
- SSH into your server using a terminal or SSH client.
- Identify the new disk:
- Use the
lsblk
command to list all available disks and their partitions. - Identify the newly added disk based on its size or device name (e.g., /dev/sdb).
- Use the
- Partition and format the disk:
- Use a tool like
fdisk or parted
to create a partition on the new disk. - Format the partition with a desired file system (e.g., ext4) using the appropriate command (e.g., mkfs.ext4 /dev/sdb1).
- Use a tool like
- Mount the disk:
- Create a mount point directory for the new disk (e.g., /mnt/mydisk) using the
mkdir
command. - Mount the newly formatted partition to the mount point using the mount command (e.g., mount /dev/sdb1 /mnt/mydisk).
- Create a mount point directory for the new disk (e.g., /mnt/mydisk) using the
- Configure automatic mounting (optional):
- If you want the disk to be automatically mounted on server startup, you’ll need to modify the
/etc/fstab file.
- Open the
/etc/fstab
file using a text editor. - Add an entry for the new disk in the following format:
/dev/sdb1 /mnt/mydisk ext4 defaults 0 0.
- Save the changes and exit the editor.
- If you want the disk to be automatically mounted on server startup, you’ll need to modify the
- Verify the disk mount:
- Use the
df -h
command to verify that the disk is mounted correctly and accessible.
- Use the
That’s it! You have successfully mounted an additional disk in your OVH server. You can now use the mounted disk for your storage needs.
Please note that the exact steps and commands may vary depending on the specific OS and configuration of your OVH server.