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)

Post Reply
CombFiltered
Posts: 12
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: 2952
Joined: Mon Nov 18, 2019 11:11 am

Wed Sep 18, 2024 8:23 pm

Hi,

Yes, CreateImageFile.ps1.
CombFiltered
Posts: 12
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: 12
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: 2952
Joined: Mon Nov 18, 2019 11:11 am

Wed Sep 18, 2024 9:53 pm

Great news! Thanks for your update.
namcv
Posts: 4
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 503 times
yaroslav (staff)
Staff
Posts: 2952
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: 4
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: 2952
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: 4
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: 2952
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: 4
Joined: Fri Nov 15, 2024 8:38 am

Mon Nov 18, 2024 4:09 am

Thank you!
yaroslav (staff)
Staff
Posts: 2952
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
Post Reply