Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
innobackupex streaming not working
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ran Margaliot  
View profile  
 More options Apr 14 2012, 8:40 am
From: Ran Margaliot <r...@gr8ppl.com>
Date: Sat, 14 Apr 2012 05:40:48 -0700 (PDT)
Local: Sat, Apr 14 2012 8:40 am
Subject: innobackupex streaming not working
Hello,

When i need to setup a new slave I issue the flowing script on the
master:

innobackupex --user=root --password='*****' --throttle=15 --
stream=tar /tmp/ --slave-info | sshpass -p '****' ssh root@<new slave
ip> "tar xfi - -C /var/lib/mysql"

usually this command works fine and streams the data to the new slave.

from some reason, when I issue this command now, I get the following
output:

xtrabackup: suspend-at-end is enabled.
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: Target instance is assumed as followings.
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 2
xtrabackup:   innodb_log_file_size = 1310720000
xtrabackup: use O_DIRECT
xtrabackup: Stream mode.

and thats it, normally it would display: "log scanned up to
(... ...........)" every couple of seconds.

looking at the size of the mysql dir on the slave also suggest that no
data is coming in.

any ideas why?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Juntgen  
View profile  
 More options Apr 14 2012, 8:56 am
From: David Juntgen <djunt...@gmail.com>
Date: Sat, 14 Apr 2012 05:56:31 -0700
Local: Sat, Apr 14 2012 8:56 am
Subject: Re: innobackupex streaming not working
Hi - If you remove the pipe "|" into sshpass and dump to a file does it work?

Thanks,

--Dave

--
David W. Juntgen

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jo Valerio  
View profile  
 More options Apr 14 2012, 8:47 am
From: Jo Valerio <jtvale...@gmail.com>
Date: Sat, 14 Apr 2012 05:47:35 -0700 (PDT)
Local: Sat, Apr 14 2012 8:47 am
Subject: Re: innobackupex streaming not working
Can you have a look at the value of your innodb_log_file_size in
Slave? Is it match with the current value in master?

On Apr 14, 8:40 pm, Ran Margaliot <r...@gr8ppl.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan T. Valerio  
View profile  
 More options Apr 14 2012, 8:45 am
From: "Jonathan T. Valerio" <jtvale...@gmail.com>
Date: Sat, 14 Apr 2012 20:45:35 +0800
Local: Sat, Apr 14 2012 8:45 am
Subject: Re: innobackupex streaming not working

Can you have a look at the value of your innodb_log_file_size in Slave? Is
it match with the current value in master?

--
Jonathan T. Valerio
MYSQL Database Administrator

<http://www.golivemobile.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ran Margaliot  
View profile  
 More options Apr 15 2012, 3:24 am
From: Ran Margaliot <r...@gr8ppl.com>
Date: Sun, 15 Apr 2012 00:24:41 -0700 (PDT)
Local: Sun, Apr 15 2012 3:24 am
Subject: Re: innobackupex streaming not working
yes, same values

On Apr 14, 3:45 pm, "Jonathan T. Valerio" <jtvale...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ran Margaliot  
View profile  
 More options Apr 15 2012, 3:25 am
From: Ran Margaliot <r...@gr8ppl.com>
Date: Sun, 15 Apr 2012 00:25:53 -0700 (PDT)
Local: Sun, Apr 15 2012 3:25 am
Subject: Re: innobackupex streaming not working
from some reason if i stop/start the process a few times it start to
work, but since i need to do this process often and i need to find out
whats not working there

On Apr 14, 3:56 pm, David Juntgen <djunt...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Juntgen  
View profile  
 More options Apr 16 2012, 7:09 am
From: David Juntgen <djunt...@gmail.com>
Date: Mon, 16 Apr 2012 04:09:58 -0700
Local: Mon, Apr 16 2012 7:09 am
Subject: Re: innobackupex streaming not working

> from some reason if i stop/start the process a few times it start to
> work, but since i need to do this process often and i need to find out
> whats not working there

Hi - You'll need to provide some info.  What version of MySQL and
which version of xtrabackup are you using?  Can you run without the
pipe from the cli and provide its output?

--Dave

--
David W. Juntgen

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ran Margaliot  
View profile  
 More options Apr 17 2012, 4:01 am
From: Ran Margaliot <r...@gr8ppl.com>
Date: Tue, 17 Apr 2012 01:01:48 -0700 (PDT)
Local: Tues, Apr 17 2012 4:01 am
Subject: Re: innobackupex streaming not working

v1.5.1-xtrabackup
5.1 - Mysql


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ran Margaliot  
View profile  
 More options Apr 17 2012, 4:32 am
From: Ran Margaliot <r...@gr8ppl.com>
Date: Tue, 17 Apr 2012 01:32:24 -0700 (PDT)
Local: Tues, Apr 17 2012 4:32 am
Subject: Re: innobackupex streaming not working

*when running the following command:*

innobackupex --user=root --password='*****' --throttle=10 --stream=tar
--slave-info /tmp/db_backup/

*i get the following output:*

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2011.  All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

120417 08:29:13  innobackupex: Starting mysql with options:
 --password='********' --user='root' --unbuffered --
120417 08:29:13  innobackupex: Connected to database with mysql child
process (pid=26862)
120417 08:29:19  innobackupex: Connection to database server closed
IMPORTANT: Please check that the backup run completes successfully.
           At the end of a successful backup run innobackupex
           prints "completed OK!".

innobackupex: Using mysql  Ver 14.14 Distrib 5.1.61, for debian-linux-gnu
(x86_64) using readline 6.2
innobackupex: Using mysql server version Copyright (c) 2000, 2011, Oracle
and/or its affiliates. All rights reserved.

innobackupex: Created backup directory /tmp/db_backup
backup-my.cnf0000644000000000000000000000044311743224737012147 0ustar
 rootroot# This MySQL options file was generated by innobackupex.

# The MySQL server
[mysqld]
datadir=/tmp/db_backup
innodb_data_home_dir=/tmp/db_backup
innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_group_home_dir=/tmp/db_backup
innodb_log_files_in_group=2
innodb_log_file_size=1310720000
120417 08:29:19  innobackupex: Starting mysql with options:
 --password='******' --user='root' --unbuffered --
120417 08:29:19  innobackupex: Connected to database with mysql child
process (pid=26892)
120417 08:29:23  innobackupex: Connection to database server closed

120417 08:29:23  innobackupex: Starting ibbackup with command:
xtrabackup_51 --backup --suspend-at-end --log-stream --target-dir=./
--throttle=10
innobackupex: Waiting for ibbackup (pid=26902) to suspend
innobackupex: Suspend file '/var/lib/mysql/xtrabackup_suspended'

xtrabackup: suspend-at-end is enabled.
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: Target instance is assumed as followings.
xtrabackup:   innodb_data_home_dir = ./
xtrabackup:   innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 2
xtrabackup:   innodb_log_file_size = 1310720000
xtrabackup: use O_DIRECT
xtrabackup: Stream mode.

any ideas?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Kopytov  
View profile  
 More options Apr 17 2012, 6:31 am
From: Alexey Kopytov <alexey.kopy...@percona.com>
Date: Tue, 17 Apr 2012 14:31:22 +0400
Local: Tues, Apr 17 2012 6:31 am
Subject: Re: innobackupex streaming not working
Ran,

On 17.04.12 12:32, Ran Margaliot wrote:

Can you strace the xtrabackup process when it hangs up again?

Best regards,
Alexey.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ran Margaliot  
View profile  
 More options Apr 17 2012, 7:23 am
From: Ran Margaliot <r...@gr8ppl.com>
Date: Tue, 17 Apr 2012 04:23:06 -0700 (PDT)
Local: Tues, Apr 17 2012 7:23 am
Subject: Re: innobackupex streaming not working

how can i trace it?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Kopytov  
View profile  
 More options Apr 17 2012, 7:37 am
From: Alexey Kopytov <alexey.kopy...@percona.com>
Date: Tue, 17 Apr 2012 15:37:51 +0400
Local: Tues, Apr 17 2012 7:37 am
Subject: Re: innobackupex streaming not working
On 17.04.12 15:23, Ran Margaliot wrote:

> how can i trace it?

strace -p `pidof xtrabackup_51`

Having a gdb backtrace might also be useful. You can get it with the
following command:

gdb -ex "set pagination 0" -ex "thread apply all bt" \
  --batch -p `pidof xtrabackup_51`


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »