Please note: Before you proceed with configuration, make sure you have enough quotas to create a file share. To increase quotas, send us a request according to our guide. The quotas for Files Shares are located on the Storage tab and include File Share count and File Share size (GiB) as shown below.
Step 0 (for Bare Metal only): Make sure the network that you want to use for sharing supports Bare Metal servers because they require a dedicated VLAN. Otherwise, create a new dedicated VLAN by switching the Bare Metal Network toggle when creating a new network.
Please note: To change the network interface of an existing Bare Metal, you need to do so manually in the OS settings.
Step 1: Create a file share.
A new page will open. In Basic settings, enter the name of the file share, specify its size and protocol.
In the File Share network settings, select the private network and subnetwork that you will use for file sharing.
In Access, click Add rule and specify the IP addresses of the machines that should have access to the file share and their access modes.
(optional) Add tags.
Step 2: Connect to your server.
Connect to your server via the Customer Portal or SSH and install the NFS client to enable your system to access the file share.
sudo apt -y install nfs-common
sudo yum install nfs-utils
Step 3: Mount the file share.
Choose or create a file directory where you will mount the shared files.
Copy the mount command from your personal account. Go to the Overview tab of the required file share and copy the command from the field in the File Share mount section, as shown below.
Run the command:
mount 0.0.0.0:/shares/share-d54589b8-132f-4de4-ae99-af5c6cdfdb9c /mount/path
Replace /mount/path
with the path to the local file directory where you want to mount the file share.
Now you can access the content of the remote file share in the specified directory.
Please note: If you want to change the size of the file share, you first need to unmount it and then mount it again.
To unmount a file share, use the following command:
umount -lf /your/share
To resize your file share, go to the Overview tab and click Resize as shown below.
Was this article helpful?
Discover our offerings, including virtual instances starting from 3.7 euro/mo, bare metal servers, AI Infrastructure, load balancers, Managed Kubernetes, Function as a Service, and Centralized Logging solutions.