SHIFT-WIKI - Sjoerd Hooft's InFormation Technology
This WIKI is my personal documentation blog. Please enjoy it and feel free to reach out through blue sky if you have a question, remark, improvement or observation. See below for the latest additions, or use the search or tags to browse for content.
Configure RDMs On ESXi Hosts
Summary: How to configure your RDM disks to set the IsPerenniallyReserved for a fast boot of ESXi 5 hosts.
Date: Around 2014
Refactor: 29 March 2025: Checked links and formatting.
Due to a locking problem, booting ESXi hosts takes a lot of time when MSCS are running on LUNs. Since ESXi 5 this can be solved by setting an extra option on the LUNs called perennially reserved. This setting is local to each ESXi host and should be set on each host accessing the RDM. Now if you have a lot of RDMs, or a lot of hosts in your cluster that might take some work, so… powershell!
Note that this has been rewritten here, which was especially done for Site Recovery Manager.
# This script performs the following steps # 1. Get all RDM information from your environment, listing VM, Cluster and diskinfo # 2. Export this information to a csv file # 3. Filters out RDMs that are not part of MSCS # 4. Set the IsPerenniallyReserved for each RDM on each host in the cluster to true # # Note: This scrip can be run each time a RDM or a host is added. # Script variables $timestamp = Get-Date -format "yyyyMMdd-HH.mm" $startdir = "D:\sjoerd" $csvfile = "$startdir\rdmsettings-$timestamp.csv" # Scipt functions # Note that you can suppress output from commands using | Out-Null Function logger ($message) {Write-Host -ForegroundColor Green (Get-Date -format "yyyyMMdd-HH.mm.ss") "$message" `n} Function loggeralert ($message) {Write-Host -ForegroundColor Red (Get-Date -format "yyyyMMdd-HH.mm.ss") "$message" `n} # Define csv table $myTable = @() logger "Starting to create a csv file. This might take a while." foreach ($vm in (Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual")){ $RDMInfo = "" |select-Object VMName,VMClusterName,DiskType,ScsiCanonicalName $RDMInfo.VMName = $vm.Parent $RDMInfo.VMClusterName = Get-VM $vm.Parent | Get-Cluster $RDMInfo.DiskType = $vm.DiskType $RDMInfo.ScsiCanonicalName = $vm.ScsiCanonicalName $myTable += $RDMInfo } $myTable |Export-csv -NoTypeInformation $csvfile logger "Finished creating csv file. Now filtering out RDMs that are not part of MSCS." $allrdms = Import-Csv $csvfile #Only get duplicates RDMs, these are part of MSCS $duprdms = Import-Csv $csvfile | Group-Object ScsiCanonicalName -noElement | where {$_.count -gt 1} logger "Starting to set the Perennially Reserved option on:" ForEach ($rdm in $duprdms){ $cluster = ($allrdms | where {$_.ScsiCanonicalName -eq $rdm.Name} | select VMClusterName | Select -First 1).VMClusterName $rdmdisk = $rdm.Name ForEach ($esxihost in (Get-Cluster $cluster | Get-VMHost)){ Write-Host "ESXihost = $esxihost `t RDM = $rdmdisk" #To set the esxcli instance, run this command: $myesxcli = get-esxcli -VMHost $esxihost #To verify the parameter updates, run this command: #$myesxcli.storage.core.device.list("$rdmdisk") #To set the device as perennially reserved, run this command: $myesxcli.storage.core.device.setconfig($false, "$rdmdisk", $true) } }
This wiki has been made possible by:
RAD Automatic Installation
Summary: A fully automated installation of Rational Application Developer, including the IBM Installation Manager and the WebSphere Application Server
Date: Around 2009
Refactor: 29 December 2024: Checked links and formatting.
We've been busy on this for more than a week but we finally got it running, a fully automated installation of Rational Application Developer, including the IBM Installation Manager and the WebSphere Application Server. We have some general tips and I'll post our configuration files and installation commands in this article.
How To use a Public MS Team
Summary: How to setup and configure a public Microsoft Teams team
Date: Around 2019
Refactor: 22 March 2025: Checked links and formatting.
Recently I wanted to create a Release Calendar team. End users had to be able to subscribe to the release calendar team themselves, I needed a way to send all subscribers an email and interested subscribers should be able to receive all Release Calendar events in their calendar as well. Read below on how this works in Microsoft Teams.
Proxy Pac
Summary: A basic proxy pac script to manage your internal network for outgoing and intranet network traffic.
Date: Around 2014
Refactor: 22 March 2025: Checked links and formatting.
If you've created a proxy server you can create an automatic proxy script so your users don't have to turn off the proxy for internal addresses and it's easier to make changes.
