IBM Cloud Docs
展开 Block Storage for Classic 容量

展开 Block Storage for Classic 容量

有了这项功能,IBM Cloud® Block Storage for Classic用户可以以 GB 为增量立即扩展现有Block Storage for Classic的大小,最高可达 12 TB。 您无需创建副本或手动将数据迁移到更大的卷中。 所有 数据中心 均可使用此功能。

批量计费会自动更新,在当前计费周期中按比例添加新价格的差额。 在下一个计费周期中将采用新的完整金额记帐。

升级过程不是即时的。 您提交修改请求后不久就会在控制台或通过 API 看到更新后的尺寸。 调整大小不会导致中断或无法访问存储器,因此您可以在等待期间正常继续操作。

扩展完成后,主机操作系统必须重新扫描卷,并重新装入多路径设备映射以反映大小的更改。 必须调整分区和文件系统的大小以分配新的未使用容量。

可扩展存储器的优点

  • 成本管理- 您可能知道数据增长的潜力,但开始时需要的存储空间较小。 扩展能力使我们的客户能够节省存储成本,并在日后发展壮大,以满足他们的需求。

  • 不断增长的存储需求 - 遇到快速数据增长的客户需要一种方法来迅速、轻松地增大其存储器大小,以管理这种增长情况。

扩展存储容量对复制的影响

对主存储器执行扩展操作将会自动调整副本大小。

限制

在此功能发布之前,即 2017 年 4 月至 2017 年 12 月 14 日期间调配的存储空间可增加到原始大小的 10 倍,但不能再增加。 2017 年 12 月 14 日之后配置的存储空间可增至 12 TB。

使用“耐久性”类型供应的 Block Storage for Classic 的现有大小限制仍然适用(对于 10 IOPS 层,最高为 4 TB,对于其他所有层,最高为 12 TB)。

在扩展其容量之后,无法将块存储器更改为更小的大小。

调整控制台中存储空间的大小

  1. 在 IBM Cloud® 控制台中,单击 菜单 "菜单" 图标 图标。 然后,单击 Infrastructure VPC 图标 > Classic Infrastructure > Storage > Block Storage for Classic.
  2. 从列表中选择 iSCSI 卷,然后单击省略号 "操作" 图标 > 修改卷
  3. 输入新的存储器大小(以 GB 为单位)。
  4. 复查您的选择和新的定价。
  5. 单击 修改
  6. 新的存储器分配会在几分钟后可用。

操作系统必须重新扫描存储器并重新装入多路径设备映射以反映扩展的卷大小。 还需要调整分区和文件系统的大小。 有关扩展文件系统的更多信息,请参阅您的操作系统文档。 例如,RHEL 8-修改逻辑卷Microsoft-扩展基本卷

从 CLI 调整存储器大小

开始之前,请决定要使用的 CLI 客户机。

从 IBMCLOUD CLI 调整块卷大小

您可以使用 ibmcloud sl block volume-modify 命令来增加卷的容量。 以下示例通过指定新的更大容量来修改块卷。

ibmcloud sl block volume-modify 12345678 --new-size 1000

有关可用于此命令的所有参数的更多信息,请参阅 ibmcloud sl block volume-modify

从 SLCLI 调整块卷的大小

要增加存储容量,可以在 SLCLI 中使用以下命令。

$ slcli block volume-modify --help
Usage: slcli block volume-modify [OPTIONS] VOLUME_ID

Options:
  -c, --new-size INTEGER        New Size of block volume in GB. ***If no size
                                is given, the original size of volume is
                                used.***
                                Potential Sizes: [20, 40, 80, 100,
                                250, 500, 1000, 2000, 4000, 8000, 12000]
                                Minimum: [the original size of the volume]
  -i, --new-iops INTEGER        Performance Storage IOPS, between 100 and 6000
                                in multiples of 100 [only for performance
                                volumes] ***If no IOPS value is specified, the
                                original IOPS value of the volume will be
                                used.***
                                Requirements: [If original IOPS/GB
                                for the volume is less than 0.3, new IOPS/GB
                                must also be less than 0.3. If original
                                IOPS/GB for the volume is greater than or
                                equal to 0.3, new IOPS/GB for the volume must
                                also be greater than or equal to 0.3.]
  -t, --new-tier [0.25|2|4|10]  Endurance Storage Tier (IOPS per GB) [only for
                                endurance volumes] ***If no tier is specified,
                                the original tier of the volume will be
                                used.***
                                Requirements: [If original IOPS/GB
                                for the volume is 0.25, new IOPS/GB for the
                                volume must also be 0.25. If original IOPS/GB
                                for the volume is greater than 0.25, new
                                IOPS/GB for the volume must also be greater
                                than 0.25.]
  -h, --help                    Show this message and exit.

操作系统必须重新扫描存储器并重新装入多路径设备映射以反映扩展的卷大小。 还需要调整分区和文件系统的大小。 有关扩展文件系统的更多信息,请参阅您的操作系统文档。 例如,RHEL 8-修改逻辑卷Microsoft-扩展基本卷

使用 API 调整存储器大小

您可以通过对 SOAP Web Service 进行 API 调用来调整 IOPS。 可以使用您选择的脚本语言来发出以下样本 API 请求。

有关 SLAPI 的更多信息,请参阅 SLDN

  • 以下示例显示如何增加性能存储卷上的容量。XXXXXXXX 是要增加到 2007 GB 的卷的标识。189433190233190293 是与此卷的容量和 IOPS 值相关联的定价信息的标识。

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.service.softlayer.com/soap/v3.1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     <SOAP-ENV:Header>
       <ns1:authenticate>
       </ns1:authenticate>
     </SOAP-ENV:Header>
     <SOAP-ENV:Body>
       <ns1:placeOrder>
         <orderData xsi:type="ns1:SoftLayer_Container_Product_Order_Network_Storage_AsAService_Upgrade">
           <volume xsi:type="ns1:SoftLayer_Network_Storage">
               <id xsi:type="xsd:int">XXXXXXXX</id>
           </volume>
           <volumeSize xsi:type="xsd:int">2007</volumeSize>
           <packageId xsi:type="xsd:int">759</packageId>
           <prices SOAP-ENC:arrayType="ns1:SoftLayer_Product_Item_Price[3]" xsi:type="SOAP-ENC:Array">
               <item xsi:type="ns1:SoftLayer_Product_Item_Price">
                   <id xsi:type="xsd:int">189433</id>
               </item>
               <item xsi:type="ns1:SoftLayer_Product_Item_Price">
                   <id xsi:type="xsd:int">190233</id>
               </item>
               <item xsi:type="ns1:SoftLayer_Product_Item_Price">
                   <id xsi:type="xsd:int">190293</id>
               </item>
           </prices>
         </orderData>
       </ns1:placeOrder>
     </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    
  • 增加耐久性存储卷上的容量。XXXXXXXX 是要增加到 250 GB 的卷的标识。189433196033196093 是与此卷的容量和 IOPS 值相关联的定价信息的标识。

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.service.softlayer.com/soap/v3.1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     <SOAP-ENV:Header>
       <ns1:authenticate>
       </ns1:authenticate>
     </SOAP-ENV:Header>
     <SOAP-ENV:Body>
       <ns1:placeOrder>
         <orderData xsi:type="ns1:SoftLayer_Container_Product_Order_Network_Storage_AsAService_Upgrade">
           <volume xsi:type="ns1:SoftLayer_Network_Storage">
               <id xsi:type="xsd:int">XXXXXXXX</id>
           </volume>
           <packageId xsi:type="xsd:int">759</packageId>
             <volumeSize xsi:type="xsd:int">250</volumeSize>
           <prices SOAP-ENC:arrayType="ns1:SoftLayer_Product_Item_Price[3]" xsi:type="SOAP-ENC:Array">
               <item xsi:type="ns1:SoftLayer_Product_Item_Price">
                   <id xsi:type="xsd:int">189433</id>
               </item>
               <item xsi:type="ns1:SoftLayer_Product_Item_Price">
                   <id xsi:type="xsd:int">196033</id>
               </item>
               <item xsi:type="ns1:SoftLayer_Product_Item_Price">
                   <id xsi:type="xsd:int">196093</id>
               </item>
           </prices>
         </orderData>
       </ns1:placeOrder>
     </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    

操作系统必须重新扫描存储器并重新装入多路径设备映射以反映扩展的卷大小。 还需要调整分区和文件系统的大小。 有关扩展文件系统的更多信息,请参阅您的操作系统文档。 例如,RHEL 8-修改逻辑卷Microsoft-扩展基本卷

使用 Terraform 调整存储器大小

您可以通过使用 ibm_storage_block 资源并在容量参数中指定更大的数字来增加存储容量。 以下示例将耐久性卷的容量增加到 40 GB。

resource "ibm_storage_block" "test1" {
        type = "Endurance"
        datacenter = "dal09"
        capacity = 40
        iops = 0.25
        os_format_type = "Linux"

        # Optional fields
        allowed_virtual_guest_ids = [ 27699397 ]
        allowed_ip_addresses = ["10.40.98.193", "10.40.98.200"]
        snapshot_capacity = 10
        hourly_billing = true
}

以下示例将性能卷的容量增加到 40 GB。

resource "ibm_storage_block" "test2" {
        type = "Performance"
        datacenter = "dal09"
        capacity = 40
        iops = 100
        os_format_type = "Linux"

        # Optional fields
        allowed_virtual_guest_ids = [ 27699397 ]
        allowed_ip_addresses = ["10.40.98.193", "10.40.98.200"]
        hourly_billing = true
}

有关自变量和属性的更多信息,请参阅 ibm_storage_block

操作系统必须重新扫描存储器并重新装入多路径设备映射以反映扩展的卷大小。 还需要调整分区和文件系统的大小。 有关扩展文件系统的更多信息,请参阅您的操作系统文档。 例如,RHEL 8-修改逻辑卷Microsoft-扩展基本卷

扩展超过 12 TB 的存储器

如果需要将存储卷容量增加到超过 12 TB,那么可以通过提交 支持案例来请求将其添加到允许列表。 当产品经理核准请求时,将通过案例流程通知您。 您还将看到在控制台中将存储空间增加到 16 TB 的选项。