擴充 Block Storage for Classic 容量
無需建立副本或手動遷移資料,即可直接將您的 Block Storage for Classic 儲存空間容量擴充至最高 12 TB。
透過此功能,IBM Cloud® Block Storage for Classic 使用者可立即將現有的 Block Storage for Classic 儲存空間以 GB 為單位擴充,最高可達 12 TB。 您無需建立副本,也無需手動將資料遷移至容量更大的磁碟區。 所有 資料中心 均可使用此功能。
該流量的帳單將自動更新,將新價格的按比例計算差額加計至當前計費週期中。 然後在下一個計費週期計算完整的新金額。
升級程序不是即時的。 提交修改請求後,您很快就會在控制台或透過 API 看到更新後的大小。 重新調整大小不會導致中斷或無法存取儲存體,因此您可以在等待期間照常繼續作業。
當擴充完成時,主機作業系統必須重新掃描磁區,並重新載入多路徑裝置對映以反映大小變更。 您必須調整分割區及檔案系統的大小,以配置新的未用容量。
可擴充儲存空間的優點
-
成本管理- 當您預期資料會成長,但一開始需要的儲存空間較少時,您可以稍後再擴充儲存空間。 此方法可節省成本,並能滿足您不斷成長的需求。
-
成長中的儲存空間需求 - 快速資料成長的客戶需要一種可快速且輕鬆地增加其儲存空間大小的方式,以管理該成長。
擴充儲存空間容量對於抄寫的效果
主要儲存空間上的擴充動作導致自動調整抄本的大小。
限制
在該功能發布之前( 2017 年 4 月至 2017 年 12 月 14 日期間)所配置的儲存空間,其容量最多可擴增至原始大小的 10 倍,且不得超過此上限。 於 2017 年 12 月 14 日之後配置的儲存空間,可擴增至 12 TB。
已佈建「耐久性」之 Block Storage for Classic 的現有大小限制仍然適用(10 IOPS 層級最多為 4 TB,而所有其他層級最多為 12 TB)。
在擴充其容量之後,您無法將區塊儲存體變更為較小的大小。
在控制台中調整儲存空間的大小
- 從 IBM Cloud® 主控台,按一下 功能表
圖示。 然後,按一下基礎架構
>經典基礎架構>儲存> Block Storage for Classic。
- 從清單中選取 iSCSI 磁區,然後按一下省略符號
> 修改磁區。
- 輸入新的儲存空間大小(以 GB 為單位)。
- 檢閱您的選取項目及新的定價。
- 按一下 修改。
- 在幾分鐘之後,就可以使用您的新儲存空間配置。
從 CLI 調整儲存空間大小
開始之前,請決定您要使用的 CLI 用戶端。
- 您可以安裝 IBM Cloud CLI,並使用
ibmcloud plugin install sl來安裝 SL 外掛程式。 如需相關資訊,請參閱 使用外掛程式延伸 IBM Cloud CLI。 - 或者,您可以安裝 SLCLI。
從 IBMCLOUD CLI 重新調整區塊磁區大小
您可以使用 ibmcloud sl block volume-modify 指令來增加磁區的容量。 下列範例透過指定新的較大容量來修改區塊磁區。 使用此指令時,請將 IDENTIFIER 改為磁碟區 ID,例如 12345678。
ibmcloud sl block volume-modify IDENTIFIER --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.
作業系統必須重新掃描儲存體並重新載入多路徑裝置對映,以反映擴充磁區大小。 也需要重新調整分割區及檔案系統的大小。 如需展開檔案系統的相關資訊,請參閱 OS 文件。 例如,RHEL 8-修改邏輯磁區 或 Microsoft-延伸基本磁區。
使用 API 調整儲存空間大小
您可以對 SOAP Web 服務發出 API 呼叫來調整 IOPS。 下列範例 API 要求可以從您選擇的 Scripting 語言進行。
如需 SLAPI 的相關資訊,請參閱 SLDN。
-
下列範例顯示如何增加效能儲存磁區上的容量。
XXXXXXXX是您要增加至2007GB 的磁區 ID。189433、190233及190293是與此磁區的容量及 IOPS 值相關聯的定價資訊 ID。<?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是您要增加至250GB 的磁區 ID。189433、196033及196093是與此磁區的容量及 IOPS 值相關聯的定價資訊 ID。<?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_block 資源,並在 capacity 引數中指定較大的數字,來增加儲存體容量。 下列範例會將「耐久性」磁區的容量增加至 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。
擴張後的步驟
擴充儲存容量後,您必須在主機系統上完成下列步驟,才能使用額外的容量:
- 重新掃描儲存裝置- 您的作業系統需要偵測新的磁碟區大小。
- 重新載入多路徑裝置映射 - 此步驟可確保儲存的所有路徑都反映更新的大小。
- 調整磁碟分割大小- 擴展磁碟分割以使用新的可用空間。
- 擴充檔案系統- 重新調整檔案系統大小以分配新容量。
具體的指令因作業系統而異。 如需詳細說明,請參閱作業系統說明文件:
- Linux ( RHEL/CentOS ):RHEL 8 - 修改邏輯磁碟區
- 視窗:微軟 - 擴展基本卷
無論您使用哪種方法擴充儲存空間(主控台、CLI、API 或 Terraform),都必須完成這些步驟。
擴充超過 12 TB 的儲存體
如果您需要將儲存空間磁區容量增加到超過 12 TB,則可以提交 支援案例來要求新增至允許清單。 當「供應項目經理」核准申請時,您將會透過案例處理程序收到通知。 您也會在主控台看到將儲存空間增加至 16 TB 的選項。