ECS: L'unità di capacità di ECS differisce tra l'interfaccia utente e l'API REST (GiB rispetto a GB)

Summary: La capacità di, ad esempio, 10 GB visualizzata da svc_bucket viene apparentemente portata direttamente nell'output di misurazione dell'interfaccia utente (o viceversa), ovvero con lo stesso valore viene visualizzata solo con GiB. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

 

Prendere nota dell'unità GB nei comandi CLI e API REST:

admin@ecsnode1:~> svc_bucket info chris-s3-bkt
svc_bucket v1.1.1 (svc_tools v2.20.0)                 Started 2024-11-22 15:51:33

Bucket ID                        chris-ns.chris-s3-bkt

  Name                             chris-s3-bkt
  Namespace                        chris-ns
  Owner User                       chris-s3-user
  Owner VDC Name                   VDC1
  Owner zone/VDC ID                urn:storageos:VirtualDataCenterData:8af5b9c3-9c0c-43b5-9402-14d181ade5bf
  Keypool Hash ID                  43344cc6ad534c4e600dc0a32d90e5104a8f718d99487938bf9f273f2100f248
  Bucket Deletion Status           None

  Replication Group (vpool) Name   local_vdc
  Replication Group (vpool) ID     urn:storageos:ReplicationGroupInfo:9eaa2c9d-4ed5-4f40-90f1-e347f8f3f3fd:global
  Bucket Creation Date             2024-11-22 15:13:33 (1732288413155)
  Temp Failed (TSO)                False

  API Type                         S3
  FS Access Enabled                False
  Encryption Enabled               False
  Versioning State                 Disabled
  ADO Enabled                      False
  ADO Read-Only                    False
  Object Lock Enabled              False
  Auto commit period (seconds)     None
  Enforce Retention                False
  Lifecycle Policy                 None

  Keypool Policy                   None

  Bucket ACL:
    Type       Affects    Name                               
    user       file/dir   chris-s3-user                       FULL_CONTROL

  Object count                     2
  Total Object Size                11 GB


admin@ecsnode1:~> 
admin@ecsnode1:~> svc_rest_cmd /object/billing/buckets/chris-ns/chris-s3-bkt/info | xmllint --format -
svc_rest_cmd 1.0.17

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bucket_billing_info>
  <total_size_deleted>0</total_size_deleted>
  <total_objects_deleted>0</total_objects_deleted>
  <name>chris-s3-bkt</name>
  <uptodate_till>2023-06-15T18:25:45Z</uptodate_till>
  <namespace>chris-ns</namespace>
  <sample_time>2024-11-27T14:23:38Z</sample_time>
  <TagSet/>
  <total_mpu_parts>0</total_mpu_parts>
  <total_mpu_size>0</total_mpu_size>
  <total_objects>2</total_objects>
  <total_size>11</total_size>
  <total_size_unit>GB</total_size_unit>
  <vpool_id>urn:storageos:ReplicationGroupInfo:9eaa2c9d-4ed5-4f40-90f1-e347f8f3f3fd:global</vpool_id>
</bucket_billing_info>
admin@ecsnode1:~> 

Tuttavia, controllando le informazioni di misurazione dell'interfaccia utente, viene visualizzata la stessa lettura in GiB anziché in GB, che sembra non essere corretta:

Informazioni sulla misurazione dell'interfaccia utente

 

Se si posiziona il puntatore del mouse su 11,00 GiB, viene visualizzato in byte.
passando il mouse su 11,00 GiB nell'interfaccia utente vengono visualizzati in byte. 

 

11 GB = 11 * 1.000^3 = 1.100000000 byte
11 GiB = 11 * 1.024^3 = 11811160064 byte

 

Cause

I valori restituiti nell'interfaccia utente e nella riga di comando sono entrambi GiB. Nella riga di comando, l'unità viene visualizzata come GB anziché come GiB, il che è errato. 
Pertanto, i valori GiB nella pagina di misurazione sono corretti.

Resolution

La lettura della capacità dei comandi CLI o API REST è true e corrisponde alla lettura di misurazione dell'interfaccia utente. Una versione futura del codice ECS corregge le unità di capacità CLI/API REST da GB in GiB. 

 

 

 

Affected Products

ECS
Article Properties
Article Number: 000273649
Article Type: Solution
Last Modified: 20 Jan 2025
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.