ECS:测试 S3 MPU
Zusammenfassung: 测试 S3 MPU
Dieser Artikel gilt für
Dieser Artikel gilt nicht für
Dieser Artikel ist nicht an ein bestimmtes Produkt gebunden.
In diesem Artikel werden nicht alle Produktversionen aufgeführt.
Symptome
MPU 问题
Ursache
应用程序逻辑
Lösung
尝试使用基本 s3curl 重现问题:ECS:如何使用 s3curl.pl 脚本
执行基本 S3作以下示例显示了如何使用 s3curl:
Checksum 对测试文件正确执行 MPU:
admin@g1-ecs1:/usr/share/s3curl> sudo vi /home/admin/test_file_10-25-17.txt ... admin@g1-ecs1:/usr/share/s3curl> md5sum /home/admin/test_file_10-25-17.txt 72372a46100020b8642a41b59ce2fa57 /home/admin/test_file_10-25-17.txt ... admin@g1-ecs1:/usr/share/s3curl> cat /home/admin/test_file_10-25-17.txt Test #1 ... admin@g1-ecs1:/usr/share/s3curl> stat /home/admin/test_file_10-25-17.txt File: '/home/admin/test_file_10-25-17.txt' Size: 8 Blocks: 8 IO Block: 4096 regular file Device: fe01h/65025d Inode: 4214979 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-10-25 20:05:38.712837105 +0000 Modify: 2017-10-25 20:05:29.560599490 +0000 Change: 2017-10-25 20:05:29.560599490 +0000 Birth: -
启动 MPU:
admin@g1-ecs1:/usr/share/s3curl> sudo ./s3curl.pl --id=jason --post -- "http://10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploads" | xmllint --format -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 4759 0 --:--:-- --:--:-- --:--:-- 4783
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Bucket>jk_bkt6</Bucket>
<Key>home/admin/test_file_10-25-17.txt</Key>
<UploadId>d64df3fe33754c3d8edb48c900fc0bde</UploadId>
</InitiateMultipartUploadResult>
...
dataheadsvc.log.20171025-230840.gz:2017-10-25T20:12:33,942 [qtp972598720-431184] INFO RequestLog.java (line 83) 10.241.218.184 POST //10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploads HTTP/1.1 200 60 - 287
通过 MPU 上传文件:
admin@g1-ecs1:/usr/share/s3curl> sudo ./s3curl.pl --id=jason --put /home/admin/test_file_10-25-17.txt -- "http://10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploadId=d64df3fe33754c3d8edb48c900fc0bde&partNumber=1" admin@g1-ecs1:/usr/share/s3curl> ... dataheadsvc.log.20171025-230840.gz:2017-10-25T20:16:51,438 [qtp972598720-431200] INFO RequestLog.java (line 83) 10.241.218.184 PUT //10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploadId=d64df3fe33754c3d8edb48c900fc0bde&partNumber=1 HTTP/1.1 200 231 8 -
获取 Etag:
admin@g1-ecs1:/usr/share/s3curl> sudo ./s3curl.pl --id=jason -- "http://10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploadId=d64df3fe33754c3d8edb48c900fc0bde" | xmllint --format -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 720 100 720 0 0 84180 0 --:--:-- --:--:-- --:--:-- 90000
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListPartsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Bucket>jk_bkt6</Bucket>
<Key>home/admin/test_file_10-25-17.txt</Key>
<UploadId>d64df3fe33754c3d8edb48c900fc0bde</UploadId>
<Initiator>
<ID>jkusr</ID>
<DisplayName>jkusr</DisplayName>
</Initiator>
<Owner>
<ID>jkusr</ID>
<DisplayName>jkusr</DisplayName>
</Owner>
<StorageClass>STANDARD</StorageClass>
<PartNumberMarker>0</PartNumberMarker>
<NextPartNumberMarker>0</NextPartNumberMarker>
<MaxParts>1000</MaxParts>
<IsTruncated>false</IsTruncated>
<Part>
<PartNumber>1</PartNumber>
<LastModified>2017-10-25T20:16:51.214Z</LastModified>
<ETag>"72372a46100020b8642a41b59ce2fa57"</ETag>
<Size>8</Size>
</Part>
</ListPartsResult>
admin@g1-ecs1:/usr/share/s3curl>
...
dataheadsvc.log.20171025-230840.gz:2017-10-25T20:17:22,399 [qtp972598720-431028] INFO RequestLog.java (line 83) 10.241.218.184 GET //10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploadId=d64df3fe33754c3d8edb48c900fc0bde HTTP/1.1 200 7 - 720
完成 MPU:
admin@g1-ecs1:/usr/share/s3curl> cat /home/admin/test_file_10-25-17.txt_complete
<CompleteMultipartUpload>
<Part>
<PartNumber>1</PartNumber>
<ETag>"72372a46100020b8642a41b59ce2fa57"</ETag>
</Part>
</CompleteMultipartUpload>
...
admin@g1-ecs1:/usr/share/s3curl> sudo ./s3curl.pl --id=jason --post /home/admin/test_file_10-25-17.txt_complete -- "http://10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploadId=d64df3fe33754c3d8edb48c900fc0bde" | xmllint --format -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 527 100 372 100 155 3616 1507 --:--:-- --:--:-- --:--:-- 3647
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CompleteMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Location>http://10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt</Location>
<Bucket>jk_bkt6</Bucket>
<Key>home/admin/test_file_10-25-17.txt</Key>
<ETag>"05515dda1c6c7531f9682c15a6012eb3-1"</ETag>
</CompleteMultipartUploadResult>
...
dataheadsvc.log.20171025-230840.gz:2017-10-25T20:20:16,690 [qtp972598720-431225] INFO RequestLog.java (line 83) 10.241.218.184 POST //10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt?uploadId=d64df3fe33754c3d8edb48c900fc0bde HTTP/1.1 200 102 155 372
将对象复制回来,并确认校验和与原始对象匹配:
admin@g1-ecs1:/usr/share/s3curl> sudo ./s3curl.pl --id=jason -- http://10.241.218.184:9020/jk_bkt6/home/admin/test_file_10-25-17.txt -o /home/admin/test_file_10-25-17.txt_ORIGINAL-10-25-17
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8 100 8 0 0 839 0 --:--:-- --:--:-- --:--:-- 888
...
admin@g1-ecs1:/usr/share/s3curl> md5sum /home/admin/test_file_10-25-17.txt_ORIGINAL-10-25-17
72372a46100020b8642a41b59ce2fa57 /home/admin/test_file_10-25-17.txt_ORIGINAL-10-25-17
Weitere Informationen
如果在运行测试时遇到问题,请联系 ECS 技术支持以获得帮助。
Betroffene Produkte
ECS ApplianceProdukte
ECS Appliance, ECS Appliance Hardware Gen1 U-Series, ECS Appliance Software with Encryption, ECS Appliance Software without EncryptionArtikeleigenschaften
Artikelnummer: 000030771
Artikeltyp: Solution
Zuletzt geändert: 12 Sept. 2025
Version: 4
Antworten auf Ihre Fragen erhalten Sie von anderen Dell NutzerInnen
Support Services
Prüfen Sie, ob Ihr Gerät durch Support Services abgedeckt ist.