https://github.com/entonbiba/ovh-public-cloud-additional-drive-bash-script
Partition and mount additional drive to an OVH public cloud vm server bash script.
https://github.com/entonbiba/ovh-public-cloud-additional-drive-bash-script
bash cloud-server cloud-vm-server driver ovh partition
Last synced: about 1 month ago
JSON representation
Partition and mount additional drive to an OVH public cloud vm server bash script.
- Host: GitHub
- URL: https://github.com/entonbiba/ovh-public-cloud-additional-drive-bash-script
- Owner: entonbiba
- Created: 2016-12-03T15:43:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-05T02:44:48.000Z (over 8 years ago)
- Last Synced: 2025-06-03T09:18:35.528Z (about 1 year ago)
- Topics: bash, cloud-server, cloud-vm-server, driver, ovh, partition
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ovh-public-cloud-additional-drive-bash-script
Partition and mount additional drive to an OVH public cloud vm server bash script.
### Note:
We will be using an Ubuntu 16.04 OS Image and will have already installed "wget" with the following command:
```Bash
sudo apt-get update sudo apt-get install wget
```
There are two types of additional disks that can be mounted on OVH Public Cloud servers.
- Classic disk (starts with the letter s)
- High Performance disk (starts with the letter v)
The third character of the drive name will alpha increment.
For example if it's a high performance disk, the first additional drive will be called "vdb", the second "vdc", the third "vdd" and so on.
### Step 1:
- Create an additional drive from the ovh control panel
- Attach the drive to a public cloud server
- Connect via SSH into the server
### Step 2:
- Download the bash script from this repository to the public cloud server
- Make the bash script executable
#### Classic Disk
```Bash
cd /
sudo wget https://raw.githubusercontent.com/entonbiba/ovh-public-cloud-additional-drive-bash-script/master/ovh_adpc_classic_disk.sh
chmod +x ovh_adpc_classic_disk.sh
```
#### High Performance Disk
```Bash
cd /
sudo wget https://raw.githubusercontent.com/entonbiba/ovh-public-cloud-additional-drive-bash-script/master/ovh_adpc_highperformance_disk.sh
chmod +x ovh_adpc_highperformance_disk.sh
```
### Step 3:
- Run the script
#### Classic Disk
```Bash
sudo bash ovh_adpc_classic_disk.sh
```
#### High Performance Disk
```Bash
sudo bash ovh_adpc_highperformance_disk.sh
```
## Finished
You should now be able to use the additional drive from the mounted directory "/mnt/disk"
Link: https://www.ovh.com/ca/en/cloud/instances/
Reference: https://www.ovh.com/ca/en/g1863.create_and_configure_an_additional_disk_on_an_instance