Data ONTAP® PowerShell Toolkit

Cmdlet: Rename-NaLun


NAME
Rename-NaLun

SYNOPSIS
Move (rename) a LUN.

SYNTAX
Rename-NaLun [-Path] <String> [-NewPath] <String> [-Controller <NaController
>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]


DESCRIPTION
Move (rename) a LUN.


PARAMETERS
-Path <String>
Path of the LUN to be moved.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-NewPath <String>
New path of the LUN being moved to.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction <ActionPreference>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable <String>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.Lun.LunInfo


NOTES


Category: lun
API: lun-move

-------------- Example 1 --------------

C:\PS>Rename-NaLun /vol/vol2/lun100 /vol/vol2/lun101


Rename LUN 'lun100' to 'lun101'.


BackingSnapshot :
Mapped : False
MultiprotocolType : image
Online : False
Path : /vol/vol2/lun101
ReadOnly : False
ShareState : none
Size : 2000683008
Uuid : d87e15a6-142a-11df-9caa-00a09806c227



RELATED LINKS
Get-NaLun







 Data ONTAP® PowerShell Toolkit