Resize an existing logical volume Example: When installing Ubuntu v20 and v22 with a 32 GB drive using LVM (the default), it will create a 32 GB drive with LVM, but will only allocate 16 GB (half)...
Creating a RAID array
This is the ‘old’ way of creating a RAID array. ZFS is a better way these days. source: https://www.makeuseof.com/tag/configure-raid-hdd-array-linux/ Find the drives to be put into a RAID array $...
Installing Postgres in Docker
This script will create a stateful Postgres instance. PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a stron...
Installing MySQL or MariaDB in Docker
MySQL and MariaDB are essentially interchangeable. MySQL is the largest open source database community. MariaDB is a fork from MySQL and is 100% compatible with prior versions of MySQL. However...
A PowerShell script to Create a new VMware VM
This script will create a inventory item aka a virtual machine using PowerShell. It connects an ISO image and defines all of the hardware. It does not install the OS. $ErrorActionPreference = "Sto...
A PowerShell script to Clone an existing VMware VM
This script lets you clone a VM using PowerShell. source: https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Clone-VM-with-powershell/td-p/2103930 $fromVMname = "Alpine" $newVMName = "...
PowerShell Notes
Forms of output PS C:\WINDOWS\system32> Get-PhysicalDisk Number FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size ------ ---...
A PowerShell script to find VMware snapshots
This is a PowerShell script that will connect to a Vcenter instance and print out a report of the snapshots it has found. The report can be written to the screen, a file or emailed. Why this is im...
A PowerShell script to find and Fix Orphaned VMs
This script will find and fix “orphaned” VMs. $vCenter = "192.168.1.XX" # Vcenter FQDN or IP $vCUser = "vsphere.local\administrator" $vCPW = "password" Connect-VIServer $vCenter -User $vCUser -Pa...
A Kubernetes deployment showing off Auto Scaling
This a complicated Kubernetes deployment. It creates a custom image It pushes the custom image to docker hub The deployment YAML deploys: NodePort service to make the internal pod...