VMware Cloud Community
mtk-
Contributor
Contributor
Jump to solution

Can't increase host datastore space

Local disk shows in partition diagram that i have 22Tb total space. When i try to increase host partition it show that i have no space left.
I try to rescan disk, but that won't help.

0 Kudos
1 Solution

Accepted Solutions
mtk-
Contributor
Contributor
Jump to solution

This didn't work either. I connect to NAS to ESXI, backup everything and recreate partition. Now everything works. I also  get rid of disk lag.

View solution in original post

0 Kudos
11 Replies
pashnal
Enthusiast
Enthusiast
Jump to solution

Hi @mtk- 

I see that you  have created one Raid Volume of 22TB on your esxi host  and you have used that to create a datastore 11TB and now you want to create a new datastore of 11TB using the same Raid Volume correct ?

Unfortunately you will not be able to create a new datastore using the same volume but you can expand the existing same datastore to make it 22TB .

 

If you really want to have 2 datastores of 11 TB then you will have to destroy the datastore and start from scratch where you have to create 2 Raid Volumes and then you can use those volumes to create the datastores . 

 

Please mark this case "Solution Provided" if this has resolved the issue . 

Thanks , 

Pramod Ashnal  

 

0 Kudos
mtk-
Contributor
Contributor
Jump to solution

Hi,

 

I try to increase datastore. When i select "Expand an existing VMFS datastore extent" list is empty and i can't continue

0 Kudos
AnaghB
Enthusiast
Enthusiast
Jump to solution

Hello @mtk- ,

For the datastore space and increasing issue we check the usage and free space on existing Local LUN. there are few commands to check that. Please take SSH (Putty) session to the Esxi host using root credentials and run the below commands.

1.  partedUtil getptbl /vmfs/devices/disks/naa.xxxxxxxx

2. partedUtil getUsableSectors /vmfs/devices/disks/naa.xxxxxxx

The 1st command output will show the current layout and format of disk and the 2nd command will show the free space available on the disk. Please share the complete output of these 2 commands and I will check the used space, free space and then will provide a command to increase the datastore from CLI.

 

Anagh B
VCIX-DCV6.5, VSAN Specialist
Please mark help full or correct if my answer is use full for you
Tags (1)
0 Kudos
mtk-
Contributor
Contributor
Jump to solution

First command: 

[root@esxi:~] partedUtil getptbl /vmfs/devices/disks/naa.6c81f660d64f95002c0d826f0480ae09
gpt
2917867 255 63 46875541504
1 2048 46875539456 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

Second command:

[root@esxi:~] partedUtil getUsableSectors /vmfs/devices/disks/naa.6c81f660d64f95002c0d826f0480ae09
34 46875541470

0 Kudos
AnaghB
Enthusiast
Enthusiast
Jump to solution

Hello @mtk- 

The current size of the Datastore is 46875539456  which is 22 TB itself.  This is the maximum size of the LUN as well. This means that your vmfs Datastore is already increased to 22 TB which is the maximum size of the LUN.

If you are still seeing the size of Datastore as 11 TB then please run the below command

vmkfstools -V

this command will rescan the LUNs for new sizes and will show it on Esxi hosts. Post this run the command

df -h

share the output of both commands.

Anagh B
VCIX-DCV6.5, VSAN Specialist
Please mark help full or correct if my answer is use full for you
0 Kudos
mtk-
Contributor
Contributor
Jump to solution

[root@esxi:~] vmkfstools -V
[root@esxi:~] df -h
Filesystem Size Used Available Use% Mounted on
VMFS-6 10.9T 9.1T 1.9T 83% /vmfs/volumes/Data SAS
VMFSOS 26.5G 1.6G 24.9G 6% /vmfs/volumes/LOCKER-646785a0-a97ef500-9c7c-b083fec90c42
vfat 1023.8M 263.3M 760.5M 26% /vmfs/volumes/BOOTBANK1
vfat 1023.8M 0.0B 1023.8M 0% /vmfs/volumes/BOOTBANK2

0 Kudos
AnaghB
Enthusiast
Enthusiast
Jump to solution

Hello @mtk- ,

Please execute the below command to fix the gpt partition on the LUN

partedUtil fixGpt "/vmfs/devices/disks/naa.xxxxxxx"

 

Post running this command on Esxi putty session please execute vmkfstools -V command

Let me know the results post this

Anagh B
VCIX-DCV6.5, VSAN Specialist
Please mark help full or correct if my answer is use full for you
0 Kudos
mtk-
Contributor
Contributor
Jump to solution

[root@esxi:~] partedUtil fixGpt "/vmfs/devices/disks/naa.6c81f660d64f95002c0d826f0480ae09"

FixGpt tries to fix any problems detected in GPT table.
Please ensure that you don't run this on any RDM (Raw Device Mapping) disk.
Are you sure you want to continue (Y/N): Y
gpt
2917867 255 63 46875541504
1 2048 46875539456 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

[root@esxi:~] vmkfstools -V

[root@esxi:~] df -h
Filesystem Size Used Available Use% Mounted on
VMFS-6 10.9T 9.1T 1.9T 83% /vmfs/volumes/Data SAS
VMFSOS 26.5G 1.6G 24.9G 6% /vmfs/volumes/LOCKER-646785a0-a97ef500-9c7c-b083fec90c42
vfat 1023.8M 263.3M 760.5M 26% /vmfs/volumes/BOOTBANK1
vfat 1023.8M 0.0B 1023.8M 0% /vmfs/volumes/BOOTBANK2
[root@esxi:~]

0 Kudos
AnaghB
Enthusiast
Enthusiast
Jump to solution

Hello @mtk- 

We have to check this on zoom session. If you are comfortable then please reply with your email id so we can get on zoom session and audio and can have a look at this issue.

 

Anagh B
VCIX-DCV6.5, VSAN Specialist
Please mark help full or correct if my answer is use full for you
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

Increasing a VMFS datastore involves two tasks.

  1. Increasing the partition size
  2. Expanding the VMFS file system

From what you've posted it looks like the second step did not run for whatever reason.

Please see https://kb.vmware.com/s/article/2002461 which describes a manual expansion, with the "vmkfstools --growfs ..." command.
Most likely needless to say, but please ensure that you have a current backup.

André

0 Kudos
mtk-
Contributor
Contributor
Jump to solution

This didn't work either. I connect to NAS to ESXI, backup everything and recreate partition. Now everything works. I also  get rid of disk lag.

0 Kudos