Category Archives: VMware

Set Perennially Reservation with PowerCLI

I am going to make this one short and sweet.

On a reboot, hosts that have access to RDM LUNs can take a LONG time to reboot. In order to correct to correct this we can set the hosts to have the LUNs perennially reserved.

The only way to set this is by typing(sorry no GUI fix).

In esxcli we see,

esxcli storage core device setconfig -d naa.12345671234982734987 –perennially-reserved=true

(Above I just started typing random numbers, but you get the idea)

In general though you are going to have more than one host in a cluster that have access to the same RDMs. As usual PowerCLI to the rescue.

This script will pull the RDMs from a specific VM and set the Perennially Reserved flag for all the hosts in the cluster.

$vm=get-vm "VM to Set perrenial reservation for"

#Collecting the various pieces of information


#Here I look for Physical RDMs, but you can change it to RawVirtual if you like
$scsinames=$vm|get-harddisk -DiskType RawPhysical


$clihost=get-esxcli -vmhost $scsihost

#Checks the scsinames against the host to see if they are perennially reserved or not
#If Not places them in the variable $devices
$devices= $scsinames|select -expand scsicanonicalname|% {$"$_")}|? {$_.isperenniallyreserved -like "false"}|select -expand device

#ForEach of the hosts, set the device to be perennially reserved.
ForEach ($vmhost in $vmhosts)


$clihost=get-esxcli -vmhost $vmhost
ForEach ($device in $devices)
$$false, "$device", $true)


Hope This Helps!!


P.S. Here is a VMware KB about it as well




vNoob VCAP-DCD Experience

A bit delayed but here it is. I sat the DCD a while at VMworld San Fran. Having never taken an exam at VMworld, this was an entirely new experience for me. Well, the PearsonVue exam experience, was pretty much like any other, I just didn’t realize how much it would affect my VMworld experience. With… Continue Reading

Installing vSphere 6

Installing vSphere 6

Let’s get started installing vCenter. It is never a bad idea to know what screens and information you will need before you get get there! Already this looks SIGNIFICANTLY more streamlined than the vSphere 5.5 installations with SSO, Inventory Service, etc etc etc Next next next! I went with Embedded Deployment, this means everything necessary… Continue Reading

Lower HIGH Java RAM Usage on vCenter Server

This is especially useful for SMB who don’t have large environments, and can’t throw resources at a vCenter Server This is what one of my vCenter Servers looked like recently To give some insight, this is a vCenter that manages around 3 hosts and 50 VMs. I quickly found a KB about java memory usage… Continue Reading

Post VMworld Resources

Although VMworld 2014 US is now over, we can still continue to learn from it. Even if you accomplished everything you set out to do at VMworld, there is never a way to do everything there. Or Maybe you didn’t even have a chance to go to VMworld, and feel like you may have missed… Continue Reading

VMware vCenter MDMP Files

My vCenter Server was acting up and throwing a bunch of random errors. When I started investigating it appeared that the C drive was out of space. Completely Out. Yeah, I guess I haven’t been a very good administrator…. So after a few minutes of some quick cleaning and getting everything up and running I… Continue Reading

VMHost Heartbleed Fix for ESXi 5.5

If you don’t know about Heartbleed yet…Well I don’t know what to say… I guess check this out. Unfortunately, ESXi is susceptible to this The full kb is here from VMware Fortunately it can be patched with everyone’s favorite patch tool VMware Update Manager Now that I have been able to scan my… Continue Reading

VMware Update Manager Errors On Scan

While working on getting my hosts properly patched, I found I couldn’t even do a scan on them. Alright so next I took a look at the esxupdate log on the host. Both of these correspond to a VMware kb found Here The cause as listed in the KB “This error occurs when two VIBs… Continue Reading

Cannot Synchronize Host Error

  There were a couple of Hosts in a cluster that had been in maintenance mode for  a while. One morning I look and see this error So naturally I see if there is a KB, and there is   Sweet, that sounds easy enough to do…   When Reconnecting.. That doesn’t seem to work… Continue Reading

Clearing Stubborn Hardware Status Errors

Sometimes those hardware status Errors/Warnings do not want to clear even after you have fixed the issue In my case, I had a drive failed in a ESXi host that had 2 drives in Raid 1. No Biggie, just replace the drive. After replacing the drive and confirming everything was in the green(via an IBM… Continue Reading