Microsoft DFS Replication staging area calculation

When implementing Microsoft Distributed File Services Replication, Microsoft provides variations on the following Powershell command.  The goal is to find out the 32 largest files (Windows Server 2008 and later) in a file system and report it.  The admin then creates the DFSR staging area to this size. Continue reading

ZoneMinder 1.26.5 on a Raspberry Pi

Following a short spate of thefts, I decided to get an IP camera to cover the front of my house.  I would use my lab, or better still, my Pi to monitor the camera and record the thief of my milkman-delivered milk and take a record of everyone who thinks it’s okay to turn their car around on my drive.  It’s not okay, by the way, it bothers me irrationally. Continue reading

vmWare vSphere swap

In a vSphere / vCenter / ESXi infrastructure there are two types of memory swapping.  In this example, I will focus on Windows Server 2012 swap files (although this doesn’t really change much) and the vSphere vswp swap file.  Both of these files take up the same amount of disk space as RAM so can turn into a large commitment of disk space across multiple virtual servers, especially now that RAM requirements are getting larger.  The last generation of Microsoft server software thought disk was now ‘cheap’ and the latest generation adds memory to this list. Continue reading

Very quick Exchange 2010 mailbox queries

It’s a very quick Powershell blog.  Mount Points are such a pain in the bum.  They’re great but just are not supported for easy querying.

The powershell get-mailboxdatabase | select name,edbfilepath,logfolderpath,servers gives you the name, location of the mailbox database and which servers it’s on.

Get-WMiObject -computer . Win32_Volume | Sort-Object name | format-table name,label,@{Label=”SizeGB”;Expression={ “{0:f2}” -f $($_.Capacity/1GB) } },@{Label=”FreeGB”;Expression={ “{0:f2}” -f $($_.FreeSpace/1GB)} },@{Label=”PctFree”;Expression={ “{0:f2}” -f $(100-(([double]$_.Capacity-[double]$_.FreeSpace)*100/[double]$_.Capacity))}}

This lists the df -H information: Disk mount point or drive letter, capacity (GB) and free space in GB and as a percentage to two decimal places.  Between the two, you can easily work out what is where.

I have to admit the latter looks better as a script, but I’m going back to my early days of UNIX scripts to manipulate data.  Every script had to fit onto as few, long lines as possible.

Change the “.” after -computer to run it on a remote computer.

VMware whiteboxes can exceed the HCL limitations

If you are building an ESXi whitebox, or considering building a whitebox, you’ll find that there are lots of great motherboards out there that have a network card chipset that isn’t supported by ESXi.  I have two exactly like that.  The perceived wisdom is to purchase a PCIe NIC that is on the HCL – but how easy is it to add a driver to the Linux based ESXi kernel?  Very easy.  A bit of research and it took me 30 minutes to get an Intel motherboard with an Intel 82579 Gigabit LAN controller running ESXi 5.1. Continue reading

VMware datastores can hide many misdemeanours

vCenter datastores can secretly hold vast quantities of unwanted data: virtual machines removed from inventory but not deleted from disk.  Deleted disks on virtual machines that just hang around on the data store eating up space.  I’ve found this can, over time, reduce your expensive storage capacity and leave you buying more storage unnecessarily, but i couldn’t find anything to identify these files, except in VSphere Orchestrator. Continue reading

What’s next for the personal computer?

Pretty soon, Microsoft will be releasing a version of Windows 8 that runs on RISC processors such as those you see in smart phones (now called ‘phones’ as their take-over of the market is almost complete) and Linux distributions have been around for a while.  The latest generation of phones that we’re seeing release, such as the HTC One X which is available for less than £500 (sub-$700 in the USA), come with quad-core processors and 1GB RAM.  Operating Systems such as Android are ubiquitous on these smart phones, leaving behind Apple’s iPhone devices that have now lost their market-leading edge, and Microsoft that’s struggling to gain market share with it’s reboot of the mobile OS concept.  These phones are coming with displays that shame netbooks and laptops that cost twice the price and connectivity comparable with the latest ultrabooks. Continue reading