How to use VMware vSphere PowerCLI to find a virtual machine by MAC address


Sometimes you need to find a virtual machine by MAC address. This can be very time consuming if you have to do this by hand using the VMware vSphere Client. PowerCLI can do this task for you in only a few seconds. The script presented in this blogpost will retrieve the virtual machine that has a certain MAC address.

You can find the virtual machine with a certain MAC address by just using the PowerCLI Get-VM and Get-NetworkAdapter cmdlets and piping these together. E.g. to find the virtual machine with MAC address “00:0c:29:1d:5c:ec” you can give the following PowerCLI command:

 Get-VM | `
Get-NetworkAdapter | `
Where-Object {$_.MacAddress -eq "00:0c:29:1d:5c:ec"} | `
Format-List -Property *
继续阅读“How to use VMware vSphere PowerCLI to find a virtual machine by MAC address”

LVM Cache on ubuntu 18.04 LTS




lvcreate -n cache -L 9G vg_faster
lvcreate -n meta -l 100%FREE vg_faster
vgextend 8t_test /dev/disk/by-id/wwn-0x5e83a97ee1537d85-part5
lvcreate --type cache-pool --name cache -L 8G 8t_test /dev/disk/by-id/wwn-0x5e83a97ee1537d85-part5
lvconvert --type cache --cachepool 8t_test/cache 8t_test/8tall
继续阅读“LVM Cache on ubuntu 18.04 LTS”



NPIV是N_Port ID Virtualization
Virtual Server/Xen,想像一下一台服务器上有一块HBA卡,但是在VMWare上有多台VM,这些VM都使用后边不同的LUN,那么没有NPIV就没法做了。

NPV是N_Port Virtualization的缩写,主要是switch-base的解决方案。适用于UCS的palo卡。