• Skip to primary navigation
  • Skip to content

jdgreen.io

The personal blog of James Green

  • Home
  • Technology
    • Announcements
    • Industry
    • Reviews/Guides
    • Tech Field Day
    • Interviews
  • Health
    • Food
    • Biohacking
    • Fitness
  • Faith
  • Book Notes
    • Business Books
    • Faith Books
    • Health Books
    • Technology Books
  • About
  • Show Search
Hide Search

Create NFS Datastores across many hosts

James Green · Sep 18, 2013 ·

So you created a new NFS datastore and you want to mount it to all the hosts in your vCenter or cluster. You’re really dreading clicking through each host and doing “Add Storage” for every one.

PowerCLI to the rescue! This one-liner will add your new datastore in a snap! Just modify it with details specific to your environment.

[code lang=”powershell”]Get-VMHost | New-Datastore -Nfs -Name "Name Here" ‘
-Path "/path/path-here" -NfsHost 0.0.0.0[/code]

Turn on/off SSH across all hosts

James Green · Sep 16, 2013 ·

If you’ve ever needed to SSH to each host in your environment to do some work, you know what a pain it can be to click over to the Security Profile tab and enable it for one host at a time. A much faster way to do this would be with a PowerCLI one-liner. Below are the commands to turn SSH on and off across all hosts. Hope it saves you a few clicks!

[code lang=”powershell”]#Start SSH for all hosts in vCenter
Get-VMHost | Foreach {
Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )
}[/code] [code lang=”powershell”]#Stop SSH for all hosts in vCenter
Get-VMHost | Foreach {
Stop-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} ) -Confirm:$false
}
[/code]

Understanding PSP

James Green · Sep 14, 2013 ·

storage-multipath

PSP – Path Selection Policy (or Path Selection Plug-ins)

PSP is the NMP sub-plugin that tells the host which path to use to reach the storage array, and how to respond if that path goes down. It is used to load-balance across paths if applicable.

Read on to learn about different types, and how to change them!

[Read more…] about Understanding PSP

Change Windows Server Edition Post-Install

James Green · Nov 29, 2012 ·

I recently ran into a little problem where I had installed Server 2008 Standard Edition and passed the server off to the Middleware guys to do their thing. I later found out that the license for this server was for Enterprise Edition, but much of the work had already been done from a middleware perspective. This led me to wonder if it was possible to change the edition of Windows Server after installing. The answer is a resounding “YES!” and it’s actually quite simple. Check out the steps below:

[Read more…] about Change Windows Server Edition Post-Install

vSphere 5.1 Host Profile Guide

James Green · Nov 6, 2012 ·

I had a chance to set up some Host Profiles last weekend and get a handle on how they work. These are a very handy tool for reducing your management overhead, especially in a large cluster.

Features/Use Cases

–  Ensure configuration accuracy by applying a single configuration profile to all hosts in a cluster

–  Reduce time for deployment by automating many configuration settings

–  Update one configuration to update all hosts, a la dvSwitch.

Hit the whole run through after the jump!

[Read more…] about vSphere 5.1 Host Profile Guide

  • « Previous Page
  • Page 1
  • …
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • Next Page »

Copyright © 2021 · Monochrome Pro on Genesis Framework · WordPress · Log in