Quantcast
Channel: Phil Lavin’s Articles at Phil’s Blog
Browsing all 79 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Proxmox: Shrinking disk of an LVM backed container

First, shut down the container and ensure it’s not running. List out the LVM logical volumes: Source code   lvdisplay | grep "LV Path\|LV Size" Choose the disk you want to resize – you’ll see they’re...

View Article


Image may be NSFW.
Clik here to view.

Installing Debian 9 (Stable) on Dell Gen 14 servers with Perc H740P RAID...

Dell’s 14th Generation servers have the option of shipping with Perc H740P RAID controllers. These are stonkingly good, as compared to the old H730 controllers, sporting 8GB of NVRAM as compared to the...

View Article


Image may be NSFW.
Clik here to view.

JunOS error: In routing-instance default-switch interface ae3.0 has vlan and...

You might see this error when using VXLAN on Juniper kit after you set an interface to be a member of “all” VLANs. This is because “all” includes VLAN 1. Per this documentation, you can’t actually use...

View Article

Image may be NSFW.
Clik here to view.

Juniper MX204 – Enabling 100G ports

This was far more difficult than it should be so it’s worth writing down… First, check the Juniper Port Checker to ensure that the port configuration you want is supported. In my case, I wanted 2x 100G...

View Article

Juniper JunOS: Difference between rib-groups and instance-import

Both rib-groups and instance-import allow you to selectively (or non-selectively) import routes into one VRF from another. I won’t go into detail of the syntax and usage of these two as Matt Dinham...

View Article


Image may be NSFW.
Clik here to view.

Juniper SRX: IPSec VPN sourcing from loopback interface in a VRF

Probably not an overly common setup but you’ll inevitably become frustrated if you try it. As per this Juniper PR, it’s necessary to put your loopback interface and your external interface(s) in the...

View Article

Image may be NSFW.
Clik here to view.

So you’re thinking of applying to APNIC?

Having recently gone through the APNIC application process (and been accepted as a member), I thought it worthwhile writing about it. 6 or so months ago, it was possible for new members to apply for a...

View Article

WordPress plugin: Wikipedia extract tooltip v1.3

I initially wrote this plugin back in 2011. I then apparently released v1.1 and v1.2. Largely due to forgetting how the plugin worked, I haven’t used it in a blog post for a while. Upon finding a bit...

View Article


Image may be NSFW.
Clik here to view.

Linux: Kill stuck NFS process (kill -9 doesn’t work)

Apparently kill -9 always works… except when it doesn’t. It also so seems that 99% of the time, when it doesn’t work, this is because the process is trying to access an NFS mount. This is handled in...

View Article


Image may be NSFW.
Clik here to view.

Juniper MX: Simple static VXLAN configuration

On most VXLAN deployments, you’ll want to be using EVPN to distribute MAC addresses between devices. However, if you’re doing something small such as wanting to span an L2 link across an L3 network...

View Article

Juniper SRX: Clamp TCP MSS on a single interface

JunOS has some system wide settings for TCP MSS. These are limited to all TCP, IPSec VPN and GRE. Sometimes you might want to clamp MSS for a particular ingress/egress interface. You can do this in...

View Article

Image may be NSFW.
Clik here to view.

The trials and tribulations of running statically linked 32 bit binaries in...

Foreword AWS Lambda is absolutely wonderful. The ability to deploy code and have it triggered by a variety of sources without having to worry (too much) about capacity scaling, retry logic, cascading...

View Article

Image may be NSFW.
Clik here to view.

A tale of VoIP, NAT and some confused Engineers

Foreword NAT and PAT, in their many forms, are so common these days that almost all of CloudCall’s customers use them. SIP based VoIP was designed long before NAT was common place so it doesn’t work...

View Article


Image may be NSFW.
Clik here to view.

Repairing the BT 6000 Baby Monitor Parent Unit

Intro Looking around online, it seems this unit breaks a lot. Mostly the cause of the breakage seems to be the USB charging port on the back. It seems to wear out and bend/snap, making it impossible to...

View Article

Image may be NSFW.
Clik here to view.

Building an Electronics Lab

I’ve recently gotten back into Electronics projects. Given the raft of small components and tools you need, it’s tricky to keep any sense of order without dedicating some space to it. I thought I’d...

View Article


Image may be NSFW.
Clik here to view.

Repairing an Air Conditioner Unit (Slow or no Fan)

Intro to AC Units An air conditioning unit isn’t a hugely complex bit of kit. Its major electrical components are a compressor and one or more fans. The compressor (unsurprisingly) compresses and,...

View Article

Ansible: Automatically Generate and Verify AWS ACM Certificate

Ansible’s AWS ACM module didn’t, at time of writing, support generating new certificates. ACM certificates can be programatically generated and verified (using DNS) with a bit of glue and sticky tape....

View Article


Running Docker Containers (from AWS ECR) with Systemd

Systemd units can be used to automatically start Docker containers on boot. Systemd, by default, will also monitor for the container dying and restart it if this happens. Unit File The unit file is...

View Article

Running Amazon DynamoDB Local (Docker) with Gradle

DynamoDB Local is a Java application which you can run locally to test your applications against DynamoDB, without the need to authenticate against public AWS endpoints. It’s great for running your...

View Article

AWS Aurora Global Clusters Explained: What you wish they told you before you...

AWS Aurora Global is, on the face of it, a decent product. Aurora is a MySQL fork with a tonne of purported performance benefits over vanilla MySQL. I was building a system, in AWS, which relied on a...

View Article
Browsing all 79 articles
Browse latest View live