Creating a Datastore on VMware ESXi 6.7U3 USB Boot Drive

Before:

Before
after
after
Datastore on ESXi 6.7U3 USB Boot Drive
Reference:
https://darkglade.com/2019/07/05/building-a-datastore-on-your-esxi-boot-usb/


ls /dev/disks/

mpx.vmhba32:C0:T0:L0
mpx.vmhba32:C0:T0:L0:1
mpx.vmhba32:C0:T0:L0:5
mpx.vmhba32:C0:T0:L0:6
mpx.vmhba32:C0:T0:L0:7
mpx.vmhba32:C0:T0:L0:8
mpx.vmhba32:C0:T0:L0:9
t10.ATA_____HGST_HTS725050A7E630__________________________RCF50ACE2LM7ZM
t10.ATA_____HGST_HTS725050A7E630__________________________RCF50ACE2LM7ZM:1
t10.ATA_____HGST_HTS725050A7E630__________________________RCF50ACE2LM7ZM:2
t10.ATA_____HGST_HTS725050A7E630__________________________RCF50ACE2LM7ZM:3
t10.ATA_____HGST_HTS725050A7E630__________________________RCF50ACE2LM7ZM:4
t10.ATA_____HGST_HTS725050A7E630__________________________RCF50ACE2LM7ZM:5
t10.NVMe____SAMSUNG_MZVPW256HEGL2D00000______________77B30061CB382500
t10.NVMe____SAMSUNG_MZVPW256HEGL2D00000______________77B30061CB382500:1
t10.NVMe____SAMSUNG_MZVPW256HEGL2D00000______________77B30061CB382500:2
t10.NVMe____SAMSUNG_MZVPW256HEGL2D00000______________77B30061CB382500:3
t10.NVMe____SAMSUNG_MZVPW256HEGL2D00000______________77B30061CB382500:4
t10.NVMe____SAMSUNG_MZVPW256HEGL2D00000______________77B30061CB382500:5
vml.0000000000766d68626133323a303a30
vml.0000000000766d68626133323a303a30:1
vml.0000000000766d68626133323a303a30:5
vml.0000000000766d68626133323a303a30:6
vml.0000000000766d68626133323a303a30:7
vml.0000000000766d68626133323a303a30:8
vml.0000000000766d68626133323a303a30:9
vml.01000000002020202020205243463530414345324c4d375a4d484753542048
vml.01000000002020202020205243463530414345324c4d375a4d484753542048:1
vml.01000000002020202020205243463530414345324c4d375a4d484753542048:2
vml.01000000002020202020205243463530414345324c4d375a4d484753542048:3
vml.01000000002020202020205243463530414345324c4d375a4d484753542048:4
vml.01000000002020202020205243463530414345324c4d375a4d484753542048:5
vml.0100000000373742335f303036315f434233385f323530300053414d53554e
vml.0100000000373742335f303036315f434233385f323530300053414d53554e:1
vml.0100000000373742335f303036315f434233385f323530300053414d53554e:2
vml.0100000000373742335f303036315f434233385f323530300053414d53554e:3
vml.0100000000373742335f303036315f434233385f323530300053414d53554e:4
vml.0100000000373742335f303036315f434233385f323530300053414d53554e:5



[root@HP-800-G2-Mini:~] partedUtil getptbl /dev/disks/vml.0000000000766d68626133323a303a30
gpt
3773 255 63 60628992
1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B systemPartition 128
5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0


[root@HP-800-G2-Mini:~] partedUtil add /dev/disks/vml.0000000000766d68626133323a303a30 gpt "2 7086080 60628992 AA31E02A400F11DB9590000C2911D1B8 0"
gpt
3773 255 63 60628992
1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B 128
5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 0
6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 0
7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 0
8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 0
9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 0
2 7086080 60628992 AA31E02A400F11DB9590000C2911D1B8 0
Error: Can't have a partition outside the disk!
AddNewPartitions: ped_partition_new failed



[root@HP-800-G2-Mini:~] partedUtil setptbl /dev/disks/vml.0000000000766d68626133323a303a30 gpt "2 7086080 60628991 AA31E02A400F11DB9590000C2911D1B8 0"
gpt
0 0 0 0
2 7086080 60628991 AA31E02A400F11DB9590000C2911D1B8 0
Error: Unable to satisfy all constraints on the partition.



[root@HP-800-G2-Mini:~] partedUtil add /dev/disks/vml.0000000000766d68626133323a303a30 gpt "2 7086081 60628000 AA31E02A400F11DB9590000C2911D1B8 0"
gpt
3773 255 63 60628992
1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B 128
5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 0
6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 0
7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 0
8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 0
9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 0
2 7086081 60628000 AA31E02A400F11DB9590000C2911D1B8 0

[root@HP-800-G2-Mini:~] partedUtil getptbl /dev/disks/vml.0000000000766d68626133323a303a30
gpt
3773 255 63 60628992
1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B systemPartition 128
5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
2 7086081 60628000 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628900


[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628950

[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628960
Error: Unable to satisfy all constraints on the partition.
Error: Can't have overlapping partitions.
Disk set partition failed

[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628955
[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628956
[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628957
[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628958
[root@HP-800-G2-Mini:~] partedUtil resize /dev/disks/vml.0000000000766d68626133323a303a30 2 7086081 60628959
Error: Unable to satisfy all constraints on the partition.
Error: Can't have overlapping partitions.
Disk set partition failed

[root@HP-800-G2-Mini:~] vmkfstools -C vmfs6 -S USB_Boot_Disk_DS /dev/disks/vml.0000000000766d68626133323a303a30:2
create fs deviceName:'/dev/disks/vml.0000000000766d68626133323a303a30:2', fsShortName:'vmfs6', fsName:'USB_Boot_Disk_DS'
deviceFullPath:/dev/disks/mpx.vmhba32:C0:T0:L0:2 deviceFile:mpx.vmhba32:C0:T0:L0:2
ATS on device /dev/disks/mpx.vmhba32:C0:T0:L0:2: 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 "mpx.vmhba32:C0:T0:L0:2" with blockSize 1048576, unmapGranularity 1048576, unmapPriority default and volume label "USB_Boot_Disk_DS".
Successfully created new volume: 5e20d2e8-aa494052-eb0e-ecb1d76ed597
[root@HP-800-G2-Mini:~]