Increase the size of a LUN

Contributors

The size to which you can increase your LUN varies depending upon your version of ONTAP.

ONTAP version Maximum LUN size

ONTAP 9.8 and later

  • 128 TB for All SAN Arrays (ASAs)

  • 16 TB for non-ASAs

ONTAP 9.5, 9.6, 9.7

16TB

ONTAP 9.4 or earlier

10 times the original LUN size, but not greater than 16TB

For example, if you create a 100 GB LUN, you can only grow it to 1,000 GB.

You do not need to take the LUN offline to increase the size. However, after you have increased the size, you must rescan the LUN on the host for the host to recognize the change in size.

See the Command Reference page for the lun resize command for more information about resizing a LUN.

Note

Solaris LUNs cannot be resized.

Steps
  1. Increase the size of the LUN:

    lun resize -vserver vserver_name -volume volume_name -lun lun_name -size lun_size

  2. Verify the increased LUN size:

    lun show -vserver vserver_name

    Note

    ONTAP operations round down the actual maximum size of the LUN so it is slightly less than the expected value. Also, actual LUN size might vary slightly based on the OS type of the LUN. To obtain the exact resized value, run the following commands in advanced mode:

    set -unit B

    lun show -fields max-resize-size -volume volume_name -lun lun_name

  3. Rescan the LUN on the host.

  4. Follow your host documentation to make the newly created LUN size visible to the host file system.