GeeseFS
GeeseFS is a program with which you can mount a bucket on a device or server and work with it like a normal folder.GeeseFS is suitable for working with a large number of objects, up to 1 MB each.With GeeseFS you can work on Linux, Windows and macOS.
Customize GeeseFS
1. Set up access to S3
Access can be configured by the Account Owner or a user with the role of iam.admin.
- Create a service user with a role with access to S3.If you use a service user with the role of s3.user, object_storage_user or
s3.bucket.user, an access policy must be configured in the bucket and its rules must allow access to this user. - Issue an S3 key to the user.
2. Install the client
Linux
Windows
macOS
-
Make sure that the FUSE utilities are installed by default:
apt list --installed | grep fuse -
If the utilities are not installed, install them:
sudo apt-get install fuse -
Download and install GeeseFS:
wget https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64chmod a+x geesefs-linux-amd64sudo cp geesefs-linux-amd64 /usr/bin/geesefs
3. Create a configuration
Linux
Windows
macOS
-
Open the CLI.
-
Create a directory where the S3 key file will be stored:
mkdir ~/.aws -
Create a
credentialsfile:nano ~/.aws/credentials -
Add an S3 key:
[default]aws_access_key_id = <access_key>aws_secret_access_key = <secret_key>Specify:
<access_key>- field value Access key from S3 key;<secret_key>- field value Secret key from the S3 key.
-
Press Ctrl + X → Y → Enter.
Mount the bucket
One-time mounting
Automatic mounting
Linux
Windows
macOS
-
Create a folder to mount:
mkdir /mnt/<folder_name>Specify
<folder_name>- the name of the folder to which the bucket will be mounted. -
Mount the bucket:
sudo geesefs--endpoint https://<s3_domain>--region <pool>--profile <profile_name><bucket_name> /mnt/<folder_name>Specify:
<s3_domain>- S3 API domain depending on the pool in which the bucket is located;<pool>- pool where the buckets are located;<bucket_name>- name of the bucket to be mounted;<profile_name>- profile name, defaultdefault;<folder_name>- name of the folder you created in step 1.
-
Make sure the buckets are mounted:
df -hT /mnt/<folder_name>Specify
<folder_name>is the name of the folder you created in step 1.
Repair the tank
The method of unmounting depends on how the bucket was mounted - one-time or automatically.
One-time mounting
Automatic mounting
Linux
Windows
macOS
Unmount the bucket:
sudo umount /mnt/<local_folder>
Specify <local_folder> - the path to the folder to which the bucket is mounted.