Unsetting GlusterFS volume options

The GlusterFS documentation mentions how to set volume options, but there’s no obvious way to unset them. In the case that you’ve set something like performance.cache-size and you just want to return to the defaults, you need to reset the setting: [root@storage1 ~]# gluster volume reset homes performance.cache-size reset volume successful Hopefully some SEO-fu will […]

Fix for Dalvik compile error on CyanogenMod 9

I started getting this error while compiling CyanogenMod 9 (Android 4.0.x) last week: dalvik/vm/native/dalvik_system_Zygote.cpp: In function ‘int setrlimitsFromArray(ArrayObject*)’: dalvik/vm/native/dalvik_system_Zygote.cpp:199:19: error: aggregate ‘setrlimitsFromArray(ArrayObject*)::rlimit rlim’ has incomplete type and cannot be defined struct rlimit rlim; ^ dalvik/vm/native/dalvik_system_Zygote.cpp:222:43: error: ‘setrlimit’ was not declared in this scope err = setrlimit(contents[0], &rlim); ^ make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/native/dalvik_system_Zygote.o] Error 1 make: *** […]

systemd service to trim free SSD cells at boot

I mount all ext4 partitions on my solid-state disks with the discard option; this tells the filesystem to use SSD-specific low-level TRIM operations instead of normal erases (which are essentially just block re-writes). As I use my SSDs quite heavily, I like to perform batch discards every so often as well. Here’s a systemd service […]

Fix backlight after resume on Linux 3.8 + Intel graphics

For some reason Linux 3.8 doesn’t resume from suspend properly on my Samsung Series 9 NP900X3C. From the comments on this Arch bug report it seems that the system is actually resuming, but the display back light isn’t coming back on. One user suggested using systemd to run the following script at system resume, /usr/lib/systemd/system-sleep/linux-3.8-backlight.sh: […]

Troubleshooting GlusterFS performance issues

I’m in the middle of a new GlusterFS deployment for our research computing infrastructure (storage of Bioinformatics and GIS data). At first I was just happy to see the huge size of my /home partition when I did df -h, but I quickly found that performance wasn’t quite what I was expecting and I started […]