VMware Cloud Community
eladbub
Contributor
Contributor
Jump to solution

set "enable_ssd" on all luns grater than 40gigs

Hi,

im looking for a way to set enble ssd on my all enviorment since its all based on SSD.

i use this to change to RR can i use it to enablr all as "mark as ssd" ?

Get-VMHost | Get-ScsiLun -LunType disk | Where {$_.MultipathPolicy -notlike "RoundRobin"} | Where {$_.CapacityGB -ge 40} | Set-Scsilun -MultiPathPolicy RoundRobin

thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-VMHost |

    Get-ScsiLun -LunType disk |

    Set-Scsilun -IsSsd:$true


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Yes, there is a IsSSD parameter on the Set-ScsiLun cmdlet.
When you pass $true, the LUN is marked as SSD


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
eladbub
Contributor
Contributor
Jump to solution

10x

can you giva an example on how to?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-VMHost |

    Get-ScsiLun -LunType disk |

    Set-Scsilun -IsSsd:$true


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos