Thursday, 6 February 2014

my favorite and most important tech fact of year 2013 : bug #1 solved

It took some time for me to level all my tech interests, preferences, readings, writings, happenings of the year 2013. But now I'm done: my favorite and most significant tech fact of the year is this: Mark Shuttleworth marked bug #1 as fixed!

If you didn't know, the bug #1 was "Microsoft has a majority market share".

Read it here https://bugs.launchpad.net/ubuntu/+bug/1/comments/1834 or copy just for my recods:

----
Mark Shuttleworth (sabdfl) wrote :
----
Personal computing today is a broader proposition than it was in 2004: phones, tablets, wearables and other devices are all part of the mix for our digital lives. From a competitive perspective, that broader market has healthy competition, with IOS and Android representing a meaningful share (see http://www.zdnet.com/windows-has-fallen-behind-apple-ios-and-google-android-7000008699/ and in particular http://cdn-static.zdnet.com/i/r/story/70/00/008699/meeker620-620x466-620x466.jpg?hash=ZQxmZmDjAz&upscale=1).
Android may not be my or your first choice of Linux, but it is without doubt an open source platform that offers both practical and economic benefits to users and industry. So we have both competition, and good representation for open source, in personal computing.
Even though we have only played a small part in that shift, I think it's important for us to recognize that the shift has taken place. So from Ubuntu's perspective, this bug is now closed.
There is a social element to this bug report as well, of course. It served for many as a sort of declaration of intent. But it's better for us to focus our intent on excellence in our own right, rather than our impact on someone else's product. In the (many) years since this bug was filed, we've figured out how to be amazing on the cloud, and I hope soon also how to be amazing for developers on their desktops, and perhaps even for everyday users across that full range of devices. I would rather we find a rallying call that celebrates those insights, and leadership.
It's worth noting that today, if you're into cloud computing, the Microsoft IAAS team are both technically excellent and very focused on having ALL OS's including Linux guests like Ubuntu run extremely well on Azure, making them a pleasure to work with. Perhaps the market shift has played a role in that. Circumstances have changed, institutions have adapted, so should we.
Along those lines, it's good to reflect on how much has changed since 2004, and how fast it's changed. For Ubuntu, our goal remains to deliver fantastic experiences: for developers, for people building out production infrastructure, and for end-users on a range of devices. We are doing all of that in an environment that changes completely every decade. So we have to be willing to make big changes ourselves - in our processes, our practices, our tools, and our relationships. Change this bug status is but a tiny example.

Sunday, 2 February 2014

spinning down / standby HDD's on Ubuntu server 13.10 (to be continued)

Ubuntu server 13.10 with 7 disks, 1 sdd for system, 4 x 2 TB in raid10 and 2 x 1 TB mirrored.

Tried out pure hdparm thing first. Installed hdparm, edit /etc/hdparm.conf adding lines for each disk, switched ACHI in BIOS, reboot. Didn't work for me. Tried manually, didn't work either.

Found this post, made some progress. Saw at least one disk being standby. As the intention was to try the thing "as is", meaning I didn't disconnect server from network and didn't try to figure what can be using the disks, fine. Will take a look later / sometime what's the status of disks.

Made a shell script for displaying the status of all disks. Thought about emailing myself status from time to time, started to read about emailing from command line, but there was a lot to read, remembered that this is lazy weekend and dropped it this time.


----
Just to document the post in case the thing go away:
1. Install sg3-utils
2. Add the following to crontab (sda being the disk to be managed this way):


0-59/15 * * * * ( if [ ! -f /dev/shm/1 ] ; then touch /dev/shm/1 /dev/shm/2; fi ; mv /dev/shm/1 /dev/shm/2; cat /proc/diskstats > /dev/shm/1 ) >/dev/null 2>&1
0-59/15 * * * * ( export HD="sda "; if [ "$(diff /dev/shm/1 /dev/shm/2 | grep $HD )" =  "" ] ; then /usr/bin/sg_start --stop /dev/$HD; fi ) >/dev/null 2>&1