This article is a mirror article of machine translation, please click here to jump to the original article.

View: 489|Reply: 1

Alibaba Cloud mounts OSS to the Linux system directory

[Copy link]
Posted on 2025-9-6 09:03:58 | | | |
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
CentOS uses Alibaba Cloud NAS storage
https://www.itsvse.com/thread-10714-1-1.html

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)




Previous:.NET/C# dependency injection service registration Scrutor tool
Next:The validity period and number of endorsements for the Permit for Traveling to and from Hong Kong and Macao
 Landlord| Posted on 2025-9-6 09:17:19 |
Read-only parameter: --ro=true
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com