PXC on Debian fails to start with datadir containing underscore

Bug #1227521 reported by Taras
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
New
Undecided
Unassigned
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Released
Undecided
Raghavendra D Prabhu

Bug Description

Looks like mysqld_get_param() inside the Debian init script replaces '_' with '-' using tr '_' '-'. This causes sidk space check to fail using df

df: `/mnt/mysql/mysql-data/.': No such file or directory
df: no file systems processed
[FAIL] /etc/init.d/mysql: ERROR: The partition with /mnt/mysql/mysql-data is too full! ... failed!

OS is Debian 7

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

This is a regression from https://bugs.launchpad.net/percona-xtradb-cluster/+bug/1208865

It (tr) was only meant for the key and not the value,

Following should fix it.

>>bzr diff
=== modified file 'build/debian/percona-xtradb-cluster-server-5.5.mysql.init'
--- build/debian/percona-xtradb-cluster-server-5.5.mysql.init 2013-09-15 17:18:26 +0000
+++ build/debian/percona-xtradb-cluster-server-5.5.mysql.init 2013-09-20 09:07:12 +0000
@@ -45,7 +45,7 @@
 # Usage: void mysqld_get_param option
 mysqld_get_param() {
        "${PERCONA_PREFIX}"/sbin/mysqld --print-defaults \
- | tr " " "\n" | tr '_' '-' \
+ | tr " " "\n" | sed -re 's/--(.*)_(.*)=(.*)/--\1-\2=\3/g' \
                | grep -- "--$1=" \
                | tail -n 1 \
                | cut -d= -f2

Changed in percona-xtradb-cluster:
status: New → Fix Committed
assignee: nobody → Raghavendra D Prabhu (raghavendra-prabhu)
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :
summary: - XtraDB Cluster 5.5.33 fails to start with datadir containing underscore
+ PXC on Debian fails to start with datadir containing underscore
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

@Taras,

You can use the debs here: http://www.percona.com/downloads/TESTING/Percona-XtraDB-Cluster/5.5.33-23.7.6/release-5.5.33-23.7.6/496/ till they are pushed to release repo in sometime.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

The fixed debs are in release state now, apt-get update should fix this (though during stop while update it still calls the older init script).

Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1439

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.