Find the disk hogger

Here is another small tool written in golang. Travels through directories and prints guilty one filling the disk. Basically parsing du command's output and applying tresholds:

Read more →

Switched to hugo

Can't bare to Wordpress shenanigans anymore. I just wanted to publish a blog, not a slow PHP blob. So I was searching a static website generator. Found hugo, a powerful one. Just pick a theme and create new posts as markdown. Converting old blog was a bit painful, but thank god I know regex.

Read more →

More Go!

Still playing with go, although can't find a thing to write. Here is a smaller one, which prints WWN addresses of FC interfaces on Linux-x86_64 systems:

Read more →

These days I'm playing with golang. Still learning and having fun with little experiments. Meantime, here is a dirty helper to run a given script concurrently:

Read more →

I should use this blog more. Here is one of the things might be useful for other admins I wrote meantime. This script generates a report, which includes all important information via ILO interface on HP servers (using python-hpilo package). Supports ILO2-3-4, which is a pretty good range for non-ancient servers I think. I've started to study golang as hobby, so might port this to Go later. But for now, this is really handy:

Read more →

User gets a warning about disk, sees it's full and starts to investigate. After removing few GB's, there is a little problem: df and du commands' conflicting output. Where is my free disk? After searching it on Google, people says "check out lsof | grep deleted" and user realizes this is really a thing on Linux. Processes hold files on disk even the files are deleted. Restarts the process, and everything seems fine now.

Read more →

If you have lots of physical servers, I totally understand if you don't want to talk about "upgrading" them. But you need to upgrade, at least the device firmware's should be decent so you don't see weird errors on higher levels. Well ok, you probably will see some weird things anyway but if you upgrade, the vendor won't be poking you with "please upgrade to latest firmware" for every problem.

Read more →

Hello, In this rant, we'll install X software to Y system. You are here because you are a bit desperate finding the right package you need. Maybe the software and/or the system is a bit old. Let's start! First, download the software here: software.tar.gz Yes you saw damn right, a big blue TARBALL. You might not care about your system's file integrity and be a moron to not to think about that COMPILING thing!

Read more →

New distros with cool ideas always amaze me. Too bad we generally have new shiny debuntu based software collections only. Bedrock is a different one. Here is a quote from official website: If one would like a rock-solid stable base (for example, from Debian or a RHEL clone) yet still have easy access to cutting-edge packages (from, say, Arch Linux), automate compiling packages with Gentoo's portage, and ensure that software aimed only for the ever popular Ubuntu will run smoothly - all at the same time, in the same distribution - Bedrock Linux will provide a means to achieve this.

Read more →

Scripting under different unices is a bit painful. Especially if you have a completely mixed environment with plenty of obsolete systems in it. I was trying to get md5sum of something quickly. Here is the result: Sure, you can use md5sum command on every system if you install it, but this seems like the most painless way. Still failing on some old Solaris (like 8/9) but luckily I can skip those :)

Read more →