ONTAP Discussions
ONTAP Discussions
Hi All
I need to reduce size of LUNs which are on windows 2008 servers to reclaim unused space. Could someone help me with the complete process to accomplish the task.
TA
Solved! See The Solution
Okay, my first case applies to you. As myself and Radek have mentioned, you have to first shrink the partition from host side then resize the LUN accordingly from the storage.
Your backup plan is good. Create a snapshot of the volume that contains the particular LUN. Then do your things and once you verify everything is working as it should be, you can delete the snapshot that you created manually.
Could you give me some more information.. like whether the LUN is a thinly provisioned one or not; whether it is a iSCSI LUN for FC LUN; and some more details about your environment rather than just Windows 2008
In general...
Are you trying to reduce LUN size from you Windows box?
Then shrink your volume from first using disk management in Windows and then reduce the size of LUN from the storage system.
Are you trying to reclaim the free space from a NTFS formatted thinly provisioned LUN?
Then the best way to do that would be using NetApp SnapDrive software...
ignore_inconsistent=off,
snapmirrored=off,
create_ucode=off,
convert_ucode=off,
maxdirsize=41861,
schedsnapname=ordinal,
fs_size_fixed=off,
compression=off,
guarantee=volume,
svo_checksum=off,
svo_allow_rman=off,
svo_reject_errors=off,
no_i2p=off,
fractional_reserve=100,
We do not have snap drive licensed, I am looking to shrink the LUN on Netapp end. I am also looking to clone the LUN as a fall back plan.
Is this the right way or is there a better way to accomplish it?
If you shrink you LUN on NetApp side without adjusting filesystem size you destroy your filesystem.
The first thing to do is to shrink partition on the OS side - unless it is already smaller than the LUN size (it can be seen via Disk Manager).
This is the procedure of shrinking Windows 2008 partition if we are talking about basic volume:
http://technet.microsoft.com/en-us/library/cc731894.aspx
Regards,
Radek
Okay, my first case applies to you. As myself and Radek have mentioned, you have to first shrink the partition from host side then resize the LUN accordingly from the storage.
Your backup plan is good. Create a snapshot of the volume that contains the particular LUN. Then do your things and once you verify everything is working as it should be, you can delete the snapshot that you created manually.
Thank you all for your response
What if I unmap the LUN, shrink the LUN and map it back again, will that also cause filesystem corruption.
Could you also breif me on the second method, reclaiming space from NTFS formatted thinly provisioned LUN.
TA
Yes, it will cause filesystem corruption. You will cut off part of filesystem, possibly containing data.
Thanks all
final few questions
1) NTFS does not allow to shrink the volume by more than 50%, If I were to reduce it by more than 50% can I do it in 2 step for eg:
If I have a 100 GB LUN, and on the OS side only 10 GB is used. can I
2) After shrinking the volume, how does Netapp ensures it does not cut off part of filesystem?
TA
NetApp knows nothing about file system inside LUN. It is your responsibility to calculate new LUN size which will not damage file system. NetApp will not prevent you from setting LUN size to any value.