VMware Cloud Community
duzolini
Contributor
Contributor

Expand STORAGE DISK

Hi, I have the following doubt.

I install to new disks in my storage DS3400, expand it to my vmware LUN. Now I have 1.7 tera and after a have 1.1 tera.

But in the Vmware, I only see 1,1 tera. Then a I click in the storage and has the option to extend the free space, but it will destroy all my files.

Isn there any maner to do it without lose my vms ?

What is the right process to do it ?

Reply
0 Kudos
3 Replies
AndreTheGiant
Immortal
Immortal

It was better create a new LUN... not extend the existing one... Cause ESX 3.x does not have the "grow" function.

You have to extent the VMFS manually...

First create the new partition with fdisk /dev/sdX (change X with your right name, probably 'a')

Create a new primary partition (number 2) and change the type with fd (if you do not know how fdisk work, see on some Linux manual)

Then format the new partition (maybe is not necessary) with:

vmkfstools -C vmfs3 -S ExtentLUN vmhbaY:0:W:2 (where vmhbaY:0:W is your LUN name in ESX)

Finally extend the exisiting VMFS datastore:

vmkfstools -Z vmhbaY:0:W:2 vmhbaY:0:W:1

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
Reply
0 Kudos
duzolini
Contributor
Contributor

Nusss. I can believe that vmware is so limited to expand the disk.

Reply
0 Kudos
AndreTheGiant
Immortal
Immortal

This limit is with ESX 3.x.

With ESX 4.x you can "simply" grow the volume with free space.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
Reply
0 Kudos