Changes the size of the LUN to the input value size.
When you reduce the size of the LUN, the data in the LUN could be truncated. You will receive an error message if you reduce the size of the LUN. To avoid this error message, use the force parameter.
When you increase the size of a LUN, the maximum resize size is based on the initial geometry of the LUN and the currently available space in the volume. You will receive an error message if you exceed this limit. The lun show -instance command reports the "Maximum Resize Size" for a LUN based on the initial geometry. The lun maxsize command reports the maximum LUN size based on the available space. The maximum size of the LUN is the smaller of the two limits issued by the lun show -instance command or the lun maxsize command.
cluster1::> lun resize -vserver vs1 -path /vol/vol1/lun1 -size 500M -force
Resizes LUN /vol/vol1/lun1 on Vserver vs1 to 500M, overriding all warnings.
cluster1::> lun resize -vserver vs1 -path /vol/vol1/lun1 -size +5m cluster1::> lun show -vserver vs1 -volume vol1 Vserver Path State Mapped Type Size --------- ------------------------------- ------- -------- -------- -------- vs1 /vol/vol1/lun1 online mapped linux 15MB
Adds 5M of space to LUN /vol/vol1/lun1 for a total of 15MB.
cluster1::> lun resize -vserver vs1 -path /vol/vol1/lun1 -size -10m Error: command failed: Reducing LUN size without coordination with the host system may cause permanent data loss or corruption. Use the force flag to allow LUN size reduction. cluster1::> lun resize -path /vol/vol1/lun1 -size -5m -f cluster1::> lun show -vserver vs1 -volume vol1 Vserver Path State Mapped Type Size --------- ------------------------------- ------- -------- -------- -------- vs1 /vol/vol1/lun1 online mapped linux 10MB