Powershell for a standalone LUN on VSAN

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

CombFiltered
Posts: 23
Joined: Tue Sep 17, 2024 2:11 pm

Wed Sep 18, 2024 8:14 pm

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.
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Wed Sep 18, 2024 8:23 pm

Hi,

Yes, CreateImageFile.ps1.
CombFiltered
Posts: 23
Joined: Tue Sep 17, 2024 2:11 pm

Wed Sep 18, 2024 8:29 pm

Should it show up on the LUNs page of the web gui after it is successful?
CombFiltered
Posts: 23
Joined: Tue Sep 17, 2024 2:11 pm

Wed Sep 18, 2024 8:47 pm

Ok finally got there, and it does now as expected. Thanks for the assistance!
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Wed Sep 18, 2024 9:53 pm

Great news! Thanks for your update.
namcv
Posts: 14
Joined: Fri Nov 15, 2024 8:38 am

Fri Nov 15, 2024 8:47 am

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
Attachments
error vlun.PNG
error vlun.PNG (88.49 KiB) Viewed 26955 times
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Fri Nov 15, 2024 9:32 am

Hi,

Try root/starwind (those are internal service credentials).
namcv
Posts: 14
Joined: Fri Nov 15, 2024 8:38 am

Fri Nov 15, 2024 1:49 pm

Thanks for your support.
I thought using login account :D
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Fri Nov 15, 2024 2:19 pm

No worries, I know it can be confusing; optimizing credentials is on the roadmap.
namcv
Posts: 14
Joined: Fri Nov 15, 2024 8:38 am

Fri Nov 15, 2024 2:48 pm

One more question, do I need to configure cache?
$cacheMode="none",
$cacheSize=0)
Currently my SW server has 32GB Ram
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Fri Nov 15, 2024 3:05 pm

For a standalone LUN, please, no cache.
For a replicated LUN, it depends on the underlying storage.
More on caching https://knowledgebase.starwindsoftware. ... rinciples/
namcv
Posts: 14
Joined: Fri Nov 15, 2024 8:38 am

Mon Nov 18, 2024 4:09 am

Thank you!
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Mon Nov 18, 2024 5:37 am

You are always welcome :)
Please see this thread viewtopic.php?f=5&t=6852&p=37208&hilit=HINT8#p37208
vertigomike
Posts: 5
Joined: Tue Feb 25, 2025 10:57 pm

Tue Feb 25, 2025 10:59 pm

I'm also trying to get this created as well. I've modified with my server IP. When I run the script I get
200 Failed: operation cannot be completed..

I did change the creds to be sure and i got a credential failure so i think the root cred is correct but not sure if there is way to see in logs what the error is that it encountered. This is a fresh install.
yaroslav (staff)
Staff
Posts: 3351
Joined: Mon Nov 18, 2019 11:11 am

Tue Feb 25, 2025 11:07 pm

Leave root/starwind. The creds on top of the script are not the creds you use to log into the VM.
Check this out https://forums.starwindsoftware.com/vie ... NT8#p37208.
Post Reply