Subscribe

How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Hi

I know that SnapDrive can shrink/extend LUN's, but does it support resizing a 500 GB LUN used for CSV in Hyper-v Cluster to 1000 GB?

If so, what is the procedure.

I once shrunk a CSV LUN, which ended very badly: http://communities.netapp.com/message/22197#22197

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Hi

I haven't tried this myself. but this what the SDW admin guide mentions.

The disk resize command

The disk resize command increases or decreases the disk by a user-specified size, as long as that

figure falls within the SnapDrive-specified minimum and maximum values.

Syntax for this command is:

sdcli disk resize [-m MachineName] {-p LUNpath | -d MountPoint} -z

DriveSizeIncrement

DriveSizeIncrement is the amount by which you want to increase or decrease the size of the disk.

When decreasing the size of the disk, use a dash (-) before the amount to indicate a negative value. You

can specify a postfix of MB, GB, or TB. If no postfix is specified, the default is MB.

Examples

sdcli disk resize -d G: -z -500

The preceding example shrinks the size of the disk mapped to "G" by 500 megabytes.

sdcli disk resize -d P: -z 1GB

The preceding example increases the LUN mapped to “P:” by 1 GB. (In practice, SnapDrive

expands the disk by the amount specified by -z, plus a certain increment required for system

overhead.)

sdcli disk resize -d \\?\Volume{f1816466-f1d8-4b96-b547-2ce12415aee4}\

-z +100

The preceding example increases a CSV disk by 100 MB using the CSV volume name.

Regards

Amrita

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Shrinking a LUN's size isn't something i'd do. However, increasing a LUN's size is OK. You need first to make sure the containing volume has enough space. If not, you should first increase the volume's size using SnapDrive. Then you can increase the LUN size.

Hope that helps,

Wei

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Hmm....how does that match up with the "LUN Grow-Shrink" section listed here?

http://blogs.netapp.com/storage_nuts_n_bolts/2009/04/snapdrive-for-windows-61-update.html

Windows 2008 + SnapDrive does allow LUN shrinking but I'm not sure if that applies to CSV's or no....

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Shrinking a LUN works just fine with SnapDrive. You are limited by how much you can shrink a LUN by the LUN geometry and the available space on the LUN. For example, if I have a 100MB LUN and grow it to 100GB, the LUN geometry will not let you shrink the LUN back down to 100MB again.

Here is the reference in MS TechNet about shrinking a LUN or volume:  http://technet.microsoft.com/en-us/library/cc731894(WS.10).aspx

"When you shrink a partition, any ordinary files are automatically relocated on the disk to create the new unallocated space."

In description for the syntax of diskpart shrink:

"No data loss occurs. If the partition includes unmovable files (such as the page file or the shadow copy storage area), the volume will shrink to the point where the unmovable files are located."

I have not tested this yet, but from the documentation, it appears that Windows will not let you shrink a LUN if it cannot create space for the shrink.

A consideration though is the impact on the rate of change in flexible volume where the LUN is located. Windows is copying the files to free up the space to shrink the LUN. This will action will probably result in larger snapshots and if the volume is snapmirrored, more data will be in the transfer after a LUN shrink.

Thanks,
Mark

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

For example, if I have a 100MB LUN and grow it to 100GB, the LUN geometry will not let you shrink the LUN back down to 100MB again.


Why? From my experience in CHS the Heads/Sectors part is fixed during LUN creation; when you resize a LUN, NetApp changes only number of Cylinders. LUN with initial size of 100M would have CHS=13/255/63, increasing size to 100GB changes geometry to 13055/255/63. What exactly prevents it goiong back to original 13 cylinders?

Actually I just tested it and had no problem going back to 100MB

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Hey Mark,

I just shrunk a CSV LUN  and had horrific results, as noticed previously. I worry about experiencing something similar to extending the same LUN. Is there any "official" documentation from NetApp, not just community hearsay (ala "I done that") that says either is supported or unsupported? That would clear things up.

Thanks,

Reuvy

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Hi,

You are barking up the wrong tree I am afraid.

Whether LUN shrinking / growing is supported or not, purely depends on the host side - NetApp delivers the capability which may, or may not be properly handled by a particular OS / clustering methodology.

MS Technet doesn't give a clear answer to you question, so the safest assumption is it is not supported (i.e. growing a CSV volume).

Regards,
Radek

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

I would rephrase and say I am barking up the wrong branch - I think we are sitting on the same tree . . .

  1. I agree that ultimately MS needs to support it - but shouldn't the storage vendor who is providing you with the utilities to perform certain actions know if something is allowed or not, and hopefully, prevent you from doing something that will cause negative effects?
  2. Plus, this is something at least that should go into their Best Practices Guide for Hyper-V (which is really helpful BTW).

I was just frustrated because I tried it and didn't think twice that it wasn't supported, seeing that with a regular disk you can. I would've thought this is something they would've tried in the labs (seeing that SnapDrive 6.2 [I think] wa the first version that supported CSV disks anyhow). And even if not, if they could try and just let us know clearly. Something which is relatively easy to determine and find out shouldn't be something that needs to be hidden.

Reuvy

Re: How to resize a CSV (Clustered Shared Volume) with SnapDrive?

Hi,

We have full agreement it would be nice to see some relevant hints in NetApp documentation - having said that, this wouldn't change 'formal' support stance from Microsoft.

Anyway.

I PMed Chaffie who wrote Hyper-V TR to look into this thread - she's been extremely helpful in the past, so hopefully will add her 2 cents here as well!

Regards,

Radek