Skip to main content

NetApp wins prestigious Coveo Relevance Pinnacle Award. Learn more!

INSIGHT Japan :2023年 1月25日(水)ANAインターコンチネンタルホテル開催 へ参加・申込を行う

NetApp Knowledge Base

What are the guidelines to be followed while shrinking LUNs?

Views:
1,097
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
core
Last Updated:

 

Applies to

ONTAP 

Answer

WARNING

Shrinking a LUN without the proper steps performed at the OS level can cause unrecoverable data loss. You should only shrink a LUN who's operating system supports resizing the file systems and partition tables to a smaller size.

  1. Resize the file system (and volume if necessary) inside the LUN to the new size using the host operating system's native tools. Contact your OS or file system vendor for specific steps.
  2. Resize the partitions inside the LUN. You may again refer to your OS vendor's documentation on how to perform this step.
  3. Shrink the LUN. You can do this from the ONTAP Cluster Shell by decreasing the size as shown in this example:
    lun resize -vserver vs3 -volume vol3 -lun lun1 -size 75GB
  4. Your host OS may require you to rescan your HBAs in order to see the new size. If so, perform that step now.

 

Additional Information

NetApp also offers LUN management tools such as SnapDrive for Windows, SnapDrive for UNIX, and SnapCenter Plugins which can automate all of the above.

 

Scan to view the article on your device