Using file storages
A file storage allows you to store large amounts of information and access it from your notebooks.
Creating a file storage
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. -
Under Project resources, click
Filestore. -
Click Create filestore.
-
In the window that opens, enter a name for the file storage in the Name field.
- The name must be from 3 to 63 characters long.
- It may contain uppercase and lowercase Latin and Russian letters, numbers, hyphens, underscores, and spaces.
- The first character must be a letter. The last character cannot be a hyphen, underscore, or space.
-
In the Name at connection field, enter the name you are going to use to connect to the file storage. The connection name may contain only Latin letters and digits and must begin with a slash, e.g.,
/filestore
. -
Under Storage volume, GB, set the storage size you need. At the bottom of the window, you will see the total cost of storage per month.
-
Click Create. You will now see a page with information on the file storage you just created.
Updating a file storage
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, click
Filestore. - In the list of file storages, select the one you want to update, click
, and select Edit. - Update the file storage: edit its name and connection name.
- Click Save.
Activating a file storage
Newly created file storages are deactivated. To activate a file storage:
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, click
Filestore. - In the row with the file storage, click
and select Activate.
The activated file storage will appear in the DataSphere root directory in the JupyterLab interface.
Deactivating a file storage
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, click
Filestore. - In the row with the file storage, click
and select Deactivate.
Sharing a file storage
Note
You can only share resources within a single organization between communities created in the same availability zone.
To share a file storage within a community, you need the Editor
role for the project and the Developer
role for the community. To learn more about roles in DataSphere, see Access management in DataSphere.
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, click
Filestore. - Select the file storage from the list.
- Navigate to the Access tab.
- Enable the visibility option next to the name of the community you want to share the file storage in.
To make the file storage available in a different project, the project admin has to add it on the Shared tab.
Warning
To avoid losing your data, try not to write it to the same file from multiple projects at once.
Deleting a file storage
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, click
Filestore. - In the list of file storages, select the one you want to delete, click
, and select Delete. - Click Confirm.
You will see a message stating that the file storage was deleted.
Warning
The actual deletion of resources can take up to 72 hours.