Sponsored Content
Full Discussion: help with rdist utility
Top Forums UNIX for Advanced & Expert Users help with rdist utility Post 10866 by man_with_no_nam on Thursday 22nd of November 2001 08:17:25 AM
Old 11-22-2001
Solved ...

FYI .. this has been solved. RDIST under HPUX has a success codes of 1 and an error code of 0.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

rdist -- but not linked files

How do I rdist a directory from one server to another, excluding soft and hard links? current rdist syntax: 1 2 * * * cd /apps/oasis/prdsch/log; rdist -c j1*.log oasis@oastdby:/apps/schiller/oasis/prdsch/log 31 2 * * * cd /apps/oasis/prdsch/log; rdist -c oasis_bin_trans*.log... (6 Replies)
Discussion started by: captainzeb
6 Replies

2. Shell Programming and Scripting

rdist help 'parameter list too long'

I am trying to use the rdis command to keep a DR server in sync with our production server. My problem is that one of my directories has over 8 thousand files in it (and growing buy 300 per month) and when I execute it, it complains about 'parameter list too long'. All of the files in the... (5 Replies)
Discussion started by: hedrict
5 Replies

3. UNIX for Advanced & Expert Users

permissions with rdist

I am trying to synchronize to boxes running True64 Unix one as a live backup of the other for user directories. When running rdist, I receive the message "Permission Denied" when each directory is accessed with the sole exception of my own directory. This has to be an automated process which... (1 Reply)
Discussion started by: doug_hutch
1 Replies

4. UNIX for Dummies Questions & Answers

problem with rdist & permissions

I have a .rdist & .sh files. shell script contains code like this rdist -h -f <rdist file> when this script executed i am getting the following error. rdist:<full path of files>: Permission denied. I verified the folder on the other system by connecting FTP.It doesn't has write... (0 Replies)
Discussion started by: Mar1006
0 Replies

5. Shell Programming and Scripting

How to rdist to secure server.

Hi, Earlier i am posting some files using rdist. rdist -h -f <file-name> File-name is file which contains details of servername,host,source & destination. Now server has changed and it is giving connection refused error.What i have to do. error is: updating <servername>... (7 Replies)
Discussion started by: Mar1006
7 Replies

6. HP-UX

Return codes of RDIST

Can any body please tell me the return codes of RDIST tool? I am using RDIST (through an UNIX script) to synchronize files between two servers say ukblx151(source) & ukapx050(target). RDIST raises an alert mail (through notify option) in case of success & also failure but there is a problem if... (0 Replies)
Discussion started by: vishal_ranjan
0 Replies

7. HP-UX

Where can I find rdist?

Hello, I am looking for either the rdist binaries or code for HPUX 11.11. Thanks (1 Reply)
Discussion started by: rfisher001
1 Replies

8. UNIX for Advanced & Expert Users

RDIST tool notify option

Dear All, I am using Rdist to replicate some directories from one AIX server (say ukblx157) to another AIX server (say ukapx063). Rdist tool has a option called notify which sends mail after successfull completion of the replication activity & it also send mail in case of any error. The... (0 Replies)
Discussion started by: vishal_ranjan
0 Replies

9. UNIX for Dummies Questions & Answers

rdist from unix to window XP

I need to rdist some files from unix to window XP, where the source file is in Unix box. I can't get a way to do it as it always prompted me permission denied. rdist -c migtest.tar <ipaddr>:/filedir/migtest.tar updating host <ipaddr> Permission denied. I'd tried to ftp and put the file... (0 Replies)
Discussion started by: lenniegu
0 Replies

10. Solaris

Rdist over ssh

How can we make rdist to work over ssh? By default rdist works with rsh protocol which is now the host server is refuses to accept the rsh connection. How to find rdist version which I am running? How to upgrade it to latest version? Working environment is solaris 9 and solaris 10. (1 Reply)
Discussion started by: naveenjami
1 Replies
MYSQLREPLICATE(1)						  MySQL Utilities						 MYSQLREPLICATE(1)

NAME
mysqlreplicate - Setup replication among two MySQL servers SYNOPSIS
mysqlreplicate [options] DESCRIPTION
This utility permits an administrator to start replication from one server (the master) to another (the slave). The user provides login information for the slave and connection information for connecting to the master. It is also possible to specify a database to be used to test replication. The utility reports conditions where the storage engines on the master and the slave differ. It also reports a warning if the InnoDB stor- age engine differs on the master and slave. For InnoDB to be the same, both servers must be running the same "type" of InnoDB (built-in or the InnoDB Plugin), and InnoDB on both servers must have the same major and minor version numbers and enabled state. By default, the utility issues warnings for mismatches between the sets of storage engines, the default storage engine, and the InnoDB storage engine. To produce errors instead, use the --pedantic option, which requires storage engines to be the same on the master and slave. The -vv option displays any discrepancies between the storage engines and InnoDB values, with or without the --pedantic option. Replication can be started using one of the following strategies. Start from the current position (default) Start replication from the current master binary log file and position. The utility uses the SHOW MASTER STATUS statement to retrieve this information. Start from the beginning Start replication from the first event recorded in the master binary log. To do this, use the --start-from-beginning option. Start from a binary log file Start replication from the first event in a specific master binary log file. To do this, use the --master-log-file option. Start from a specific event Start replication from specific event coordinates (specific binary log file and position). To do this, use the --master-log-file and --master-log-pos options. OPTIONS
mysqlreplicate accepts the following command-line options: --help Display a help message and exit. --master=<master> Connection information for the master server in <user>[:<passwd>]@<host>[:<port>][:<socket>] format. --master-log-file=<master_log_file> Begin replication from the beginning of this master log file. --master-log-pos=<master_log_pos> Begin replication from this position in the master log file. This option is not valid unless --master-log-file is given. --pedantic, -p Fail if both servers do not have the same set of storage engines, the same default storage engine, and the same InnoDB storage engine. --rpl-user=<replication_user> The user and password for the replication user, in name:passwd format. The default is rpl:rpl. --slave=<slave> Connection information for the slave server in <user>[:<passwd>]@<host>[:<port>][:<socket>] format. --start-from-beginning, -b Start replication at the beginning of events logged in the master binary log. This option is not valid unless both --master-log-file and --master-log-pos are given. --test-db=<test_database> The database name to use for testing the replication setup. If this option is not given, no testing is done, only error checking. --verbose, -v Specify how much information to display. Use this option multiple times to increase the amount of information. For example, -v = verbose, -vv = more verbose, -vvv = debug. --version Display version information and exit. NOTES
The login user for the master server must have the appropriate permissions to grant access to all databases and the ability to create a user account. For example, the user account used to connect to the master must have the WITH GRANT OPTION privilege. The server IDs on the master and slave must be nonzero and unique. The utility reports an error if the server ID is 0 on either server or the same on the master and slave. Set these values before starting this utility. EXAMPLES
To set up replication between two MySQL instances running on different ports of the same host using the default settings, use this command: $ mysqlreplicate --master=root@localhost:3306 --slave=root@localhost:3307 --rpl-user=rpl:rpl # master on localhost: ... connected. # slave on localhost: ... connected. # Checking for binary logging on master... # Setting up replication... # ...done. The following command uses --pedantic to ensure that replication between the master and slave is successful if and only if both servers have the same storage engines available, the same default storage engine, and the same InnoDB storage engine: $ mysqlreplicate --master=root@localhost:3306 --slave=root@localhost:3307 --rpl-user=rpl:rpl -vv --pedantic # master on localhost: ... connected. # slave on localhost: ... connected. # master id = 2 # slave id = 99 # Checking InnoDB statistics for type and version conflicts. # Checking storage engines... # Checking for binary logging on master... # Setting up replication... # Flushing tables on master with read lock... # Connecting slave to master... # CHANGE MASTER TO MASTER_HOST = [...omitted...] # Starting slave... # status: Waiting for master to send event # error: 0: # Unlocking tables on master... # ...done. The following command starts replication from the current position of the master (which is the default): $ mysqlreplicate --master=root@localhost:3306 --slave=root@localhost:3307 --rpl-user=rpl:rpl # master on localhost: ... connected. # slave on localhost: ... connected. # Checking for binary logging on master... # Setting up replication... # ...done. The following command starts replication from the beginning of recorded events on the master: $ mysqlreplicate --master=root@localhost:3306 --slave=root@localhost:3307 --rpl-user=rpl:rpl --start-from-beginning # master on localhost: ... connected. # slave on localhost: ... connected. # Checking for binary logging on master... # Setting up replication... # ...done. The following command starts replication from the beginning of a specific master binary log file: $ mysqlreplicate --master=root@localhost:3306 --slave=root@localhost:3307 --rpl-user=rpl:rpl --master-log-file=my_log.000003 # master on localhost: ... connected. # slave on localhost: ... connected. # Checking for binary logging on master... # Setting up replication... # ...done. The following command starts replication from specific master binary log coordinates (specific log file and position): $ mysqlreplicate --master=root@localhost:3306 --slave=root@localhost:3307 --rpl-user=rpl:rpl --master-log-file=my_log.000001 --master-log-pos=96 # master on localhost: ... connected. # slave on localhost: ... connected. # Checking for binary logging on master... # Setting up replication... # ...done. RECOMMENDATIONS
You should set read_only = 1 in the my.cnf file for the slave to ensure that no accidental data changes, such as INSERT, DELETE, UPDATE, and so forth, are permitted on the slave other than those produced by events read from the master. Use the --pedantic and -vv options for setting up replication on production servers to avoid possible problems with differing storage engines. COPYRIGHT
Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA AUTHOR
MySQL Utilities Team COPYRIGHT
2010, Oracle and/or its affiliates. All rights reserved. 1.0.3 May 09, 2012 MYSQLREPLICATE(1)
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy