VMware Cloud Community
arimicci
Contributor
Contributor
Jump to solution

Error creating a new datastore

Hello,

on an esxi 6.7.0 Update 3 (Build 14320388) I did deleted the datastore residing in same disk as the esxi has been installed, then I tried to create a new datastore using the free space left after deletion (the reason is a change of format type, from vmfs6 to vmfs5).

Trying to create the new datastore using the provided procedure, I correctly see the disk:

pastedImage_0.png

then, when I select the free partition, set it to vmfs5 and then move the slider to full space available, this is what the procedure shows me:

pastedImage_1.png

pastedImage_2.png

and this happens when I click on finish:

pastedImage_4.png

I just suppose the partitions have been used incorrectly, but any help here is very appreciated, to understand how to correctly create the new datastore.

Thanks in Advance!

Andrea

Reply
0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

I just reproduced this on one of my test systems, and the following two commands worked for me.

  1. partedUtil add "/vmfs/devices/disks/t10.ATA_____Samsung_SSD_860_EVO_M.2_500GB___________S414NB0M127326R_____" gpt "3 15472640 976773134 AA31E02A400F11DB9590000C2911D1B8 0"
  2. vmkfstools -C vmfs6 -S "Datastore 1" "/vmfs/devices/disks/t10.ATA_____Samsung_SSD_860_EVO_M.2_500GB___________S414NB0M127326R_____:3"

The first command creates the VMFS partition (partition 3) adjacent to the last one (partition 2). Details for start (red) and end (green) sectors are taken from your reply.

The second command formats the partition with the VMFS6 file system.

André

View solution in original post

Reply
0 Kudos
5 Replies
a_p_
Leadership
Leadership
Jump to solution

The GUI only supports creating new datastores on blank disk/LUNs.

It may be possible to recreate, and format the VMFS partition from the command line. For this, the partition table needs to be updated with the additional partition using the partedUtil command, and then the new VFS partition has to be formatted using the vmkfstools command.

I can't promise anything, but if you provide the output (as text, not a screenshot) for the following commands, I will take a look at this.

  1. partedUtil getUsableSectors "/vmfs/devices/disks/<device-id>"
  2. partedUtil getptbl "/vmfs/devices/disks/<device-id>"

To find out the <device-id> run ls -l /vmfs/devices/disks (it's the one without a partition number, i.e. not ending with s.th. like ":#").

André

Reply
0 Kudos
arimicci
Contributor
Contributor
Jump to solution

Thank you!

Here are the results:

[root@rsthost5:~] partedUtil getUsableSectors "/vmfs/devices/disks/t10.ATA_____Samsung_SSD_860_EVO_M.2_500GB___________S414NB0M127326R_____"

34 976773134

[root@rsthost5:~]

[root@rsthost5:~] partedUtil getptbl "/vmfs/devices/disks/t10.ATA_____Samsung_SSD_860_EVO_M.2_500GB___________S414NB0M127326R_____"

gpt

60801 255 63 976773168

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 7086080 15472639 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

[root@rsthost5:~]

Reply
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

I just reproduced this on one of my test systems, and the following two commands worked for me.

  1. partedUtil add "/vmfs/devices/disks/t10.ATA_____Samsung_SSD_860_EVO_M.2_500GB___________S414NB0M127326R_____" gpt "3 15472640 976773134 AA31E02A400F11DB9590000C2911D1B8 0"
  2. vmkfstools -C vmfs6 -S "Datastore 1" "/vmfs/devices/disks/t10.ATA_____Samsung_SSD_860_EVO_M.2_500GB___________S414NB0M127326R_____:3"

The first command creates the VMFS partition (partition 3) adjacent to the last one (partition 2). Details for start (red) and end (green) sectors are taken from your reply.

The second command formats the partition with the VMFS6 file system.

André

Reply
0 Kudos
arimicci
Contributor
Contributor
Jump to solution

Thank you for your example!
The datastore creation has been done without issues.

Thanks again,

Andrea

Reply
0 Kudos
dr_how
Contributor
Contributor
Jump to solution

hi guys

please check my status

i need do the same

 

partedUtil getptbl "t10.ATA_____INTEL_SSDSC2KB480G8_____________________BTYF832502BZ480BGN__"

result:

gpt
58369 255 63 937703088
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 7086080 15472639 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

 

 

 

partedUtil getUsableSectors "/vmfs/devices/disks/t10.ATA_____INTEL_SSDSC2KB480G8_____________________BTYF832502BZ480BGN__"
34 937703054

 

 as i under stand the command should be this way

 

 partedUtil add "/vmfs/devices/disks/t10.ATA_____INTEL_SSDSC2KB480G8_____________________BTYF832502BZ480BGN__" gpt "3 15472641 937703000 AA31E02A400F11DB9590000C2911D1B8 0"

 

 but i get usage instruction

 

partedUtil add "/vmfs/devices/disks/t10.ATA_____INTEL_SSDSC2KB480G8_____________________BTYF832502BZ480BGN__" gpt "10 15472641 93770
300 AA31E02A400F11DB9590000C2911D1B8 0"
Usage:
 Get Partitions : get <diskName>
 Set Partitions : set <diskName> ["partNum startSector endSector type attr"]*
 Delete Partition : delete <diskName> <partNum>
 Resize Partition : resize <diskName> <partNum> <start> <end>
 Get Partitions : getptbl <diskName>
 Set Partitions : setptbl <diskName> <label> ["partNum startSector endSector type/guid attr"]*
 Fix Partition Table : fix <diskName>
 Create New Label (all existing data will be lost): mklabel <diskName> <label>
 Show commonly used partition type guids : showGuids
 Get usable first and last sectors : getUsableSectors <diskName>
 Fix GPT Table interactively : fixGpt <diskName>

 

i use esxi 6.5

i try also "partedUtil set"

 partedUtil set  "/vmfs/devices/disks/t10.ATA_____INTEL_SSDSC2KB480G8_____________________BTYF832502BZ480BGN__" gpt "3 15472649 93770
30 AA31E02A400F11DB9590000C2911D1B8 0"
Invalid number of tokens

Invalid partition information: gpt

Invalid Partition information
Reply
0 Kudos