vSAN1

 View Only
  • 1.  How to TAG Drive as Capacityflash for a vendor in command line

    Posted Mar 28, 2017 06:12 PM

    I have a VSAN setup contains all flash.I need to make drives from a particular vendor to CapacityFlash through command line.

    Thanks.



  • 2.  RE: How to TAG Drive as Capacityflash for a vendor in command line

    Broadcom Employee
    Posted Mar 28, 2017 06:25 PM


  • 3.  RE: How to TAG Drive as Capacityflash for a vendor in command line

    Posted Mar 31, 2017 03:57 PM

    Can we filter By Vendor in RVC ?

    This is actually for a VSAN cluster with all flash disks.

    I need to make some disks as capacity Flash for automatic disk claim work nicely.



  • 4.  RE: How to TAG Drive as Capacityflash for a vendor in command line
    Best Answer

    Posted Mar 31, 2017 04:10 PM

    Hello,

    Yes, if you have the model name of the drives you can use this in RVC to mark them all:

    (run at vcenter_server/data_center/computers/cluster/hosts)

    #vsan.host_claim_disks_differently --claim-type capacity_flash --model <model_name> *

    There is also a PowerCLI method:

    http://www.punchingclouds.com/2016/03/24/vmware-virtual-san-automated-deployments-powercli/

    The section that covers marking as capacityflash with PowerCLI:

    #Foreach ($vmh in $vmhosts) {

    #   Write-Host "Finding disks for $($vmh)"

    #   $esxcli = Get-ESXCLI -VMhost $vmh

    #   0..1 | Foreach {

    #       $DiskgroupNum = $_ +1

    #       $Caching = ($esxcli.storage.core.device.list() | Where {$_.model -eq $cachingSSD})[$_]

    #       $Capacity = ($esxcli.storage.core.device.list() | Where {$_.model -eq $capacitySSD})[$_]

    #       Write-Host "Using $($caching.Vendor) - $($caching.Model) for Caching in Disk Group $Diskgroupnum" -foregroundColor Green

    #       Write-Host "Using $($Capacity.Vendor) - $($Capacity.Model) for Capacity in Disk Group $Diskgroupnum" -foregroundColor Green

    #       Write-Host "Tagging $($Capacity.Model) as Capacity"

    #       $capacitytag = $esxcli.vsan.storage.tag.add(($capacity.Device), "capacityFlash")

    #       Write-Host "Adding Storage devices to $($vmhost)"

    #       $adddisks = $esxcli.vsan.storage.add(($capacity.device), ($Caching.device))

    #       if ($adddisks -eq "true") {

    #            Write-Host "Disks added" -ForegroundColor Green

    #       } Else {

    #        Write-Host "Error adding disks: $adddisks" -ForegroundColor Red

    #      }

    #}

    Bob

    -o- If you found this comment useful or answer please select as 'Answer' and/or click the 'Helpful' button, please ask follow-up questions if you have any -o-