ECS: Testar MPU S3

Zusammenfassung: Testar MPU S3

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

Problema com MPU

Ursache

Lógica do aplicativo

Lösung

Tente reproduzir o problema usando s3curl básico: ECS: Como executar operações básicas do S3 usando o script

s3curl.plOs exemplos a seguir mostram como executar corretamente o MPU usando s3curl:

Checksum para o arquivo de teste:

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: -

Inicie a 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

Carregue o arquivo pela 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 -

Obtenha o 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

Conclua a 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

Copie o objeto de volta e confirme se a soma de verificação corresponde à original:

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

Se houver problemas ao executar o teste, entre em contato com o suporte técnico do ECS para obter assistência.

Betroffene Produkte

ECS Appliance

Produkte

ECS Appliance, ECS Appliance Hardware Gen1 U-Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption
Artikeleigenschaften
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.