57 articles
Linux

My server was running 2x 1TB disks in a mirror, and I needed more space, so I purchased 2x 2TB disks. The following steps demonstrate how I expanded the RAID volume to 2TB without data loss. My RAID array /dev/md1 consisted of two RAID members, /dev/sdc and /dev/sdd. First step was to remove one of…

Getting MPD to work with the ALSA Equaliser plugin I found a few sites with ‘howtos’ for this, although none of them worked for me. First thing to do is ensure your MPD installation is working properly, and playing music through your chosen device. If you have any problems getting MPD to work, then go…

Graph plotting with Gnuplot can be quite difficult without some basic knowledge of the syntax. I also find that some settings overwrite others, for an example see this post on Stackoverflow and the same applies in this script below where the second line overwrites the first, despite them supposedly being treated as separate lines. set…

HP Smart array CLI commands (these should apply to any system with the CLI installed) Show configuration /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail…

fdisk was always so straightforward. However parted requires just that extra bit of hardware knowledge. I had two disks, /dev/sda and /dev/sdb, on which I wanted to create a swap partition on each, and the remainder of the disk was to be part of a RAID volume. So I started parted: (/dev/sda first) parted /dev/sda…

I have been using the Eluna Graph System for several years, as I like it’s simplicity. As per this post, I graph my ESXi disk temperatures so that I can keep an eye on them. Content of create.sh: #!/bin/bash rrdtool create esxi_disks.rrd \ –start `date +%s` \ –step 300 \ DS:disk1:GAUGE:600:0:U \ DS:disk2:GAUGE:600:0:U \ DS:disk3:GAUGE:600:0:U…

This serves to remind me how to initialise a new MySQL installation, if it doesn’t happen automatically. PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password ‘new-password’ /usr/bin/mysqladmin -u root -h password ‘new-password’ Alternatively you can run:…

In the console enter: In my gnuplot (bash) scripts I have: export GDFONTPATH=”/usr/share/fonts/truetype/ttf-dejavu/” export GNUPLOT_FONTPATH=”/usr/share/fonts/truetype/ttf-dejavu/” Other methods: export GDFONTPATH=”/your/font/directory/fonts/” before you start gnuplot. The fonts should be in the folder “/fonts”. To make this persistent across reboots, and to set the paths for fonts in postscript terminal, add lines similar to the ones below to…