他のストレージ デバイス上に新しいエクステントを追加(スパニング)するか、既存のストレージ デバイスのサイズを拡大してから、隣接する利用可能な容量を使用できるように既存のデータストア エクステントを拡張することにより、vSphere ESXi の VMFS データストアのサイズを増やすことができます。
VMFS データストアのエクステントは、MBR/EBR パーティショニング スキームに従って、プライマリ パーティションまたは論理パーティションに格納することができます。ESX 起動デバイス上の VMFS データストアは論理パーティションに格納され、ESXi 起動デバイス上の VMFS データストアはプライマリ パーティションに格納されます。
前提条件:
警告:プライマリ パーティションおよび論理パーティションが重複しないように十分注意してください。重複すると、データが失われることがあります。
ローカル起動ストレージ デバイス上のデータストアのサイズを増やすためには、さらに大きいファイルシステムに対応できるパーティション レイアウトを再作成してから、より大きなパーティションを使用できるようにデータストアを拡張します。
naa
、mpx
、eui
、vml
、など)。詳細については、「Identifying disks when working with VMware ESXi/ESX (1014953)」を参照してください。# vmkfstools -P "/vmfs/volumes/DatastoreName"
VMFS-3.33 file system spanning 1 partitions.
File system label (if any): DatastoreName
Mode: public
Capacity 145223581696 (138496 file blocks * 1048576), 43937431552 (41902 blocks) avail
UUID: 4a14d968-88bf7161-700f-00145ef48f76
Partitions spanned (on "lvm"):
mpx.vmhba0:C0:T0:L0:3
mpx.vmhba0:C0:T0:L0
を使用します。mpx.vmhba0:C0:T0:L0
を、使用するデバイスの識別子に置き換えます(始まり方が異なる場合があります)。たとえば、naa
または eui
などです。partedUtil
コマンドで、デバイス上の既存のパーティションを特定します。詳細については、「Using the partedUtil command line utility on ESXi and ESX (1036609)」を参照してください。# partedUtil get "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0"
15360 64 32 40000001 - Geometry of the disk. Disk size in sectors is 40000001.
4 32 8191 4 128 - Primary #4, Type 4=Fat161 8192 1843199 5 0 - Primary #1, Type 5=Extended, Sectors 8192-1843199
5 8223 520191 6 0 - Logical #5, Type 6=Fat16, Sectors 8223-520191
6 520224 1032191 6 0 - Logical #6, Type 6=Fat16, Sectors 520224-1032191
7 1032224 1257471 252 0 - Logical #7, Type 252=0xFC=VMKcore, Sectors 1032224-1257471
8 1257504 1843119 6 0 - Logical #8, Type 6=Fat16, Sectors 1257504-1843119
2 1843200 10229759 6 0 - Primary #2, Type 6=Fat16, Sectors 1843200-10229759
3 10229760 31457279 251 0 - Primary #3, Type 251=0xFB=VMFS, Sectors 10229760-31457279
| | | | |
| | | | \--- attribute
| | | \------- type
| | \---------------- ending sector
| \------------------------- starting sector
\--------------------------- partition number
8223 | 520191 | 520224 | 1032191 | 1032224 | 1257471 | 1257504 | 1843119 | ||||||||
Logical #5 | Logical #6 | Logical #7 | Logical #8 | Datastore | |||||||||||
63 | 2249099 | 2474010 | 520191 | 1843200 | 10229759 | 10229760 | 31457279 | 31457280 | 40000000 | ||||||
Primary | Partition 1
Type 5 (Extended) | Primary #2 | Primary #3 | Empty Space |
partedUtil getUsableSectors
を使用して最後に使用可能なセクタを取得します。40000001 - 1 = 40000000
が使用可能な最後のセクターと見なされ、これは次のコマンドの出力に一致します。# partedUtil getUsableSectors "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0"
34 40000000
partedUtil
コマンドを使用して、ターゲット VMFS データストアが格納されているパーティションのサイズを変更し、パーティションの既存の開始セクターと目的の終了セクターを指定します。# partedUtil resize "/vmfs/devices/disks/Device" PartitionNumber NewStartingSector NewEndingSector
# partedUtil resize "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0" 3 10229760 40000000
partedUtil fixGPT
コマンドを使用し、デバイスを指定してバックアップ GPT ヘッダーを再作成します。# partedUtil fixGpt
"/vmfs/devices/disks/Device"
partedUtil
コマンドにより警告が報告されることがあります。The kernel was unable to re-read the partition table on /dev/Device (Device or resource busy).
8223 | 520191 | 520224 | 1032191 | 1032224 | 1257471 | 1257504 | 1843119 | ||||||
Logical #5 | Logical #6 | Logical #7 | Logical #8 | Datastore | Empty Space | ||||||||
63 | 2249099 | 2474010 | 520191 | 1843200 | 10229759 | 10229760 | 40000000 | ||||||
Primary | Partition 1
Type 5 (Extended) | Primary #2 | Primary #3 |
vmkfstools -V
を実行して、VMFS ボリュームの更新を実行します。vmkfstools --growfs
コマンドを使用してターゲット VMFS データストアを含むパーティションを 2 回指定して、新しい領域に VMFS データストアを拡張します。# vmkfstools --growfs "/vmfs/devices/disks/Device:partition" "/vmfs/devices/disks/Device:partition"
# vmkfstools --growfs "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0:3" "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0:3"
hostd
および vCenter Server、または接続されたクライアントによってキャッシュできます。データストアの容量と使用率を更新するには、vSphere Client の [更新] ボタンをクリックします。