Skip navigation
VMware

This Question is Not Answered

1 "correct" answer available (10 pts)
3,249 Views 8 Replies Last post: Mar 25, 2009 9:39 AM by hillda01 RSS
hillda01 Hot Shot 191 posts since
Feb 12, 2007
Currently Being Moderated

Mar 18, 2009 4:31 AM

Add Extent - Expand VMFS volume....

 

Hi,

 

 

I created a VMFS volume of 40Gb and after a while realised I should have made it a bit bigger - I've expanded the space on my SAN and then re-scanned the adapter and all is well - I can see the extra space.

 

 

Is there a way to extend this volume into my 40Gb without loosing the contents of the directory.

 

 

I can see how to add extent but that destroys everthing...

 

 

Is there like partition magic for VMFS

 

 

Regards

 

 

Dave

 

 

java_cat33 Master 1,248 posts since
Aug 29, 2007
Currently Being Moderated
1. Mar 18, 2009 4:43 AM in response to: hillda01
Re: Add Extent - Expand VMFS volume....

You will need to create a new lun and use the new lun as an extent for your old lun. My recommendation would be to create a larger new lun and migrate your VM (s) off your current one onto the new one, then delete your old lun.

 

 

I believe in the next version of ESX (vSphere) there is some new functionality for extending a vmfs volume without using extents  "Online VMFS expansion - handy, so if you can extend a LUN from your array you can grow the VMFS into it online without downtime, up until now the only alternative was downtime or storage vMotion to a brand-new LUN, or to use extents which are not as safe"

 

 

http://vinf.net/2009/02/26/hands-on-lab-01-vsphere-features-overview/

 

Message was edited by: java_cat33 - added vSphere info

djciaro Expert 322 posts since
Sep 24, 2007
Currently Being Moderated
3. Mar 18, 2009 4:43 AM in response to: hillda01
Re: Add Extent - Expand VMFS volume....

 

use add an extend to your existing datastore:

 

 

Re: Add Extent - Expand VMFS volume....

vmkfstools -Z vmhba1:0:12:1 vmhba1:0:11:1

 

 

or via GUI:

 

 

Adding Extents to Datastores

You can expand a VMFS datastore by attaching a hard disk partition as an extent.

To add one or more extents to a datastore’s spanned volumes

1.  Click the arrow next to the Inventory button in the navigation bar and choose Hosts and Clusters.

 

2.  Select the host and click the Configuration tab.

 

3.  Click Storage.

 

4.  In the Storage list, right-click a datastore and choose Properties.

 

5.  Click Add Extent.

 

6.  On the Extent Device page, select the disk to add as the new extent and click Next. 

 

7.  Review the current layout of the disk you are using for the extent to make sure the disk doesn’t contain important information.

 

If a disk or partition you add was formatted previously, it will be reformatted and lose the file systems and any data it contained.

8.  Click Next. 

 

9.  On the Extent Size page, set the capacity for the extent. 

 

By default, the entire free space available on the storage device is offered to you.

10.  Click Next. 

 

11.  Review the proposed extent layout and the new configuration of your datastore and click Finish.

 

 

 

 

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

 

 

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
BUGCHK Master 953 posts since
Nov 7, 2005
Currently Being Moderated
6. Mar 23, 2009 2:47 AM in response to: hillda01
Re: Add Extent - Expand VMFS volume....

I can see how to add extent but that destroys everthing...

 

 

No, it does not! You can put a VMFS extent into the free space, even from the VI-Client. This works 3 times, because the VI-Client creates additional primary partitions - I know it, because I have tried it.

 

 

bigslash Novice 27 posts since
Mar 11, 2008
Currently Being Moderated
7. Mar 24, 2009 6:14 AM in response to: hillda01
Re: Add Extent - Expand VMFS volume....

 

Hi  to all ,

 

 

 

 

 

last year i was in the same kind of situation about the extends.I have done some research which will be better ,adding extend or create a new lun and transfer the files to that.But no one could make me sure of adding the extend will be will be without problems,In fact in some test platforms  i have managed to add the extend without any problem ,but since it was production ,i chosed the long way,

 

 

Create a new lun ,transfer the files to that

 

 

 

 

 

That will be the long solution ,but in the end there wont be any problems in the future,Because adding an extend is just like making  2 disks as raid 0

 

 

,Then if a disk fails ,the raid is corrupted,So just like the extend wil do,

 

 

 

 

 

 

 

 

Bookmarked By (0)

Share This Page

Communities