Requirements: You need to upload the server files to the large Alibaba Cloud OSS bucket, or download the data from the OSS to the server. Using the ossfs 2.0 tool makes it easy to mount oss under the Linux system.
review
Overview of OSSFS 2.0
OSSFS 2.0 is a client designed for high-performance access to OSS (object storage) through mounting, which has excellent sequential read and write capabilities to take full advantage of the high bandwidth of OSS.
Reference:The hyperlink login is visible.
Rocky Linux 8 installation
Install the OSSFS 2.0 tool with the following command:
As shown below:
ossfs 2.0 tools
Disk mount
Create a mount directory to/ossfileFor example. The command is as follows:
Mount the Bucket bucket with the following command:
The mount is successful as shown in the following figure:
Mounting parameters:The hyperlink login is visible.
Uninstall the mounted bucket with the following command:
Exception handling
If an error is reported:ls: cannot open directory '.': Transport endpoint is not connected
View the exception information command:
As follows:
Sep 06 09:00:04 dz200 kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-0.slice/session-92.scope, task=ossfs2,pid=141442,uid=0 Sep 06 09:00:04 dz200 kernel: Out of memory: Killed process 141442 (ossfs2) total-vm:4788156kB, anon-rss:976268kB, file-rss:1796kB, shmem-rss:2048kB, UID:0 pgtables:3688kB oom_score_ adj:0 Solution, limit memory usage, with the following command:
(End) |