Quantcast
Channel: High Availability (Clustering) forum
Viewing all articles
Browse latest Browse all 5654

Renaming Cluster Shared Volumes using Powershell

$
0
0

Hi,

I am wondering if it is possible to rename a Cluster Shared Volume using PowerShell.

When I add a disk to the cluster using "Add-ClusterDisk" and then add the cluster disk as a clustered shared volume using "Add-ClusterSharedVolume" the new cluster shared volume gets a generic name in the failover cluster manager like"Cluster Disk 3" and a generic name in the "C:\ClusterStorage" directory such as "Volume1". 

My goal is for the name in the failover cluster manager to match the name in the "C:\ClusterStorage" directory.  So I would see a cluster shared volume in the failover cluster manager GUI such as "MyNewCSV" and a path such as "C:\ClusterStorage\MyNewCSV" in the filesystem.

Is there some PowerShell command that I can use to rename "Cluster Disk 3"  in the failover cluster manager to "MyNewCSVName"?  I can rename the folder in the filesystem using Rename-Item with the following Powershellcommand"Rename-Item -Path "C:\ClusterStorage\Volume1" -NewName "MyNewCSVName" to get the directory name I want, but the CSV in failover cluster manager still uses "Cluster Disk 3" as the name.

Does anyone know if this is possible in PowerShell?  I can do it easily through the failover cluster manager GUI but really want an automated solution.

Thanks,

Paul


Viewing all articles
Browse latest Browse all 5654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>