ERROR 2013 (HY000): Lost connection to MySQL server during query

Recently had a problem with a MySQL iDA backup on a Linux platform. I was seeing a failure where we would get the error below (and per subject) included in the CommVault backup error.

ERROR 2013 (HY000): Lost connection to MySQL server during query

Upon further investigation it was determined that the error was being triggered during a MySQL query as performed by the MySQL iDA during backup attempt. When we attempted to do the same query manually against a MySQL connection we’d also get the same error. It was determined from the MySQL iDA logs that the database causing us the problem was called “prod”.

See the example below;

# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 4
Server version: 5.1.32-community-log MySQL Community Server (GPL)

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> use prod
Database changed
mysql> show table status;

ERROR 2013 (HY000): Lost connection to MySQL server during query

As you can see the error was reproducible. Further investigation determined that the database was corrupt in some way, as we could see a large number of errors in the MySQL logs. Fix the corruption on the database and/or exclude it from the backups until resolved by the MySQL DBA.

Simpana v10 – New ESD media released – Now includes SP4

With the release of Service Pack 4, a new ESD media release has also taken place. This media is marked September 2013 and includes SP4. It can be downloaded from Commvault’s Maintenance Advantage Portal.

Highly recommend it’s downloaded and all old media copies are destroyed.

Simpana 10 – installation issue on zLinux via DVD3

If your attempting to install Simpana 10 services on zLinux via DVD3 ESD with the timestamp.txt per below, you will not be able too.

[Image Information]
WindowsTime=Thu Apr 18 2013 16:34:50

The failure will go along the lines like below;

[root@lcoss90 remote]# ./cvpkgadd

Preparing and updating installer ...

*** Wrong version of ksh: /mnt/remote/linux-glibc2.3-s390/CVGxBase0/ksh

Reason is due to the following;

[root@lcosx86v58-3 CVGxBase0]# file ksh

ksh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, statically linked, not stripped

You’ll notice that the ksh binary hasn’t been compiled for the architecture correctly, it’s going to be fixed on a future SP release and media update.

The correctly compiled binary would like below for this architecture;

[root@lcosx86v58-3 ~]# file ksh

ksh: ELF 32-bit MSB executable, IBM S/390, version 1 (SYSV), for GNU/Linux 2.6.0, statically linked, not stripped

In the meantime, you can obtain an update version of the linux-glibc2.3-s390 directory from Commvault Support, so open a ticket with them and request it.


Simpana 10 – 1-Touch Linux recovery demo

In this demo I show a recovery of a Linux client using Simpana 10 – 1-Touch for Linux. Backup of this client with 1-Touch enabled was performed prior and my restore is to the same machine, except the original hard disk (in my case virtual disk (vmdk) has been assigned to it blank).

Also note my environment (lab) is completely all virtual thus not a good indicator for performance. So please keep this in mind as you watch any or all of my screen captures.

Simpana 10 – Oracle iDA – Backup current controlfile via RMAN command line

Quick demo on how you can backup from command line using RMAN and still have this backup go via Simpana 10 and the Oracle iDA. This backup is a control file only backup, follow on from the GUI based example in my last post.

Simpana 10 documentation link covering this can be found here.

Contents of my backup.txt from screen cast on this post.

run {
allocate channel ch1 type 'sbt_tape'
backup current controlfile;
release channel ch1;


Simpana 10 – Oracle iDA – Configuration – Instance creation and GUI based backup control file test

Follow on from my last post, this is now the configuration of the instance in the GUI/console.

Next up we create a subclient to just backup the control file of the orcl instance and of course run the job immediately to demo that it works.

Simpana 10 Oracle iDA installation onto Linux client

Demo deployment of Simpana 10 Oracle iDA installation onto Linux client.

You’ll note I first check to see which user is running the pmon process for our database, in this case it’s “oracle”.

Next I change to the user oracle and determine the users primary group. As this group will be used for the installation. In this example it’s “oinstall”.

I’ll be posting another part to this, as the installation is merely the first step. Once installed you have to do some configuration from the Simpana console. i.e. create the oracle instance etc.

Commvault documentation covering the install above can be found here.

Simpana 10 Local uninstall of Simpana services on Linux

Demo of a Simpana 10 Local uninstall of Simpana services on Linux.

Note that I select the option only to remove the software/services on the client and not update the commserve about this removal. As I want to keep the backup history of my client in the commserve. This will enable me to reinstall the software with the same details on this client to continue my backups.

MediaAgent Installation on Linux – Simpana 10

Needed to install the Simpana 10 MediaAgent onto a Linux client in my test environment and I thought it might be a good idea to record and share.

The install is an interactive one using the media (DVD3).

As you can see in the video my freshly installed client still had it’s hostname associated with the localhost entry in the hosts file. The installer detects this and recommends you fix it. So I did.

In addition, I also fixed up the services file entries for 8400 and 8402. Installer will see these and not allow you to pick those ports during the install, so since I know this condition was going to happen next I edit these files too. That condition is going to be resolved in a future service pack, so you won’t need to do that.