Jump to Navigation

David Goodwin

Subscribe to David Goodwin feed
Linux, PHP, running, geeky stuff, Bromsgrove and other bits
Updated: 2 hours 39 min ago

Automated twitter compilation up to 21 December 2014

Sun, 21/12/2014 - 06:00

Arbitrary tweets made by TheGingerDog up to 21 December 2014

  • RT Who says that it rains all the time in #England? We’ve been having amazing clear views from up here! #HelloEarth


  • RT “People call me a pedant, but that’s not exactly the correct word.” 2014/12/20
  • RT “The FBI now has enough information to conclude that the North Korean government is responsible for these actions.” www.fbi.gov/news/pressrel/press-releases/update-on-sony-investigation 2014/12/19
  • RT To all my friends in the PHP community… Happy Holidays from the elephpants!


  • Nightwish Storytime – https://play.google.com/music/m/Tz3rcr7lbvjebyknunqp4nfa6zm #earworm Bromsgrove, England 2014/12/19
  • RT Is that you Rudolph?!


  • RT finally! I’ve been waiting for this for so long… “@mperham: Great idea: buy SSL certs right from your terminal https://sslmate.com/” 2014/10/21
  • RT Management 101


  • RT Library of Birmingham cuts are an embarrassment, writers claim: In a letter published this week in the Birming… bit.ly/1JdgKul 2014/12/19
  • RT How AWS does networking – hubs.ly/y0mHPX0 each AZ a separate data center, private fibre between regions, by @JonathanVanian 2014/12/18
  • RT I haven’t been very cheerful for the last week, but this (which is about my ability level) made me laugh out loud.


  • Stuffed with Xmas cake…. #cake #real 2014/12/18
  • RT Kim Jong-un makes further demands on Hollywood.


  • RT You see, we have to make personalized suggestions…

    www.commitstrip.com/en/2014/12/17/a-fistful-of-permissions/ http://t.co/x0YA30r2Hz - embedded picture' alt='RT You see, we have to make personalized suggestions...
    http://t.co/x0YA30r2Hz - embedded image ' />


  • RT I’ve released USBdriveby: device to weaponize mouse clicks, evade firewall, install backdoor & reroute DNS in seconds samy.pl/usbdriveby 2014/12/17
  • RT Good start: “@dev_el_ops: hitchhikers guide to writing useful and modern bash scripts: https://github.com/azet/community_bash_style_guide by @a_z_e_t2014/12/17
  • RT Disappointing to hear #Google are discontinuing the #Nexus 5, even more so with Lollipop, it’s easily the best phone I’ve ever owned. 2014/12/17
  • RT Whatever your belief systems, I hope we can all agree there’s a special place reserved in hell for people who intentionally hurt children. 2014/12/17
  • RT Our Kickstarter for our OneRNG entropy generator has started – please check it out, and pass it on to your friends https://www.kickstarter.com/projects/moonbaseotago/onerng-an-open-source-entropy-generator 2014/12/14
  • RT BT to pay EE £12.5 billion, presumably after forgetting to turn off their data roaming while abroad. 2014/12/15
  • RT Microsoft, Amazon and Google spend $billions every quarter and even they still have outages. How much do you spend? hubs.ly/y0mJ0_0 2014/12/16
  • RT CHRISTMAS COMPETITION TIME ! RT for your chance to win a single luxury crown (feeds 8-10) collection only Xmas eve !


  • RT “Your password contains invalid characters.” No, your startup contains incompetent engineers. 2014/12/15
  • RT At end of this are my ramblings for @BBCRadio4 on why what is happening in China matters more than anything else m.bbc.co.uk/news/magazine-30483762 2014/12/16
  • RT heh. RT @medickinson: How I feel like responding when I’m asked to fax something…..


  • RT Such function! Much satisfaction! So powerful! Wow!

    www.commitstrip.com/2014/12/15/when-i-use-a-function-that-i-wrote/ http://t.co/vqf5qQLQZQ - embedded picture' alt='RT Such function! Much satisfaction! So powerful! Wow!
    http://t.co/vqf5qQLQZQ - embedded image ' />


  • RT Vim Stickers are go!


    http://t.co/7EcuF7hb0M - embedded picture' alt='RT Vim Stickers are go!

    http://t.co/7EcuF7hb0M - embedded image 1' />

    http://t.co/7EcuF7hb0M - embedded picture' alt='RT Vim Stickers are go!

    http://t.co/7EcuF7hb0M - embedded image 2' />


  • RT .@PartridgesButch


  • Today we saw Santa. (Willowbrook garden centre). I was very impressed with the experience. #goodKids

    Bromsgrove, England 2014/12/14

  • RT So many tweets in my feed about 12/13/14.


  • Customer notice … #Santa

    Catshill, England 2014/12/14

  • RT Occasionally I find a thing on Reddit worth reading. https://i.imgur.com/FsJkGSV.jpg 2014/12/13

BTRFS gotchas… (balance / scrub / snapshots / quota)

Tue, 16/12/2014 - 13:50

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:

The bad things

Don’t use quota support and subvolumes. Once you start removing subvolumes, you’ll see kernel panics — at least up until (and including)l the 3.16 kernel (Debian Jessie).


WARNING: CPU: 2 PID: 19925 at /build/linux-LrLd2z/linux-3.16.5/fs/btrfs/qgroup.c:1347 btrfs_delayed_qgroup_accounting+0x46a/0xab0 [btrfs]() .... Workqueue: btrfs-extent-refs btrfs_extent_refs_helper [btrfs] ....

You need a regular (weekly?) cron job to re-balance the filesystem. Else you’ll find yourself in the weird position of not being able to create files, yet ‘df’ shows there’s space left on the device.

Doing a “btrfs filesystem show /mount/point” will show it as having no space left —

For instance :
‘df’ output:

/dev/xvdf 41943040 26548956 14203460 66% /var/lib/lxc

while ‘btrfs’ itself says :

root@xxxxx:# btrfs filesystem show /var Label: 'VAR' uuid: 754f8e45-31b4-428f-a21f-2ad9b93b46f6 Total devices 1 FS bytes used 18.20GiB devid 1 size 40.00GiB used 40.00GiB path /dev/xvdf Btrfs v3.17


To  fix this, you need ‘some’ free space for the balance to run …. so either nuke a few log files (if you’re lucky) or hope remounting the filesystem with ‘clear_cache’ is sufficient —

mount -o remount,clear_cache /var/

and then a :

btrfs balance start /var

I have a weekly cron like the following which is hopefully sufficient to control BTRFS —

for filesystem in $(mount -t btrfs | awk '{print $3}' ) do btrfs balance start $filesystem done for filesystem in $(mount -t btrfs | awk '{print $3}' ) do btrfs scrub start $filesystem done The good things
  1. Read-only snapshots — great for backup jobs
  2. Expandable / Resizeable … just add another disk / partition in…
  3. No need to mess around with LVM / RAID

Main menu 2

by Dr. Radut