Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
DRBD + Heartbeat + mysql CentOS 5.5

DRBD + Heartbeat + mysql CentOS 5.5

Ratings: (0)|Views: 875|Likes:
Published by Simon Shin
설치 메뉴얼
설치 메뉴얼

More info:

Published by: Simon Shin on Mar 10, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

06/25/2013

pdf

text

original

 
 
DRBD + heartbeat + mysql
1.
 
 
A.
 
C
entOS 5.5 x86 ( Kernel-2.6.18-194.e15 )B.
 
Node hostname & IPa.
 
primary : node1-
 
192.168.0.43b.
 
secondary : node2-
 
192.168.0.44c.
 
Virtual ip : 192.168.0.79
2.
 
DRBD 
1) RPM -
C
entos  yum   .- http://mirror.centos.org/centos/5/extras/x86_64/RPMS/- node1, node2    .[root@node1drbd]# yum install *-drbd83*[root@node1 ~]# rpm -qa |grepdrbddrbd83-8.3.8-1.el5.centoskmod-drbd83-xen-8.3.8-1.el5.centoskmod-drbd83-8.3.8-1.el5.centoskmod-drbd83-PAE-8.3.8-1.el5.centos2)  (/etc/drbd.conf)-  /etc/drbd.conf      .- /dev/hda5  /dev/sda9   .# please have a a look at the example configuration file in# /usr/share/doc/drbd83/drbd.conf#global { usage-count yes; }resource "database" {protocol
C
;handlers {pri-on-incon-degr "echo 'pri-on-incon-degr'";pri-lost-after-sb "echo 'pri-lost-after-sb'";local-io-error "echo 'local-io-error'";}startup {wfc-timeout 300;degr-wfc-timeout 120;}disk {on-io-error detach;}net {timeout 60;connect-int 10;ping-int 10;
 
max-buffers 20000;max-epoch-size 20000;unplug-watermark 20000;}syncer {rate 512M;verify-alg md5;}on node1 {device /dev/drbd0;disk /dev/sdb;address 192.168.0.164:7791;meta-disk internal;}on node2 {device /dev/drbd0;disk /dev/sdb;address 192.168.0.165:7791;meta-disk internal;}}- Hostname [root@node1 ~]# cat /etc/hostsnode1 192.168.0.43node2 192.168.0.44- Meta Data  . (Master / Secondary   )Meta Data ???   ,       .               .    ,   ,  ,  ,     .             .  (Index)  .              .[root@node1 ~]# drbdadm create-md all--== Thank you for participating in the global usage survey ==--The server's response is:you are the 7602th user to install this versionmd_offset 53687087104al_offset 53687054336bm_offset 53685415936Found ext3 filesystem52428800 kB data area apparently used52427164 kB left usable by current configurationDevice size would be truncated, whichwould 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.
C
ommand 'drbdmeta 0 v08 /dev/sdb internal create-md' terminated with exit code 40drbdadm create-md database: exited with code 40  .        .* use external meta data (recommended)* shrink that filesystem first* zero out the device (destroy the filesystem) /dev/hda5   ext3       umount    . zero out the device . dd    meta data   .    overwirte      .[root@node1 ~]# vim /etc/fstab[root@node1 ~]# umount /dev/sdb[root@node1 ~]# dd if=/dev/zero of=/dev/sdbbs=1M count=128128+0 records in128+0 records out134217728 bytes (134 MB) copied, 4.78162 seconds, 28.1 MB/s[root@node1 ~]# drbdadm create-md allWriting meta data...initializing activity logNOT initialized bitmapNew drbdmeta data block successfully created.success dd if=FILEread from FILE instead of stdin   .of=FILEwrite to FILE instead of stdout   .bs=BYTESforce ibs=BYTES and obs=BYTES   .count=BLO
C
KScopy only BLO
C
KS input blocks  ibs  .3)   (   )[root@node1 ~]# /etc/init.d/drbd startStarting DRBD resources: [databaseFound valid meta data in the expected location, 53687087104 bytes into /dev/sdb.

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
poppo8585 liked this
Robert Zhu liked this
David Panter liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->