eladbub
Contributor
Contributor

set "enable_ssd" on all luns grater than 40gigs

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
3 Replies
LucD
Leadership
Leadership

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

0 Kudos
eladbub
Contributor
Contributor

10x

can you giva an example on how to?

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos