Thanks very much for the reply Vadim. I'm glad I asked because I
assumed the binary log information output from "xtrabackup --
prepare ..." call would be the starting point for the slave.
Here is the line in the output I noticed:
"InnoDB: Last MySQL binlog file position 0 10478804, file name ./mysql-
bin.000002"
I'll plan to move forward with the innobackupex script approach.
Thanks
Todd
Here is the full output from "xtrabackup --prepare":
xtrabackup: cd to /mnt/disk2/backup/xtradb/20091021
xtrabackup: This target seems to be not prepared yet.
xtrabackup: Temporary instance for recovery is set as followings.
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path =
ibdata1:1000M;ibdata2:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 1
xtrabackup: innodb_log_file_size = 2097152
xtrabackup: Starting InnoDB instance for recovery.
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory
parameter)
InnoDB: Log scan progressed past the checkpoint lsn 14 1630462684
091021 9:20:22 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Doing recovery: scanned up to log sequence number 14
1630572233 (5 %)
091021 9:20:23 InnoDB: Starting an apply batch of log records to the
database...
InnoDB: Progress in percents: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 10478804, file name ./mysql-
bin.000002
091021 9:20:24 InnoDB: Started; log sequence number 14 1630572233
InnoDB: Last MySQL binlog file position 0 10478804, file name ./mysql-
bin.000002
xtrabackup: starting shutdown with innodb_fast_shutdown = 1
091021 9:20:24 InnoDB: Starting shutdown...
091021 9:20:25 InnoDB: Shutdown completed; log sequence number 14
1630572233
xtrabackup Ver 0.9 Rev 83 for 5.0.84 unknown-linux-gnu (x86_64)
xtrabackup: xtrabackup_logfile detected: size=2097152, start_lsn=(14
1630462684)
[notice (again)]
If you use binary log and don't use any hack of group commit,
the binary log position seems to be:
On Oct 21, 10:47 am, Vadim Tkachenko <
va...@percona.com> wrote:
> Hi,
>
> Unfortunately if you want to setup slave, there is no way to avoid locking,
> you need
> to get master binary log position, and you can get correct one only after
> execution
> FLUSH TABLES WITH READ LOCK.
>
> --
> Vadim Tkachenko, CTO, Percona Inc.
> Phone
+1-888-401-3403, Skype: vadimtk153
> Schedule meeting:
http://tungle.me/VadimTkachenko
>
> Percona Training Workshops - 30 October - New Yorkhttp://
www.percona.com/training/