[root@ctrl:~] /usr/lib/vmware/misc/bin/fdisk -l
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00001_____________: 167772160 sectors, 0
Logical sector size: 512
Disk identifier (GUID): 2ccb2252-4403-4683-8e8f-92cfd09865d9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 167772126
Number Start (sector) End (sector) Size Name
1 64 204863 100M BOOT
5 208896 8595455 4095M BOOTBANK1
6 8597504 16984063 4095M BOOTBANK2
7 16986112 167772126 71.9G OSDATA
Disk /dev/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________: 160 GB, 171798691840 bytes, 335544320 sectors
20886 cylinders, 255 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Disk /dev/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________ doesn't contain a valid partition table
# ↑ 新規増設ディスク
[root@ctrl:~] esxcli storage core device capacity list
Device Physical Blocksize Logical Blocksize Logical Block Count Size Format Type
------------------------------------------------------------------------ ------------------ ----------------- ------------------- ---------- -----------
t10.ATA_____QEMU_HARDDISK___________________________QM00001_____________ 512 512 167772160 81920 MiB 512n
t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________ 512 512 335544320 163840 MiB 512n
[root@ctrl:~] partedUtil get "/vmfs/devices/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________"
20886 255 63 335544320
# GPT パーティションテーブルを作成
# partedUtil setptbl [デバイス] gpt ["パーティション番号 開始セクター 終了セクター タイプ 属性"]
# 開始セクター ⇒ VMFS-6 は 2048 を指定
# タイプ ⇒ VMFS データストアを指定 → AA31E02A400F11DB9590000C2911D1B8
# VMFS : Virtual Machine File System
[root@ctrl:~] partedUtil setptbl \
"/vmfs/devices/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________" gpt \
"1 2048 $(expr 335544320 - 2048) AA31E02A400F11DB9590000C2911D1B8 0"
gpt
0 0 0 0
1 2048 335542272 AA31E02A400F11DB9590000C2911D1B8 0
[root@ctrl:~] partedUtil get "/vmfs/devices/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________"
20886 255 63 335544320
1 2048 335542272 0 0
# データストアの設定
# -S (任意のデータストア名)
# :1 ⇒ パーティション番号
[root@ctrl:~] vmkfstools -C vmfs6 -S VM-Data \
"/vmfs/devices/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________:1"
create fs deviceName:'/vmfs/devices/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________:1', fsShortName:'vmfs6', fsName:'VM-Data'
deviceFullPath:/dev/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________:1 deviceFile:t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________:1
ATS on device /dev/disks/t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________:1: not supported
.
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...
Creating vmfs6 file system on "t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________:1" with blockSize 1048576, unmapGranularity 1048576, unmapPriority default and volume label "VM-Data".
Successfully created new volume: 63f86748-0a69d2d8-dc5c-52540094d817
[root@ctrl:~] esxcli storage vmfs extent list
Volume Name VMFS UUID Extent Number Device Name Partition
------------------------------------------ ----------------------------------- ------------- ------------------------------------------------------------------------ ---------
VM-Data 63f86748-0a69d2d8-dc5c-52540094d817 0 t10.ATA_____QEMU_HARDDISK___________________________QM00003_____________ 1
OSDATA-63edd31c-7f6b194e-4446-52540094d817 63edd31c-7f6b194e-4446-52540094d817 0 t10.ATA_____QEMU_HARDDISK___________________________QM00001_____________ 7
[root@ctrl:~] esxcli storage filesystem list
Mount Point Volume Name UUID Mounted Type Size Free
------------------------------------------------- ------------------------------------------ ----------------------------------- ------- ------ ------------ ------------
/vmfs/volumes/63f86748-0a69d2d8-dc5c-52540094d817 VM-Data 63f86748-0a69d2d8-dc5c-52540094d817 true VMFS-6 171530256384 170019258368
/vmfs/volumes/63edd31c-7f6b194e-4446-52540094d817 OSDATA-63edd31c-7f6b194e-4446-52540094d817 63edd31c-7f6b194e-4446-52540094d817 true VMFS-L 77040975872 73955016704
/vmfs/volumes/32a32ba4-c7431b3a-62bb-53408cbb2f76 BOOTBANK1 32a32ba4-c7431b3a-62bb-53408cbb2f76 true vfat 4293591040 4079091712
/vmfs/volumes/70d28441-c34632eb-ec8b-af86d58e456a BOOTBANK2 70d28441-c34632eb-ec8b-af86d58e456a true vfat 4293591040 4293525504
|