Ubuntu ZFS Samba share

In my previous posts regarding setting up ZFS on Ubuntu 16.04, I had referred to Aaron Toponce’s website on doing additional configuration to ZFS such as sharing via NFS or SMB. In the portion for SMB here: https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/, it seems that there is a couple more things to do. After running zfs set sharesmb=on pool/srv  and zfs share … Read more

ZFS on ubuntu 16.04

On my previous post, ZFS on Ubuntu Linux, I had setup ZFS on Ubuntu 14.04 by adding a ZFS repository, installing multiple packages and such. Now on 16.04 and 16.10, it is available by simply typing: sudo apt-get install zfs My previous post covers how to setup a ZFS Pool, creating ZIL, and sharing the … Read more

Bluetooth mystery

For quite some time i’ve been told that peoples bluetooth Mac keyboard and mouse gets disconnected intermittently. I’ve done the usual, make sure the battery is good, reset the PRAM, Reset the Bluetooth adapter via the hidden menu, but no luck. We kind of brushed it off as there is too many Macs in the … Read more

Finding an associated Cisco Fabric Interconnect in ESXi

If you have SSH access to your ESX server, smbiosDump has some very useful information. If you look in “OEM Strings: #14”, you can see some very useful information: [root@ucs-test1:~] smbiosDump | grep “OEM Strings: #14” -A 4 OEM Strings: #14 $SPI:rack-unit-13 <- Server ID $SPT:hx-nodes <- Service Profile Template $SYS:test-fi1 <- Fabric Interconnect This … Read more

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