VMware Cloud Community
NRGCG
Contributor
Contributor
Jump to solution

Expanding datastore with specific drives

Good day, I'm trying to use PowerCLI to expand a datastore on a remote ESXi host server (initial configuration) but everything I'm finding online is making me run in circles trying everything I find.

 

What I have:

I create the datastore with the following:

$drives = get-vmhost | get-scsilun -CanonicalName "t10.ATA_____Micron*"

New-Datastore -Server $esxhost -name "Datastore" -path $drives[0] -VMFS

From there I want to expand that with only the other 2 drives in the array $drives[1] and $drives[2] 

 

Is there a way to do that? I cannot find a command to expand the VMFS datastore on the hose anywhere. Everything I've tried gives me errors and I'm beginning to pull out what little hair I have left.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You might want to have a look at my VMFS Datastores – Expand and Extend post.


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You might want to have a look at my VMFS Datastores – Expand and Extend post.


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

0 Kudos
NRGCG
Contributor
Contributor
Jump to solution

LucD,

This is exactly what I was looking for, thank you so much. I knew there had to be an easy way to do it... I just couldn't find it 😞 

 

You are a life saver.

0 Kudos