Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 949809AAD for ; Wed, 29 May 2013 19:10:10 +0000 (UTC) Received: (qmail 39335 invoked by uid 500); 29 May 2013 19:10:09 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 39307 invoked by uid 500); 29 May 2013 19:10:09 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 39298 invoked by uid 99); 29 May 2013 19:10:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 19:10:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aemneina@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 19:10:06 +0000 Received: by mail-wi0-f169.google.com with SMTP id hn14so4584990wib.4 for ; Wed, 29 May 2013 12:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=s2FbzgzgEf+MWX7GZ70lWHYrvyVL8MZoGjpcuiyBvng=; b=VZShxMdSCrrrkEaLNsW0+kxBBdQhBgU68NxzV9ukZtOpKVQ6MBNcYVVMZodHTUctrJ kn7nBC+/T2QOQotNKbtdYPTdHs3f30mYqATxuw2sU5PWtPnBTCdIw2qPXe2ONPqFUULO TSk5pROOHTigUc4mAXNbiYYPg8ivX4z6BKulE5CpZrdEEv7LZWSrJ0Elso7FCCgQdF7f uvKDBaf6oaDXefWy+IGfK1mGhstHZ74hgXLUIH9jr1jiTj1nHrnQlX1BzBYnCCZ/z3f8 Yvlg+5IFbGKGvqMS0040jqseYoL7KKtetJV7SXb9M2BhY1Cy2XZduqDjguf84H8X/qS+ scPw== X-Received: by 10.194.179.102 with SMTP id df6mr2157710wjc.42.1369854584608; Wed, 29 May 2013 12:09:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.183.14 with HTTP; Wed, 29 May 2013 12:09:24 -0700 (PDT) Reply-To: aemneina@gmail.com In-Reply-To: References: From: Ahmad Emneina Date: Wed, 29 May 2013 12:09:24 -0700 Message-ID: Subject: Re: What are the exact steps when a database failure occurs in the presence of MySQL replication? To: Cloudstack users mailing list Content-Type: multipart/alternative; boundary=089e01493c34e8dcdb04dde01fc5 X-Virus-Checked: Checked by ClamAV on apache.org --089e01493c34e8dcdb04dde01fc5 Content-Type: text/plain; charset=ISO-8859-1 This is the page you'll want to take a look at: https://dev.mysql.com/doc/refman/5.1/en/replication-solutions-switch.html On Wed, May 29, 2013 at 2:56 AM, Ryan Lei wrote: > I was following the unpublished CS 4.1 Installation Guide to test MySQL > replication: > > http://jenkins.cloudstack.org/job/docs-4.1-installguide/lastSuccessfulBuild/artifact/Apache_CloudStack-4.1.0-Installation_Guide-en-US.pdf > > I have completed all the steps in "Sec. 9.3. Database Replication", and > suppose I can verify that all replication works by manually querying the > slave database. > > In "Sec. 9.3.1. Failover," it says: > > This will provide for a replicated database that can be used to implement > manual failover for the Management Servers. CloudStack failover from one > MySQL instance to another is performed by the administrator. In the event > of a database failure you should: > > 1. Stop the Management Servers (via service cloudstack-management stop). > 2. Change the replica's configuration to be a master and restart it. > 3. Ensure that the replica's port 3306 is open to the Management Servers. > 4. Make a change so that the Management Server uses the new database. The > simplest process > here is to put the IP address of the new database server into each > Management Server's /etc/ > cloud/management/db.properties. > 5. Restart the Management Servers > > What are the exact commands to perform in step 2? > > http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-replication-failover.html > I'm very new to MySQL replication and clustering things, not sure if any > part of this page is what I want. Plase help. (checkpoint? NDB? ) > --089e01493c34e8dcdb04dde01fc5--