TV dashboards

I have a wall-mounted TV in the office where I want to show dashboards of different metrics. Cluster status, Nagios, network bandwidth, uptime, etc. They are all web-based and can be opened via web browser. I used Google Chrome and hit F11 to enter full screen mode to display my graphics. Since I have multiple … Read more

Removing GPT partitions

I had one system where the disk (sde)was formatted with a GPT partition, but fdisk did not show any partitions # fdisk -l /dev/sde WARNING: GPT (GUID Partition Table) detected on ‘/dev/sde’! The util fdisk doesn’t support GPT. Use GNU Parted. Disk /dev/sde: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 … Read more

ZFS on Ubuntu Linux

This guide discusses how to setup ZFS on Ubuntu 14.04.3 LTS, based from Aaron Toponce’s guide. Environment settings: Operating System: Ubuntu 14.04 LTS Setting up your host: Installation of the ZFS repository # sudo add-apt-repository ppa:zfs-native/stable   Installation of ZFS dependencies # apt-get install spl-dkms   Installation of Ubuntu ZFS # apt-get install -y ubuntu-zfs … Read more

Script to monitor disk space usage

Here is a quick and easy script that you can add to your crontab to monitor disk space consumption. Once you hit 85% disk utilization, you automatically send an email to yourself # cat space-monitor.sh #!/bin/bash #This script runs nightly to check disk space usage ADMIN=”macky@supermaru.com” df -h | grep -vE ‘^Filesystem|tmpfs|cdrom’ | awk ‘{print … Read more

hot-add CPU and memory to Ubuntu guest in VMware

Virtualization has made our lives easier. We can spin up new resources for applications, dynamically add more disk space, migrate them, etc. In vSphere, we can dynamically add additional memory and vCPU to a guest VM without any downtime (assuming its been enabled prior to powering on). Now in Ubuntu 12.04, I had two production … Read more

vCSA 6.0 automated deployment

Doing the first batches of vCenter Server Appliance (vCSA) 6.0 deployment was kinda…rough. Playing around with the OVA and getting annoyed at the web-based deployment option kind of slowed us down. At my current job we prefer vCSA’s for our Test and Dev environments and dont want to deal with Windows Server. Fortunately VMware has given … Read more