Page 1 of 1
Powershell for a standalone LUN on VSAN
Posted: Wed Sep 18, 2024 8:14 pm
by CombFiltered
Is there a Powershell template for creating a standalone LUN for VSAN? I had replied in a thread about creating an HA LUN, but it appears a different command will be needed for standalone.
Re: Powershell for a standalone LUN on VSAN
Posted: Wed Sep 18, 2024 8:23 pm
by yaroslav (staff)
Hi,
Yes, CreateImageFile.ps1.
Re: Powershell for a standalone LUN on VSAN
Posted: Wed Sep 18, 2024 8:29 pm
by CombFiltered
Should it show up on the LUNs page of the web gui after it is successful?
Re: Powershell for a standalone LUN on VSAN
Posted: Wed Sep 18, 2024 8:47 pm
by CombFiltered
Ok finally got there, and it does now as expected. Thanks for the assistance!
Re: Powershell for a standalone LUN on VSAN
Posted: Wed Sep 18, 2024 9:53 pm
by yaroslav (staff)
Great news! Thanks for your update.
Re: Powershell for a standalone LUN on VSAN
Posted: Fri Nov 15, 2024 8:47 am
by namcv
Dear sir,
I used the script "CreateImageFile" to create a LUN on a vsan.
My account namcv/Bcd1234! was able to log in to the web as Administrator
But when running the script, it reported a login error
Please see the attached image
Re: Powershell for a standalone LUN on VSAN
Posted: Fri Nov 15, 2024 9:32 am
by yaroslav (staff)
Hi,
Try root/starwind (those are internal service credentials).
Re: Powershell for a standalone LUN on VSAN
Posted: Fri Nov 15, 2024 1:49 pm
by namcv
Thanks for your support.
I thought using login account
Re: Powershell for a standalone LUN on VSAN
Posted: Fri Nov 15, 2024 2:19 pm
by yaroslav (staff)
No worries, I know it can be confusing; optimizing credentials is on the roadmap.
Re: Powershell for a standalone LUN on VSAN
Posted: Fri Nov 15, 2024 2:48 pm
by namcv
One more question, do I need to configure cache?
$cacheMode="none",
$cacheSize=0)
Currently my SW server has 32GB Ram
Re: Powershell for a standalone LUN on VSAN
Posted: Fri Nov 15, 2024 3:05 pm
by yaroslav (staff)
For a standalone LUN, please, no cache.
For a replicated LUN, it depends on the underlying storage.
More on caching
https://knowledgebase.starwindsoftware. ... rinciples/
Re: Powershell for a standalone LUN on VSAN
Posted: Mon Nov 18, 2024 4:09 am
by namcv
Thank you!
Re: Powershell for a standalone LUN on VSAN
Posted: Mon Nov 18, 2024 5:37 am
by yaroslav (staff)