I’ve been using BTRFS for a few weeks now, and some bits are great (filesystem snapshots, dynamic resizing etc). The “Good” and “Bad” things follow:
Arbitrary tweets made by TheGingerDog up to 30 November 2014
Arbitrary tweets made by TheGingerDog up to 16 November 2014
Over time my inbox grows larger and larger…. and eventually it starts to take ages to sync/navigate around – 15,000+ messages in an inbox can’t help.
I have a NFS server running Debian Squeeze. Additionally it’s using the 3.2.x kernel from backports, and the nfs-kernel-server from backports too. Sometimes NFS breaks, and gives helpful messages like : mount.nfs: connection timed out or just: Stale NFS handle on clients. While I’m confident that my /etc/exports and other configuration files are correct,… Continue reading Script to fix NFS (Debian Squeeze + Backports bits)
One new feature of VirtualBox 4.2 is that it has support for auto-starting vm’s on bootup of the host server (via init etc). This means I can remove my hackish ‘su – vbox -c “VBoxHeadless –startvm VMName &”‘ additions in /etc/rc.local, and the VM’s will also hopefully be terminated gracefully on shutdown. The docs/guides online… Continue reading Virtualbox 4.2 VM autostart on Debian Squeeze & Wheezy
Some random hints : Ensure the final field / column in /etc/fstab is non-zero for other filesystems you have mounted; if it’s 0 then fsck will never run on them. fsck -Cccy /dev/blah1 does a read-write (non-destructive test). Works well on SSDs 🙂 Example from /etc/fstab: /dev/md0 /mount/point ext3 defaults 0 2 When looking at… Continue reading fsck paranoid?
Today, my sed kung-foo seemed to be lacking, so I ended up having to split the sed command over a zillion lines… Normally I’d do something like : sed ‘s/foo/bar/g’ tmp.txt > tmp2.txt sed ‘s/fo2/blah/g’ tmp2.txt > tmp3.txt But this obviously gets painful after a time, a different approach would be to use sponge where… Continue reading Sponge – Shell command
If you’ve updated your varnish server’s configuration, there doesn’t seem to be an equivalent of ‘apachectl configtest’ for it, but you can do : varnishd -C -f /etc/varnish/default.vcl If everything is correct, varnish will then dump out the generated configuration. Otherwise you’ll get an error message pointing you to a specific line number.
Want to see what changes you’re about to apply when doing a ‘yum update’ ? Similar-ish to how ‘apt-listchanges’ works… On CentOS 5.6, try : yum install yum-changelog python-dateutil Note, python-dateutil seems to be an unmarked dependency – i.e. you get an error message like : “Dateutil module not available, so can’t parse dates” when… Continue reading yum changelog (Want to know what you’re about to upgrade on CentOS/RHEL?)