ONTAP 9.14.1 commands

lun move-in-volume

Move a LUN within a volume

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command moves a LUN to a new path in the same volume or renames a LUN. If you are organizing LUNs in a qtree, the command moves a LUN from one qtree to another. You can perform a LUN move while the LUN is online and serving data. The process is non-disruptive. Use the lun move start command to move a LUN to a different volume within the same Vserver.

Parameters

-vserver <Vserver Name> - Vserver Name

Specifies the Vserver.

{ -path <path> - LUN Path

Specifies the path of the LUN you want to move. Examples of correct LUN paths are /vol/vol1/lun1 and /vol/vol1/qtree1/lun1 .

| -volume <volume name> - Volume Name

Specifies the volume of the LUN you want to move.

[-qtree <qtree name>] - Qtree Name

Specifies the qtree of the LUN you want to move.

-lun <text> - LUN Name }

Specifies the name of the LUN that you want to move.

{ -new-path <path> - New LUN Path

Specifies the new path of the LUN. Examples of correct LUN paths are /vol/vol1/lun1 and /vol/vol1/qtree1/lun1 .

| [-new-qtree <qtree name>] - New Qtree Name

Specifies the new qtree name that you want to move the LUN to.

-new-lun <text> - New LUN Name }

Specifies the new name of the LUN.

Examples

cluster1::> lun move-in-volume -vserver vs1 -volume vol1 -lun lun1 -new-lun newlun1

Renames lun1 to newlun1 on Vserver vs1 and volume vol1 .

cluster1::> lun show -vserver vs1 -volume vol1
server   Path                            State   Mapped   Type         Size
-------- ------------------------------- ------- -------- -------- --------
s1       /vol/vol1/A/lun1                online  mapped   linux        10MB

luster1::> lun move-in-volume -vserver vs1 -path /vol/vol1/A/lun1 -new-path /vol/vol1/B/lun1

luster1::> lun show -vserver vs1 -volume vol1
server   Path                            State   Mapped   Type         Size
-------- ------------------------------- ------- -------- -------- --------
s1       /vol/vol1/B/lun1                online  mapped   linux        10MB

Moves LUN lun1 from qtree A to qtree B on volume vol1 .

Top of Page