Connect file storage to a cloud server in a single pool
If you need to increase disk space with file storage, we recommend creating storage in the same pool as the cloud server. If the file storage and the cloud server are in the same pool, you need to mount the storage to connect it.
If you plan to use file storage to store backups, we recommend pooling storage and cloud server from different availability zones or regions to improve fault tolerance. For details, see the Connect file storage to cloud server in another pool instructions.
Create file storage
-
In Control Panel, go to Cloud Platform → File Storage.
-
Click Create Storage.
-
Enter a new storage name or leave the name that is automatically created.
-
Select the pool where the cloud server is located. A vault will be created in this pool.
-
Select the subnet of the cloud private network. We recommend selecting the subnet where the cloud server is located to automatically configure the network connectivity between the server and the storage.
-
Select file storage type. Storages differ in read/write speeds and bandwidth values:
-
HDD Basic;
-
SSD Universal;
-
SSD Fast.
Once created, the storage type cannot be changed.
-
-
Specify the storage size: from 50 GB to 50 TB. Once created, you can increase file-storage, but you can't decrease it.
-
Select a protocol:
-
NFSv4 — for connecting storage to servers running Linux and other Unix systems;
-
CIFS SMBv3 — for connecting the storage to Windows servers.
Once created, the protocol cannot be changed.
-
-
Check out the cost of file storage.
-
Press Create.
Mount the file storage to the cloud server
The mount process depends on the operating system on the cloud server and the file storage protocol: NFSv4 or CIFS SMBv3.
Mount storage using NFSv4 protocol
- Linux
- Windows
-
Install the NFS protocol package:
sudo apt install nfs-common
-
Create a folder to mount the repository:
sudo mkdir -p /mnt/nfs
-
Mount the file storage:
sudo mount -vt nfs "<filestorage_ip_address>:/shares/share-<mountpoint_uuid>" /mnt/nfs
Specify:
<filestorage_ip_address>
— IP address of the file storage. You can look in control panel under Cloud Platform → File Storage → Storage page → Settings tab → IP field;<mountpoint_uuid>
— mount point ID. You can look in Control Panel under Cloud Platform → File Storage → Storage page → Connectivity block → GNU/Linux tab.
File storage works only with NFS client version NFSv4. By default, Windows supports NFS clients of versions below: NFSv2 and NFSv3. Learn more about NFS versions in the NFS Overview article of Microsoft's documentation.
To work with file storage from Windows, we recommend using file storage with the CIFS protocol. If you need to connect storage with the NFS protocol, install and use a client that supports the NFSv4 protocol.
Mount storage using CIFS SMBv3 protocol
- Linux
- Windows
-
Install the CIFS protocol package:
sudo apt install cifs-utils
-
Create a folder to mount the repository:
sudo mkdir -p /mnt/cifs
-
Mount the file storage:
sudo mount.cifs -o guest //<filestorage_ip_address>/share-<mountpoint_uuid> /mnt/cifs
Specify:
<filestorage_ip_address>
— IP address of the file storage. You can look in control panel under Cloud Platform → File Storage → Storage page → Settings tab → IP field;<mountpoint_uuid>
— mount point ID. You can look in control panel under Cloud Platform → File Storage → Storage page → Connectivity block → GNU/Linux tab.
-
Mount the file storage:
net use X: {\\<filestorage_ip_address>\share-<mountpoint_uuid>
Specify:
<filestorage_ip_address>
— IP address of the file storage. You can look in control panel under Cloud Platform → File Storage → Storage page → Settings tab → IP field;<mountpoint_uuid>
— mount point ID. You can look in Control Panel under Cloud Platform → File Storage → File Storage → Storage page → Connect block → Windows tab.