none
Changing CSV label

    Question

  • Hi all,

    I added a physical disk (storage lun) to my hyper-v hosts (core installation), then:

    1) I bring online the disk

    2) formatted the disk

    3) assigned a label

    4) I've added to available storage in my cluster administrator console

    5) added to clustered shared volume.

    Now I wish to change the label assigned at point 3) how is it possible? Remebre that is a core installation.

    Saturday, March 10, 2012 1:48 PM

Answers

  • Hi,
     
    Please run the following command in an elevated Windows PowerShell console:
     
    Get-WmiObject Win32_Volume -Filter "Label='original_label'" | Set-WmiInstance -Arguments @{Label="new_label"}
     

    Vincent Hu

    TechNet Community Support

    Tuesday, March 13, 2012 8:38 AM
    Moderator

All replies

  • diskpart
       DISKPART> list volume
     Output is:
             Volume ###  Ltr  Label
             ----------  ---  -----
        Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
    ----------  ---  -----------  -----  ----------  -------  ---------  -------
    Volume 0     E                       DVD-ROM         0 B  No Media
    Volume 1     F                       DVD-ROM         0 B  No Media
    Volume 2     C                NTFS   Partition    222 GB  Healthy    System
    Volume 3     D   HP_RECOVERY  NTFS   Partition      9 GB  Healthy
     
      DISKPART>select volume 3
      DISKPART>assign letter=F
      DISKPART>exit

    Mohamed Fawzi | http://fawzi.wordpress.com

    Sunday, March 11, 2012 4:46 PM
  • Hi,
     
    If you add a LUN/disk to Cluster Shared Volume, you will not be able to see the original drive letter through Disk Management or diskpart command line.
     
    If you use “assign letter” command in diskpart to assign a volume which is used as a Cluster Shared Volume, you will be able to get a prompt “DiskPart successfully assigned the drive letter or mount point”. However, when you remove the LUN from the Cluster Shared Volume, you will be able to find it appears with it’s original drive letter instead of the new one you assigned to it.
     
    By the way, as there is no drive letter on a volume used as a Cluster Shared Volume, so there is no need to change the driver letter. If you do want to assign a drive letter, remove it from Cluster Shared Volume and assign it again with diskpart.
     

    Vincent Hu

    TechNet Community Support

    Monday, March 12, 2012 6:55 AM
    Moderator
  • Hi,

    I'm talkin about drive label NOT drive letter!

    Monday, March 12, 2012 8:06 AM
  • Hi,
     
    Please check the following post.
     
     

    Vincent Hu

    TechNet Community Support

    Monday, March 12, 2012 8:17 AM
    Moderator
  • label.exe works on the current disks:

    c:\>label.exe -> changes the label for c:

    I cannot make CSV the current disk.

    Monday, March 12, 2012 8:20 AM
  • Hi,
     
    Save or Power off the virtual machines locate in the Cluster Shared Volume, remove the LUN from Cluster Shared Volume, change the label with command line. Add it back to Cluster Shared Volume.
     

    Vincent Hu

    TechNet Community Support

    Monday, March 12, 2012 8:31 AM
    Moderator
  • Not applicaple. The CSV hosts several production VM
    Monday, March 12, 2012 10:29 AM
  • Hi,
     
    Please run the following command in an elevated Windows PowerShell console:
     
    Get-WmiObject Win32_Volume -Filter "Label='original_label'" | Set-WmiInstance -Arguments @{Label="new_label"}
     

    Vincent Hu

    TechNet Community Support

    Tuesday, March 13, 2012 8:38 AM
    Moderator