Extending a NetApp SnapMirror source/destination volume

I recently had a request from a client to extend an nfs volume living on a NetApp FAS6220. The volume is utilizing SnapMirror technology to replicate volumes to a DR site.
In this example, we show how to extend the volume by 100GB and ensure SnapMirror continues to function.

1. SSH into both source(Production) and destination(DR) controllers
2. On destination (DR site):
snapmirror break
vol options fs_size_fixed off
vol size +100g
vol options fs_size_fixed on

3. On source (Production Site):
vol size+100g
4. Back on destination (DR site):
snapmirror resync
Answer yes at prompt to confirm

5. Refresh your ESXi shared storage

List HA reboots within the past 5 days – PowerCLI

    On 4.1

$Date = Get-Date
$HAVMrestartold =5
Get-VIEvent -maxsamples 100000 -Start ($Date).AddDays(-$HAVMrestartold) -type info | Where {$_.FullFormattedMessage -match "was restarted"} |select CreatedTime,FullFormattedMessage |sort CreatedTime -Descending

    On 5.x

$Date = Get-Date
$HAVMrestartold =5
Get-VIEvent -maxsamples 100000 -Start ($Date).AddDays(-$HAVMrestartold) -type warning | Where {$_.FullFormattedMessage -match "restarted"} |select CreatedTime,FullFormattedMessage |sort CreatedTime -Descending

Documenting VMware IP’s via PowerCLI – “One-liner quickies”

I am finishing up the new VMware lab at work and need to document the setup. Part of this documentation includes getting all the ip’s on each VMhost and their corresponding use. A quick and easy way to do this is to leverage the awesomeness of PowerCLI.

So, here is a great one-liner that requires little post formatting to get what you need:

Get-VMHostNetworkAdapter | select vmhost,portgroupname,ip | Export-Csv c:\YourDirectory\network.csv