|
| 1 | +--- |
| 2 | +title: "Enterprise File Storage - Connect a Public Cloud instance to an EFS Volume via vRack Private Network" |
| 3 | +excerpt: "Find out how to connect a Public Cloud instance to an Enterprise File Storage (EFS) volume using a vRack private network." |
| 4 | +updated: 2025-10-28 |
| 5 | +--- |
| 6 | + |
| 7 | +<style> |
| 8 | +details>summary { |
| 9 | + color:rgb(33, 153, 232) !important; |
| 10 | + cursor: pointer; |
| 11 | +} |
| 12 | +details>summary::before { |
| 13 | + content:'\25B6'; |
| 14 | + padding-right:1ch; |
| 15 | +} |
| 16 | +details[open]>summary::before { |
| 17 | + content:'\25BC'; |
| 18 | +} |
| 19 | +</style> |
| 20 | + |
| 21 | +## Objective |
| 22 | + |
| 23 | +Mount an Enterprise File Storage (EFS) NFS volume from a Public Cloud instance using a private vRack network. |
| 24 | + |
| 25 | +This ensures that all data traffic remains on the private network, with no Internet exposure. |
| 26 | + |
| 27 | +> [!primary] |
| 28 | +> |
| 29 | +> The EFS volume and the Public Cloud instance must be located in the same region (e.g. RBX, GRA, or SBG), as OpenStack private networks are regional. |
| 30 | +> |
| 31 | +
|
| 32 | +## Requirements |
| 33 | + |
| 34 | +- An [Enterprise File Storage](/links/storage/enterprise-file-storage) service in your OVHcloud account. |
| 35 | +- An [OVHcloud Public Cloud instance](/pages/public_cloud/compute/public-cloud-first-steps) in the same region. |
| 36 | +- An active [vRack Private Network](/pages/public_cloud/public_cloud_network_services/getting-started-07-creating-vrack) in the same region. |
| 37 | +- Access to the [OVHcloud Control Panel](/links/manager) or the [Openstack CLI](/pages/public_cloud/public_cloud_cross_functional/loading_openstack_environment_variables). |
| 38 | + |
| 39 | +## Overview |
| 40 | + |
| 41 | +The diagram below illustrates how an Enterprise File Storage (EFS) volume connects to a Public Cloud instance through a private vRack network. |
| 42 | + |
| 43 | +{.thumbnail} |
| 44 | + |
| 45 | +1. Critical Match — VLAN ID |
| 46 | + |
| 47 | + The VLAN ID (e.g. `1900`) must be identical in both the Public Cloud private network and the vRack Services configuration. |
| 48 | + |
| 49 | +2. Critical Match — Subnet CIDR |
| 50 | + |
| 51 | + The subnet CIDR (e.g. `10.235.0.0/24`) must also match across both services to ensure they operate within the same logical network in the vRack. |
| 52 | + |
| 53 | +3. Info — Service address range |
| 54 | + |
| 55 | + The service address range (e.g. `10.235.0.240/28`) is a reserved subset of the main subnet. These IPs are exclusively used by EFS service endpoints (e.g. `10.235.0.241`) and must not be assigned to instances. |
| 56 | + |
| 57 | +4. Security — ACL Rule |
| 58 | + |
| 59 | + The EFS volume’s Access Control List (ACL) must explicitly authorize the private IP of any instance requiring access (e.g. `10.235.0.15`). |
| 60 | + |
| 61 | +5. Concept — vRack Services |
| 62 | + |
| 63 | + vRack Services acts as a secure network bridge, allowing managed services such as EFS outside your Public Cloud project to connect seamlessly to your private vRack network. |
| 64 | + |
| 65 | +## Instructions |
| 66 | + |
| 67 | +### Step 1 - Associate the Public Cloud project with the vRack |
| 68 | + |
| 69 | +Before deploying your Enterprise File Storage (EFS) volume through a private vRack network, your Public Cloud project must first be associated with a vRack. |
| 70 | + |
| 71 | +This association enables private networking between your Public Cloud instances and OVHcloud managed services such as EFS. |
| 72 | + |
| 73 | +Follow the procedure described in the **step 1: activating and managing a vRack** in our guide "[Configuring vRack for Public Cloud](/pages/public_cloud/public_cloud_network_services/getting-started-07-creating-vrack)". |
| 74 | + |
| 75 | +### Step 2 - Create a Private Network in Your Public Cloud Project <a name="step2"></a> |
| 76 | + |
| 77 | +To connect your Public Cloud instance to an EFS volume via vRack, first provision a dedicated private network within your project. |
| 78 | + |
| 79 | +This isolated network enables secure communication between your instances and OVHcloud storage resources through the vRack architecture. |
| 80 | + |
| 81 | +Follow the procedure described in the **step 2: creating a private network in the vRack** in our guide "[Configuring vRack for Public Cloud](/pages/public_cloud/public_cloud_network_services/getting-started-07-creating-vrack)". |
| 82 | + |
| 83 | +### Step 3 — Launch the Instance on the Private Network |
| 84 | + |
| 85 | +Deploy your Public Cloud instance within the private network you created. Ensure it is connected to the correct subnet to enable secure communication over the vRack. |
| 86 | + |
| 87 | +Follow the procedure described in the **step 3: integrating an instance into vRack** in our guide "[Configuring vRack for Public Cloud](/pages/public_cloud/public_cloud_network_services/getting-started-07-creating-vrack)". |
| 88 | + |
| 89 | +{.thumbnail} |
| 90 | + |
| 91 | +Ensure that an IP address is assigned to the instance in the selected subnet (e.g. `10.235.0.15`). |
| 92 | + |
| 93 | +### Step 4 - Create a vRack Service resource for EFS |
| 94 | + |
| 95 | +There are two ways to create a vRack Service resource for your EFS volume. |
| 96 | + |
| 97 | +Both methods achieve the same goal: securely connecting your EFS service to your vRack and Public Cloud instances. |
| 98 | + |
| 99 | +/// details | First method: creating via vRack Services |
| 100 | + |
| 101 | +A vRack Service resource acts as a network adapter, connecting managed services like EFS to your vRack and its private subnet. |
| 102 | + |
| 103 | +For detailed guidance, see OVHcloud’s official documentation: [vRack Services - Exposing a Managed Service on your vRack](/pages/network/vrack_services/global). |
| 104 | + |
| 105 | +1. In the [OVHcloud Control Panel](/links/manager), navigate to `Network`{.action} section, then click on `vRack Services`{.action}. |
| 106 | + |
| 107 | +2. Then click `Activate vRack Services`{.action}. |
| 108 | + |
| 109 | +3. Select the same region as your vRack, Public Cloud instance and EFS service. Then click `Activate vRack Services`{.action}. <span id="step4-a-region-selection"></span> |
| 110 | + |
| 111 | +4. Select `No thanks, i already have a vRack`{.action} and accept the terms and conditions to confirm. |
| 112 | + |
| 113 | + {.thumbnail} |
| 114 | + |
| 115 | +5. Then, locate your newly created vRack Service in the list and click its name. |
| 116 | + |
| 117 | + {.thumbnail} |
| 118 | + |
| 119 | +6. Edit the vRack Service with the following configuration: |
| 120 | + |
| 121 | + - Private Network: Select the same vRack used for your Public Cloud project. |
| 122 | + |
| 123 | + {.thumbnail} |
| 124 | + |
| 125 | + - Create a subnet: |
| 126 | + |
| 127 | + {.thumbnail} |
| 128 | + |
| 129 | + > [!primary] |
| 130 | + > |
| 131 | + > Ensure the CIDR matches your Public Cloud private network. |
| 132 | + > |
| 133 | +
|
| 134 | + - Subnet address Range: e.g. `10.235.0.0/24`. |
| 135 | + - Service address Range: e.g. `10.235.0.240/28`. |
| 136 | + - Reserved subset of the private subnet for assigning IPs to managed EFS services within the vRack. |
| 137 | + - VLAN: Use the same VLAN number as your Public Cloud private network (see [Step 2](#step2)). |
| 138 | + - Click `Create subnet`{.action}. |
| 139 | + |
| 140 | + - Create a Service Endpoint: |
| 141 | + |
| 142 | + {.thumbnail} |
| 143 | + |
| 144 | +/// |
| 145 | + |
| 146 | +/// details | Second method: creating via Enterprise File Storage section |
| 147 | + |
| 148 | +1. In the [OVHcloud Control Panel](/links/manager), navigate to the `Bare Metal Cloud`{.action} section. Click `Enterprise File Storage`{.action} under the heading **Storage and backups**, then select your EFS service. |
| 149 | + |
| 150 | +2. In the `Network Configuration` box, click `Configure Network Settings`{.action}. |
| 151 | + |
| 152 | + {.thumbnail} |
| 153 | + |
| 154 | +3. Select your vRack. |
| 155 | + |
| 156 | +4. If no vRack Services have been created yet, activate the vRack Services and follow the [first method: creating via vRack Services](step4-a-region-selection) from the third point. |
| 157 | + |
| 158 | +5. If you have already created a vRack service, select your dedicated service. |
| 159 | + |
| 160 | +/// |
| 161 | + |
| 162 | +### Step 5 — Connect the EFS Volume to the vRack |
| 163 | + |
| 164 | +Once the previous steps are completed successfully, all volumes created in your EFS service will automatically reside within your vRack and its dedicated subnet, making them immediately accessible to your Public Cloud instances. |
| 165 | + |
| 166 | +### Step 6 — Configure access control (ACLs) |
| 167 | + |
| 168 | +In the `Access Control List (ACL)`{.action} tab of your EFS volume: |
| 169 | + |
| 170 | +- Add the IPs or CIDR ranges authorized to mount the volume: |
| 171 | + |
| 172 | + - To allow a single instance, enter the instance's IP address, for example: `10.235.0.15`. |
| 173 | + - To allow all instances within the subnet, enter the subnet address, for example: `10.235.0.0/24`. |
| 174 | + |
| 175 | +- Set the desired Access Level: **Read and write** or **Read-only**. |
| 176 | + |
| 177 | +> [!primary] |
| 178 | +> |
| 179 | +> **Recommendation:** Use individual IPs whenever possible to enhance security. |
| 180 | +> |
| 181 | +
|
| 182 | +After applying the ACLs, verify network connectivity from your Public Cloud instance: |
| 183 | + |
| 184 | +```bash |
| 185 | +ping <YOUR-EFS-SERVICE-IP> |
| 186 | +``` |
| 187 | + |
| 188 | +### Step 7 — Mount the NFS Volume |
| 189 | + |
| 190 | +1. Install the NFS client on your Public Cloud instance: |
| 191 | + |
| 192 | + ```bash |
| 193 | + sudo apt install -y nfs-common |
| 194 | + ``` |
| 195 | + |
| 196 | +2. Mount the EFS volume: |
| 197 | + |
| 198 | + ```bash |
| 199 | + sudo mkdir -p /mnt/efs |
| 200 | + sudo mount -t nfs -o vers=3,timeo=600,retrans=2 <YOUR-EFS-SERVICE-IP>:/share_<ID> /mnt/efs |
| 201 | + df -h /mnt/efs |
| 202 | + ``` |
| 203 | + |
| 204 | +### Step 8 — Enable Automatic Mount on Boot (optional) |
| 205 | + |
| 206 | +To ensure your EFS volume mounts automatically at startup, add the following entry to the `/etc/fstab` file: |
| 207 | + |
| 208 | +```bash |
| 209 | +<YOUR-EFS-SERVICE-IP>:/share_<ID> /mnt/efs nfs vers=3,timeo=600,retrans=2 0 0 |
| 210 | +``` |
| 211 | + |
| 212 | +Then test the configuration: |
| 213 | + |
| 214 | +```bash |
| 215 | +sudo umount /mnt/efs |
| 216 | +sudo mount -a |
| 217 | +``` |
| 218 | + |
| 219 | +If no errors occur, the EFS volume will now automatically mount on boot. |
| 220 | + |
| 221 | +## Expected Result |
| 222 | + |
| 223 | +- The instance can access the EFS volume via <YOUR-EFS-SERVICE-IP>. |
| 224 | +- All communication occurs privately within the vRack. |
| 225 | +- The NFS mount is fully functional and persistent across reboots. |
| 226 | + |
| 227 | +## Troubleshooting |
| 228 | + |
| 229 | +| Symptom | Likely Cause | Resolution | |
| 230 | +| ---------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | |
| 231 | +| mount.nfs: No route to host | Instance and EFS not in the same region, or wrong VLAN ID. | Ensure the instance, EFS, and vRack Services are in the same region. Recreate the vRack Service using the same VLAN ID as the private network. | |
| 232 | +| mount.nfs: access denied by server | EFS ACL missing or incorrect. | Add the instance IP (e.g. `10.235.0.x`) or subnet (e.g. `10.235.0.0/24`) with protocol NFSv3 and Read/Write access. | |
| 233 | +| mount command hangs indefinitely | Wrong NFS version or unresponsive endpoint. | Use: `-o vers=3,timeo=600,retrans=2` to force NFSv3 and define timeouts. | |
| 234 | +| mount succeeds but no read/write | ACLs or POSIX permissions too strict. | Adjust ACLs or update volume-level permissions. | |
| 235 | +| mount works, but not after reboot | Missing `/etc/fstab` entry. | Add: `<YOUR-EFS-SERVICE-IP>:/share_<ID> /mnt/efs nfs vers=3,timeo=600,retrans=2 0 0`. | |
| 236 | +| vRack Services shows “Inactive” | Service not yet provisioned. | Wait for provisioning to complete, or reattach the service from the EFS Private Network tab. | |
| 237 | + |
| 238 | +## Go further |
| 239 | + |
| 240 | +[Managing Enterprise File Storage from the OVHcloud Control Panel](/pages/storage_and_backup/file_storage/enterprise_file_storage/netapp_control_panel) |
| 241 | + |
| 242 | +[Enterprise File Storage - API Quickstart](/pages/storage_and_backup/file_storage/enterprise_file_storage/netapp_quick_start) |
| 243 | + |
| 244 | +[Enterprise File Storage - Managing volumes](/pages/storage_and_backup/file_storage/enterprise_file_storage/netapp_volumes) |
| 245 | + |
| 246 | +[Enterprise File Storage - Managing volume ACLs](/pages/storage_and_backup/file_storage/enterprise_file_storage/netapp_volume_acl) |
| 247 | + |
| 248 | +[Enterprise File Storage - Managing volume snapshots](/pages/storage_and_backup/file_storage/enterprise_file_storage/netapp_volume_snapshots) |
| 249 | + |
| 250 | +If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project. |
| 251 | + |
| 252 | +Join our [community of users](/links/community). |
0 commit comments