View Only
  • 1.  Powercli to get RAID level

    Posted Aug 16, 2016 04:35 AM

    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

  • 2.  RE: Powercli to get RAID level

    Posted Aug 16, 2016 04:11 PM

    Any help on this please.

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

  • 3.  RE: Powercli to get RAID level

    Posted Aug 16, 2016 07:19 PM

    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.

  • 4.  RE: Powercli to get RAID level
    Best Answer

    Posted Sep 12, 2016 03:38 PM

    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