Author Archive

Doing morning FreeBSD update

Applying FreeBSD patches is freaking easy. 

Posted on May 6, 2016 at 9:33 am by sergeyt · Permalink · Leave a comment
In: FreeBSD

Do initrd dance before turning Linux physical server into VM

If one day you decide to convert your physical server to a VM, which could be easily achieved if all its disks are presented from SAN, then don’t forget to rebuild initrd beforehand. Otherwise you would see something similar to this: No device found Scanning and configuring dmraid supported devices Scanning logical volumes Reading all […]

Posted on April 17, 2016 at 8:19 pm by sergeyt · Permalink · Leave a comment
In: Linux

Workaround for Tomcat7 on Linux, JDBC and javax.naming.NamingException

A few days ago I was dabbling with JDBC and Tomcat7 and the configuration that seemingly had no issues resulted in the following error in the log file: org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] Thankfully, Google pointed me to this post […]

Posted on February 19, 2016 at 2:53 pm by sergeyt · Permalink · 2 Comments
In: Linux

“Change master” to the rescue or how to revive MySQL replication

Sometime ago had an issue with MySQL replication that consecutively faulted with two different errors. Initially with this one: Last_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master’s binary log is corrupted (you can check this by running ‘mysqlbinlog’ on the binary log), the slave’s relay […]

Posted on January 10, 2016 at 9:58 pm by sergeyt · Permalink · 2 Comments
In: MySQL

DTrace is limping when rootless is enabled

Just learnt that DTrace can’t be run at full pelt when rootless Mac OS X feature is enabled. For example, iotop ends like this: : probe description io:::start does not match any probes And it seems that the only way out is to boot into a rescue mode and run csrutil disable to turn off […]

Posted on December 21, 2015 at 9:29 pm by sergeyt · Permalink · Leave a comment
In: Apple

Interview fizzle as a chance to get better

Not a long ago I had one of those humiliating moments when a simple question makes you numb a or even worse – you begin to mumble an absolute rubbish. That is exactly what has happened to me recently and being an afterthought person (which, of course, doesn’t give me any advantage) I decided to […]

Posted on December 2, 2015 at 2:19 pm by sergeyt · Permalink · Leave a comment
In: Life, Linux

Expanding ZFS rpool in Solaris 10

I was really bad at googling the steps to grow ZFS rpool online without using zpool append, so here is my little story how I’ve done it. Before I begin, please, note that everything said below applies only to the configurations where rpool consumes a whole disk. If there is another partition sitting right after […]

Posted on November 28, 2015 at 10:02 pm by sergeyt · Permalink · Leave a comment
In: SAN, Solaris, ZFS

Bryan Cantrill is back in BSDNow show

Another astonishing appearance of Bryan Cantrill in BSD Now episode Highly recommended.

Posted on November 26, 2015 at 8:52 pm by sergeyt · Permalink · Leave a comment
In: FreeBSD

mysqldump causes error 2006

Hot on the heels of the recent mysqldump I’ve been running on MySQL 5.5 which ended with the following error: Got error: 2006: MySQL server has gone away when selecting the database Turned out that this error is quite common and there is a quick work around for that – increase max_allowed_packet. In my case […]

Posted on November 22, 2015 at 4:11 pm by sergeyt · Permalink · Leave a comment
In: MySQL

What unites DEFINER, “show table status” and ERROR 1143 (42000) in MySQL

For the very first time I had seen this error a couple of days ago: mysql> show table status; ERROR 1143 (42000): SELECT command denied to user ”@’some_host_name_here’ for column ‘sid’ in table ‘masking’ What the heck was that?! Turned out that a colleague of mine was doing a cleanup in mysql.user table a day […]

Posted on October 16, 2015 at 9:37 pm by sergeyt · Permalink · Leave a comment
In: MySQL