Kevin's Blog Photography, technology, and whatever else

6Oct/102

NetApp LUN Expansion Limit

Yesterday we were working on expanding a drive for one of our SQL servers in VMWare.  Ordinarily we have all our guest drives as .vmdk files, but this SQL server is clustered so it is a Raw Device Mapping (RDM) to a LUN on the NetApp.  We have expanded LUNs like this in the past and not had any issues.  This time we did have issues and it took a bit of searching to figure it out.

This server is not yet in production so some of the volumes were not sized how they were going to be when it goes live.  In this case we were upping a volume to the size it needed to be to go into prod.  This meant going from 40gb up to 500gb to support all the data that would be imported.  At this point we got an error on the NetApp  "New size exceeds this LUN's initial Geometry."  After a bit of Googling we found a forum post that NetApp has a limit to the amt you can expand a LUN restricting it to no more than 10x the original size.  I imagine that for most folks this would not be a problem, but if you are like us and going from test/validation to prod on the same LUN and need to expand you could paint yourself into a corner as we did.

We had to blow-away the LUN and recreate it, which ended up being a major pain due to the clustered servers.  The lesson is, size your volumes to an appropriate size initially, or be prepared to do some file copying later on if you reach the limit.

You might also like: