Resizing your VMFS the right way, exploring the next version of ESX/vCenter

I’ve been playing around with my vSphere/Next gen ESX lab. I was replaying the VMworld lab and one of the assignments was to  resize a VMFS volume. Yes that’s correct, resize not extent. Extents have been discussed by many and the general consensus is avoid them if/when possible. But when running out of diskspace you don’t always have the option to avoid them. Some can’t afford the downtime that comes with a “cold migration”, and most aren’t willing to take the risk of using storage vmotion when running out of diskspace. (Snapshot is placed on source VMFS volume) This has all been solved in the next version of ESX/vCenter. You can resize your VMFS volume without resorting to extents, and you can do this with the vCenter client.

The original size:

First thing you will need to do is increase the size of the LUN on your SAN. If your SAN doesn’t support LUN resizing you can still do it the old fashion way, extent.

Next would be rescan your HBA, you all know how to do this, no point of showing a screenshot. Next up would be resizing your VMFS volume. Right click on your VMFS volumes and click properties on your LUN and check if it has grown:

As you can see above it’s a 58GB LUN, now next screenshot will show you how much freespace there’s left on the LUN:

Fully utilize the LUN or keep some diskspace on the LUN:

Are you sure you want to resize it?

Proof:

No endless discussions anymore on the use of extents, just resize the volume!




You can skip to the end and leave a response. Pinging is currently not allowed.

21 Responses to “Resizing your VMFS the right way, exploring the next version of ESX/vCenter”

  1. TimC says:

    Wait, what? It says right in the frigging wizard “Extent size”. The only thing it looks to me like they did was hide the fact they’re still using extents…

  2. It seems like it, but this is definitely not the case. (according to what I’ve been told) I will do it again this evening and also check the fdisk -l output etc.

  3. Russ says:

    What about decreasing the size of a vmfs volume? It’s a common requirement (at least for us) in a multi-tennant environment when a client (for security – each client with own VMFS vol) wants to reduce his VM footprint (and thus wants to see a reduction in SAN storage costs).

  4. Duncan says:

    I haven’t seen this option, reducing would mean: create new smaller vmfs and storage vmotion

  5. Russ says:

    I guess we’ll stick with NFS then where this stuff is easy. Speaking of which, do you know if the limit of 32 NFS DS’s is being increased any time soon?

  6. Ray says:

    Does this also do away with the limit of 4 extents per datastore?

  7. Jason Boche says:

    @TimC:
    They definitely are not extents, however, you may choose to still use extents for growing volumes.

    http://www.boche.net/blog/index.php/2009/02/27/vmware-next-generation-datacenter-exploration/

    “…So what is online volume grow? Answer: seamless VMFS volume growing without the use of extents. OVG facilitates a two step process of growing your underlying hardware LUNs (in a typical scenario this is going to be some type of shared storage like SAN, iSCSI, or NFS), then extending the VMFS volume so that it consumes the extra space on the LUNs. For the Microsoft administrators, you may be familiar with using the “DISKPART” command line utility to expand a non-OS partition . Same thing. Now, not everyone will have the type of storage that allows dynamic or even offline LUN growth at the physical layer. For this, VMware still allows VMFS volume growth through the use of extents but doing so doesn’t make my skin crawl any less than it did when I first learned about extents.”

  8. Gregory says:

    Does anyone know when vSphere will be released to public?

  9. virtualgeek says:

    The limit Extent count limit is 32.

  10. Jon Owings says:

    Duncan, I love these bits of information. Keep them flowing.

  11. virtualgeek says:

    I also love how everyone wants to default into the “NFS vs. VMFS” camp. I’m firmly in the pragmatic “use both appropriately” camp.

    Yes, you cannot shrink a VMFS datastore (you can workaround by creating a new VMFS volume and storage vmotioning).

    On the other hand, you can’t (currently) use SRM, or use RDMs (which you need for W2K3 MSCS and shortly W2K8 WSFC)

    And, currently, NFS datastores use only two TCP sesssion (one for control, one for data) per datastore – so even with smart loadbalancing/link aggregation/routing techniques – you’re not able to drive more than a single ethernet link’s worth of bandwidth per datastore. Now – maybe that’s not a problem with a bunch of small VMs, or an IOps limited workload (not bandwidth limited), and you can use many datastores (up to 64 in vSphere).

    Not saying NFS is bad, it’s good. Saying that the answer is being pragmatic – and tending to use both (frankly using all the tools available to you)

  12. TimC says:

    @virtualgeek: It’s call 10gbe ethernet. SRM support is on the way, and you can do software iSCSI from windows instead of an RDM, or you can do an RDM via iscsi…

    @OP: how do they handle block allocation? Do you have to automatically choose the largest block size by default with this, or are you limited by the choice you made at creation time?

  13. Duncan says:

    Blocksize you pick stays the same. I would always prefer using the largest blocksize possible at this point in time. I don’t know a single reason not to..

  14. BP_LOZ says:

    Hmm.. I’m not quite sure if this works. I am following your steps as described. Only one screenshot is different at my side.

    I receive the warning “The current disk layout will be destroyed. All file systems and data wil be lost permanently”

    http://www.comserve-nl.com/vmwarevc.png

  15. Rom says:

    BP_LOZ – your screenshot says your partition is NTFS – not VMFS.

  16. ToddS says:

    What version of VC/ESX is this feature in VC4 U1 ?

  17. havary says:

    Hi,

    Can i do this with my guest systens up?? Or do i need to stop and backup first.

    Thx!!!

  18. Mikeis4AU says:

    Havary,

    I have tested this a few times vSphere 4.0 with vmfs 3.31. (Of course you have to perform the extend from a host in the cluster) with the guest running and it appears to work great. I am still a little hesitant to pull the trigger on some of critical production LUN’s. However I have no reasons at this point not to do so, other than the obvious. What if it doesn’t work just this one time? If anyone has done this on a full prod LUN, I would like to hear the results.

    Thanks

  19. havary says:

    Mikeis4AU,

    Thanks for your answer,

    I will backup my VM-data to secure my job and make the test of resizing my vmfs, then i post here the result.

    Thx!!!

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!