I am reading a lot of materials and one of them is the documentation. I found a way to do replication of the mysql databases byt following the steps in this link: http://crazytoon.com/2008/02/29/mysql-how-do-you-set-up-mastermaster-replication-in-mysql-centos-rhel-fedora/
Thanks to all, Nestor :-) On Wed, Mar 26, 2008 at 9:47 AM, Andreas Kurz <[EMAIL PROTECTED]> wrote: > you should really consider reading DRBD documentation ..... > tohttp://www.drbd.org/users-guide/index.html > > On Wed, Mar 26, 2008 at 4:15 PM, Néstor <[EMAIL PROTECTED]> wrote: > > The existing partition I am using is the one for /usr/local. It is > mounted. > > > > *1) Do I need to umount it on both of my nodes? > > 2) Will it be mounted automatically by drbd?* > > > > > > OK, I changed the 'disk' on my drbd.conf file to > > *disk /dev/VolGroup00/LogVol03;* > > > > I changed my fstab to: > > */dev/VolGroup00/LogVol03 /usr/local ext3 auto 1 > 2 > > * > > I did the command '*umount /dev/VolGroup00/LogVol03*' > > > > I then tried the command '*drbdadm adjust mysql*' and I get: > > Failure: (119) No valid meta-data signature found. > > > > ==> Use 'drbdadm create-md res' to initialize meta-data area. > <== > > > > Command 'drbdsetup /dev/drbd0 disk /dev/VolGroup00/LogVol03 > > /dev/VolGroup00/LogVol03 internal --set-defaults --create-device > > > > --on-io-error=detach' terminated with exit code 10 > > > > > > Then I try the following command '*drbdadm create-md mysql*' > > v08 Magic number not found > > md_offset 10468978688 > > al_offset 10468945920 > > bm_offset 10468626432 > > > > Found ext3 filesystem which uses 10223616 kB > > current configuration leaves usable 10223268 kB > > > > Device size would be truncated, which > > would corrupt data and result in > > 'access beyond end of device' errors. > > You need to either > > * use external meta data (recommended) > > * shrink that filesystem first > > * zero out the device (destroy the filesystem) > > Operation refused. > > > > Command 'drbdmeta /dev/drbd0 v08 /dev/VolGroup00/LogVol03 internal > > create-md' terminated with exit code 40 > > drbdadm aborting > > > > > > > > > > > > Thanks, > > > > Néstor :-) > > > > > > > > > > > > > > On Wed, Mar 26, 2008 at 8:00 AM, Dominik Klein <[EMAIL PROTECTED]> > wrote: > > > > > Néstor wrote: > > > > Version 8.2.5 > > > > > > > > I think is telling me that the device is already mounted. > > > > > > Right. Is it? > > > > > > > What I do not understand them is how to pick a directoy or device. > Do I > > > > need to re-partition > > > > my device to create a separate device for drbd or can I pick just a > > > > directory within the device > > > > partition that I want to use. > > > > > > You can use an existing partition or create a new one if you have > space > > > left to do so. Drbd cannot be used on files or directories. > > > > > > Regards > > > Dominik > > > _______________________________________________ > > > Linux-HA mailing list > > > [email protected] > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > > See also: http://linux-ha.org/ReportingProblems > > > > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
