About once a year I work from home like a scumbag for a week to get all my big code re-writes done. Throughout the year I write fixes, add new scripts and functions as needed, and then clean everything up, document things properly, add comments, get everything actually working in this week. That week is now upon me, and there are a bunch of things I wish that I didn’t keep having to re-write, or update, or rip out, or whatever.
Continue reading Things I wish I hadn’t done while writing PowerShell stuff for work
After configuring the SAN, the next thing you’re going to need to do is get Windows fully configured and joined to the cluster. The cluster configuration portion of things is actually relatively simple, just validate cluster again and again until it passes, then create the cluster. There’s some stuff you’ll want to do beforehand to ensure the cluster doesn’t start doing dumb stuff and that you’re able to validate without any real struggles.
Continue reading Hyper-V 2016 Cluster with Dell PowerVault MD3420 SAS – Part 2 Cluster Configuration
After installing the PowerVault Modular Disk Storage Manager (MDSM) and rebooting you should be able to launch it and proceed. Click Add Storage Arrays from the top of the list and go through the automatic setup. Rename your SAN as needed, and configure your email/SNMP settings as appropriate. Add any feature licenses, do whatever base configurations you need to do before you get to the part where you have to start configuring the storage.
Continue reading Hyper-V 2016 Cluster with Dell PowerVault MD3420 SAS – Part 1 SAN Config
After somehow* losing the VHD for my Sophos UTM install on my home Hyper-V server I needed to reinstall and restore my config from backup. However, the only installation media I had downloaded was from when I initially moved from Tomato over to Sophos, which was several years ago. This meant that the UTM needed to download over 3.5GB of updates in order to get back to a version which I could restore the config to. The root partition of the UTM is only 5GB, and the base install is about 3GB itself, so the updater craps out saying there’s not enough space to unpack the updates.
Continue reading Sophos UTM 9: Up2Date failed: Not enough free space
So I finally tracked down about 6 different errors that were keeping my VPS running Ubuntu 14.04 instead of something more recent. One of the main errors was due to a system misconfig by my VPS host OVH. After getting that fixed, vexed with frustration and carelessly impatient, I upgraded all the installed packages and ended up taking all the sites I host on this VPS down for the last 10 hours.
Continue reading Nginx 502 Bad Gateway after Ubuntu Upgrade
Why is it that, in 2017, with ZFS, –routinely called the most advanced file system in the world– I’m having to use awk to parse the status output from its built-in tools? Why is there STILL no documented, easily query-able API for me to use? The only way that there is for me to get Python to interact with ZFS is for me to use awkward wrappers with little to no documentation. There’s a bunch of undocumented APIs, but nothing that’s really usable for someone without advanced understanding of the platform. I just want to be notified when a drive dies, or starts having problems.
Continue reading It’s 2017 and ZFS STILL doesn’t have an API?!?
We’ve had some issues with admins improperly applying permissions in the past, and in recent times as well. Because of this, we’ve decided that maintaining permissions change logging to determine who it is that’s having issues learning how to apply permissions can get some extra training on how to appropriately set file ACEs. The issue with doing this is that it generates ~40GB of compressed Windows logs daily, or closer to 100GB uncompressed. So, how can we use PowerShell to parse through the binary logs, store the info we need, and then get rid of the relatively gigantic evtx files?
Continue reading File server permissions change auditing.
On several occasions NFS has inexplicably stopped working with my ZFS shares under ZFS on Linux on Ubuntu Server 14.04×64. It seemed to happen every reboot, after checking the sharenfs property on each of the ZFS FS’ I found they were set properly, but still clients were getting access denied when trying to mount the share. Other times, even when they were able to re-mount the share they wouldn’t do so unless I manually triggered it.
Continue reading ZFS on Linux NFS shares lost at reboot
Trying to install Exchange 2013 Management tools on Windows 8.1 is likely to present some problems by default. Unless you’ve already installed the IIS components required by Exchange you’ll get an extremely unhelpful error message when trying to install, saying that it cannot be installed on a client-based OS.
Continue reading Exchange 2013 Management tools on Windows 8.1 and Windows 10
Our fileserver was running low on space and still growing at about 80GB/month. Rather than throw more storage at it, which would only buy us another few months before we had to do it again, I figured I’d look for something that would archive unused data to secondary storage, without rendering it unreachable.
Continue reading Online File Server Archiving with PowerShell