Renaming a Volume

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

Renaming a volume can be accomplished using the Rename-PfaVolumeOrSnapshot cmdlet and can come in handy after creating a single or multiple volumes without the need to destroy the volume and create with the new name. In the below example, the SDK-Sample-5 volume is renamed to SDK-Rename-5. We use the Get-PfaVolumes cmdlet again to show all of the volumes like 'SDK-*'.


PS C:\> Rename-PfaVolumeOrSnapshot -Array $FlashArray -NewName 'SDK-Rename-5' -Name 'SDK-Sample-5'
name
----
SDK-Rename-5

PS C:\> Get-PfaVolumes -Array $FlashArray | Where-Object { $_.name -like 'SDK-*' } | Format-Table -AutoSize

source serial                   created              name                  size
------ ------                   -------              ----                  ----
       95DAA3D006E43D8F0004B467 2016-11-01T21:30:47Z SDK-Sample    536870912000
       95DAA3D006E43D8F0004B468 2016-11-01T21:41:16Z SDK-Sample-1     262144000
       95DAA3D006E43D8F0004B469 2016-11-01T21:41:17Z SDK-Sample-2     262144000
       95DAA3D006E43D8F0004B46A 2016-11-01T21:41:17Z SDK-Sample-3     262144000
       95DAA3D006E43D8F0004B46B 2016-11-01T21:41:17Z SDK-Sample-4     262144000
       95DAA3D006E43D8F0004B46C 2016-11-01T21:41:17Z SDK-Rename-5     262144000
       95DAA3D006E43D8F0004B46D 2016-11-01T21:41:17Z SDK-Sample-6     262144000
       95DAA3D006E43D8F0004B46E 2016-11-01T21:41:17Z SDK-Sample-7     262144000
       95DAA3D006E43D8F0004B46F 2016-11-01T21:41:17Z SDK-Sample-8     262144000
       95DAA3D006E43D8F0004B470 2016-11-01T21:41:17Z SDK-Sample-9     262144000
       95DAA3D006E43D8F0004B471 2016-11-01T21:41:18Z SDK-Sample-10    262144000