Find raid members in a Nutanix CVM

cat /proc/mdstat
lsblk | grep md

In a Nutanix node with more than one SSD, software raid is created in the CVM using the SSD disks for the following purposes.

md0: / Active Boot, 10 GB
md1: Inactive Boot, 10GB. Will not be mounted.
md2: /home, 40 GB

After upgrade, active and inactive boot volumes will interchange.

Advertisements

Get a list of VMs in Hyper-V

Get a list of all VMs:

Get-VM

Get-WmiObject -Namespace root\virtualization -class msvm_computersystem | select elementname, operationalstatus, processid, name| ft -auto

Windows 2012 R2:

Get-WmiObject -Namespace root\virtualization\v2 -class msvm_computersystem | select elementname, operationalstatus, processid, name| ft -auto

Get a list of all running VMs:

Get-VM | grep Running

Get-VM |  Where-Object {$_.State –eq 'Running'}

tasklist /v | grep vmwp

ESXi partition layout

The following partitions are created on the boot disk of ESXi.

Size Purpose
4.2 MB Boot
250 MB Boot Bank
250 MB Alternate Boot Bank
110 MB Coredump. Not used since ESXi 5.5. It exists for backward compatibility
2.5 GB Coredump. Introduced in ESXi 5.5, required for hosts with huge RAM
286 MB Store. Used for storing VMware tools etc..
4 GB Scratch. Persistent storage for log files, not created on USB and SD card installation
Remaining Space VMFS, local datastore. Not created on USB and SD card installation

Get partition table of the disk where ESXi is installed:

esxcli storage core device partition list
partedUtil getptbl /vmfs/devices/disks/ESXi_install_disk

The size of a partition is (End Sector – Start Secore) * 512 bytes.

Check active coredump partition:

esxcli system coredump partition list

Get a list of mounted filesystems. The boot partition and coredump partitions will not be mounted.

df