Problem description
The "Input/output error" message appeared when I tried to copy data after the Object Storage Service (OSS) bucket was mounted to Linux by using ossfs.
Causes
This error is reported due to a system disk error. Check whether the disk has a large number of read and write workloads when this error is reported. For example, when a large file is being copied, the number of read and write workloads is high, and this error is reported.
Solutions
To fix the problem, perform the following steps:
Run the
ossfs -hcommand to query part-related parameters and increase the values of the parameters.Noteparallel_count: the number of concurrent threads when you upload a large object in multipart upload. Default value: 5.
multipart_size: the size of a part when data is uploaded in multipart upload. Unit: MB. Default value: 10. This option limits the maximum size of the object that you want to upload. When multipart upload is used, the maximum number of parts that can be uploaded is 10,000. By default, the maximum size of the object that can be uploaded is 100 GB. You can adjust the value of this option to upload larger objects.
ossfs is not suitable for large file copying and highly concurrent reads/writes due to many limits in these scenarios. For more information, see Overview. If you want to download an object from OSS to an ECS instance or upload a file from an on-premises ECS instance to OSS, you can use ossutil to perform multipart upload and download operations. For more information, see Overview.
Applicable scope
OSS