IBM Cloud Docs
扩展文件共享容量

扩展文件共享容量

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

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

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

可扩展存储器的优点

  • 成本管理- 您可能知道数据增长的潜力,但开始时需要的存储空间较小。 扩展能力使客户在开始时就能节省存储成本,然后再根据需求进行扩展。

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

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

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

限制

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

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

在扩展其容量之后,无法将文件共享更改为更小的大小。

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

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

卸载,然后安装修改后的卷,以便操作系统可以识别额外的存储空间。

从 CLI 调整存储器大小

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

从 IBMCLOUD CLI 调整文件共享大小

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

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

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

从 SLCLI 调整文件共享大小

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

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

Options:
  -c, --new-size INTEGER        New Size of file 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.

卸载,然后安装修改后的卷,以便操作系统可以识别额外的存储空间。

使用 API 调整存储器大小

您可以使用对 SOAP Web Service 的 API 调用来增加存储容量。 可以使用您选择的脚本语言进行以下样本 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>
    

卸载,然后安装修改后的卷,以便操作系统可以识别额外的存储空间。

使用 Terraform 调整存储器大小

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

resource "ibm_storage_file" "fs_endurance" {
  type       = "Endurance"
  datacenter = "dal09"
  capacity   = 40
  iops       = 0.25
}

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

resource "ibm_storage_file" "fs_performance" {
  type       = "Performance"
  datacenter = "dal09"
  capacity   = 40
  iops       = 100
}

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

卸载,然后安装修改后的卷,以便操作系统可以识别额外的存储空间。

扩展超过 12 TB 的存储器

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

可以对存储器执行的操作数是有限的。 此限制为 180k IOPS。 因此,如果要供应具有 10 IOPS 的卷,那么最大卷大小为 18 TB。 如果要供应最大大小 24 TB,那么对卷的读和写操作的最大速率为 4 IOPS/GB。