VMware Cloud Community
thiag2011
Enthusiast
Enthusiast
Jump to solution

Powercli to get RAID level

Dear all,

.

In our environment, ESXi will be installed on the local harddisk of the server.

So, I would like to get the RAID level of the harddisk where the esxi is installed .

If above is not possible, is there a way to fetch the physical harddisk and its sizes, where the host is installed.

Eg : Either i need an answer as RAID 5 or

i require answer as Physical disk 1 - 100 GB Physical disk 2 - 100 GB , physical disk 3 - 100GB

So by fetching the local datastore size, i can get the configured RAID level.

Please help

1 Solution

Accepted Solutions
thiag2011
Enthusiast
Enthusiast
Jump to solution

I got it out finally.

Able to fetch RAID level using the below command.

(Get-VMHost | Get-View).Runtime.HealthSystemRuntime.HardwareStatusInfo.StorageStatusInfo | where { $_.Name -like "Logical Volume 1 on HPSA1*"} | Select -ExpandProperty Name

View solution in original post

3 Replies
thiag2011
Enthusiast
Enthusiast
Jump to solution

Any help on this please.

LucD‌ : Can you please help me to get this info.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

You want to determine the boot LUN, as described in KB2030957 I guess?

I can find the bootVolume, but linking this to the device requires afaik some private API (the vmkfstools part from the KB).


The only viable alternative is to use SSH via plink.exe, adn execute the steps from the KB via the SSH session.


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

Reply
0 Kudos
thiag2011
Enthusiast
Enthusiast
Jump to solution

I got it out finally.

Able to fetch RAID level using the below command.

(Get-VMHost | Get-View).Runtime.HealthSystemRuntime.HardwareStatusInfo.StorageStatusInfo | where { $_.Name -like "Logical Volume 1 on HPSA1*"} | Select -ExpandProperty Name